Differences Between PRIMASK and BASEPRI in ARM
Recently, I discovered a phenomenon: in the AUTOSAR OS, if an interrupt occurs after task scheduling, the BASEPRI is used to control the enabling and disabling of interrupts. If it occurs before task scheduling, PRIMASK is used for control. This article introduces the differences between these two. 1. Differences <span>PRIMASK</span>: All or nothing switch. It … Read more