Enable hardware interrupts
#include <sys/neutrino.h> void InterruptEnable( void );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The InterruptEnable() function enables all hardware interrupts. You can call it from a thread or from an interrupt handler. Before calling this function, the thread must:
- have the PROCMGR_AID_IO ability enabled. For more information, see procmgr_ability().
- request I/O privileges by calling:
ThreadCtl( _NTO_TCTL_IO, 0 );
If the thread doesn't do these things, it might SIGSEGV when it calls InterruptEnable().
You should call this function as quickly as possible after calling InterruptDisable().