Why: Interrupt Handling#
-
class IRQ#
-
Public Types
-
using ISR = std::function<void(int)>#
Public Static Functions
-
static inline void connect(int irqnum, ISR isr)#
Connect an interrupt service routine (ISR) to an IRQ. When the interrupt is raised, the ISR is called in interrupt context. Almost everything is forbidden. Most important: do not sleep!
- Parameters:
irqnum – The IRQ number
isr – The interrupt service routine
-
using ISR = std::function<void(int)>#