AM62L FreeRTOS SDK  11.00.00
GPIO Input Interrupt

Introduction

This example configures a GPIO pin in input mode and configures it to generate interrupt on rising edge. The application waits for 5 key presses, prints the number of times the keys are pressed and exits.

Supported Combinations

Parameter Value
CPU + OS a53ss0-0 freertos

| a53ss0-0 nortos | a53ss0-1 freertos | a53ss0-1 nortos Toolchain | arm.gnu.aarch64-none Board | am62lx-evm Example folder | examples/drivers/gpio/gpio_input_interrupt/

Steps to Run the Example

See Also

GPIO

Sample Output

Shown below is a sample output when the application is run,

GPIO Input Interrupt Test Started ...
GPIO Interrupt Configured for Rising Edge ...
Press pushbutton SW5 to trigger a GPIO interrupt
Key is pressed 0 times
Key is pressed 0 times
Key is pressed 0 times
Key is pressed 1 times
Key is pressed 2 times
Key is pressed 3 times
Key is pressed 3 times
Key is pressed 4 times
Key is pressed 5 times
GPIO Input Interrupt Test Passed!!
All tests have passed!!