Go to the source code of this file.
Defines | |
#define | NutEnterCritical() |
#define | NutExitCritical() |
#define | NutJumpOutCritical() NutExitCritical() |
void NutEnterCritical | ( | ) |
{ \ int temp_; \ asm volatile ( \ "@ NutEnterCritical" "\n\t" \ "mrs %0, cpsr" "\n\t" \ "orr %0, %0, #0xC0" "\n\t" \ "msr cpsr, %0" "\n\t" \ : "=r" (temp_) : : "cc"); \ }
Referenced by AhdlcAt91Open(), AhdlcAt91Put(), At91EfcCmdEx(), AtCanInput(), Avr32FlashcCmd(), CanInput(), CFChange(), IDEInit(), NicRxAsix(), NutEventBroadcastAsync(), NutEventPostAsync(), NutEventTimeout(), NutEventWait(), NutEventWaitNext(), NutGetTickCount(), NutIrInitSony(), NutMsgQFlush(), NutMsgQGetMessage(), NutMsgQPost(), NutMsgQStopTimer(), NUTPANIC(), NutRegisterIrqHandler(), NutRegisterKey(), NutRegisterLed(), NutThreadAddPriQueue(), NutThreadCreate(), NutThreadRemoveQueue(), NutThreadResume(), NutThreadSetPriority(), NutThreadYield(), NutTwiMasterTranceive(), NutTwiSlaveListen(), NutTwiSlaveRespond(), SJAInit(), SJAInput(), UartAvrFlush(), UartAvrInput(), UsartIOCtl(), UsartRead(), and UsartSize().
void NutExitCritical | ( | ) |
{ \ int temp_; \ asm volatile ( \ "@ NutExitCritical" "\n\t" \ "mrs %0, cpsr" "\n\t" \ "bic %0, %0, #0xC0" "\n\t" \ "msr cpsr, %0" "\n\t" \ : "=r" (temp_) : : "cc"); \ }
Referenced by AhdlcAt91Open(), AhdlcAt91Put(), At91EfcCmdEx(), AtCanInput(), Avr32FlashcCmd(), CanInput(), CFChange(), IDEInit(), NicRxAsix(), NutEventBroadcastAsync(), NutEventPostAsync(), NutEventTimeout(), NutEventWait(), NutEventWaitNext(), NutGetTickCount(), NutIrInitSony(), NutMsgQFlush(), NutMsgQGetMessage(), NutMsgQPost(), NutMsgQStopTimer(), NutRegisterIrqHandler(), NutRegisterKey(), NutRegisterLed(), NutThreadAddPriQueue(), NutThreadCreate(), NutThreadRemoveQueue(), NutThreadResume(), NutThreadSetPriority(), NutThreadYield(), NutTwiMasterTranceive(), NutTwiSlaveListen(), NutTwiSlaveRespond(), SJAInit(), SJAInput(), UartAvrFlush(), UartAvrInput(), UsartIOCtl(), UsartRead(), and UsartSize().
#define NutJumpOutCritical | ( | ) | NutExitCritical() |
Referenced by NutMsgQGetMessage(), and NutMsgQPost().