This is the quick start guide for the Global interrupt management , with step-by-step instructions on how to configure and use the driver for a specific use case.
The code examples can be copied into e.g the main application loop or any other function that will need to control the external interrupt.
This use case will prepare a external interrupt pin to trigger an interrupt when the there is a change in pin state. The interrupt is handled by a cutomisable callback function. We will setup the external interrupt in this mode:
For the setup code of this use case to work, the following must be added to the project:
Add a callback function that will be executed when the interrupt trigger.
Add to, e.g., the main loop in the application C-file:
This use case will prepare a external pin change interrupt to trigger an interrupt when the there is a change in pin state. The interrupt is handled by a cutomisable callback function.
We will setup the external interrupt in this mode:
For the setup code of this use case to work, the following must be added to the project:
Add a callback function that will be executed when the interrupt trigger.
Add to, e.g., the main loop in the application C-file: