中级会员
- 积分
- 367
- 金钱
- 367
- 注册时间
- 2017-10-19
- 在线时间
- 71 小时
|
楼主 |
发表于 2017-10-31 08:58:45
|
显示全部楼层
void vPortEnterCritical( void )
{
portDISABLE_INTERRUPTS();
uxCriticalNesting++;
/* This is not the interrupt safe version of the enter critical function so
assert() if it is being called from an interrupt context. Only API
functions that end in "FromISR" can be used in an interrupt. Only assert if
the critical nesting count is 1 to protect against recursive calls if the
assert function also uses a critical section. */
if( uxCriticalNesting == 1 )
{
configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
}
}
红色的就是441行 |
|