19.2.3 ext_irq_register
Register callback for the given external interrupt.
int32_t ext_irq_register(
const uint32_t pin,
ext_irq_cb_t cb
)
Parameters
- pin
-
Type: const uint32_t
Pin to enable external IRQ on
- cb
-
Type: ext_irq_cb_t typedef
Callback function
Returns
Type: int32_t
Registration status.
- -1
-
Passed parameters were invalid
- 0
-
The callback registration is completed successfully