Why: Interrupt Handling#

class IRQ#

IRQ

Public Types

using ISR = std::function<void(int)>#

Public Static Functions

static void connect(int irq, 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:
  • irq – The IRQ number

  • isr – The interrupt service routine

static void disconnect(int irq)#

Disconnect ISR from IRQ