AFBR-S50 API Reference Manual
v1.6.5
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
|
Global Interrupt Control Layer. More...
Functions | |
void | IRQ_UNLOCK (void) |
Enable IRQ Interrupts. More... | |
void | IRQ_LOCK (void) |
Disable IRQ Interrupts. More... | |
Global Interrupt Control Layer.
This module provides functionality to globally enable/disable interrupts in a nested way.
Here is a simple example implementation using the CMSIS functions "__enable_irq()" and "__disable_irq()". An integer counter is used to achieve nested interrupt disabling:
void IRQ_LOCK | ( | void | ) |
Disable IRQ Interrupts.
Disables IRQ interrupts and leaves the atomic or critical section.
void IRQ_UNLOCK | ( | void | ) |
Enable IRQ Interrupts.
Enables IRQ interrupts and enters an atomic or critical section.