timerAndGpioInterruptDemo Example
The GPIO interrupt example (timerAndGpioInterruptDemo directory) provides example code for implementing a rising edge interrupt trigger with a GPIO pin. When an interrupt occurs, a UART terminal displays Hello world and then the timer interval. It continues to print the timer interval until you suspend or stop the application.
Hello world
BSP_MACHINE_TIMER 0
BSP_MACHINE_TIMER 1
...
In this example:
void trap()traps entries on exceptions and interrupt eventsvoid externalInterrupt()triggers a GPIO interrupt event