16 #define DEVICE_INTERRUPT_MAXIMUM (8) 35 typedef enum _DeviceInterruptTrigger
38 InterruptTriggerSensitive,
39 InterruptTriggerRisingEdge,
40 InterruptTriggerFallingEdge,
41 InterruptTriggerBothEdge
43 } DeviceInterruptTrigger;
61 typedef void(DeviceIsrFn)();
62 typedef DeviceIsrFn *DeviceIsrFnPtr;
82 BOOL DeviceIsValid(
int irq);
102 BOOL DeviceSetupIsr(
int irq, DeviceInterruptTrigger trigger, DeviceIsrFnPtr isrPtr);
120 void DeviceAckInterrupt(
int irq);
138 void DeviceDisableInterrupt(
int irq);
156 void DeviceEnableInterrupt(
int irq);
182 OS_SEM *DeviceGetQspiSem(
void);
200 OS_SEM *DeviceGetI2cSem(
void);
Semaphores are used to control access to shared resource critical section, or to communicate between ...
Definition: nbrtos.h:318