1、CPU_SR_ALLOC() 函数CPU_SR_ALLOC()是为CPU_CRITICAL_ENTER()和CPU_CRITICAL_EXIT()申请一个变量: #define CPU_SR_ALLOC() CPU_SR cpu_sr = (CPU_SR)0