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.
SK-AM62A-LP does not contain any push button connected to MCU GPIOs.
MCU-R5 example is using MCU_GPIO0_15 pin in the MCU_HEADER(J9) for generating GPIO interrupt. Key presses can be done by connecting followed by disconnecting MCU_GPIO0_15(Pin 10 of J9) to ground (Pin 27 of J9) in the SK-AM62A-LP. Please note that number of key presses will be higher than actual as we are manualy connecting the ground using jumpers.
C75 example is using GPIO1_22 pin in the user expansion connector(J3) for generating GPIO interrupt. For this, the interrupt has to be routed thorugh MAIN_GPIOMUX_INTROUTER0. Allocate the 15th instance of MAIN_GPIOMUX_INTROUTER0 to c75 core in source/drivers/sciclient/sciclient_default_boardcfg/am62ax/sciclient_defaultBoardcfg_rm.c file as shown below.
Then rebuild the boardconfig using the steps mentioned in SYSFW Board Config Generation . Key presses can be done by connecting followed by disconnecting GPIO1_22(Pin 15 of J3) to ground (Pin 27 of MCU_HEADER(J9)) in the SK-AM62A-LP. Please note that number of key presses will be higher than actual as we are manualy connecting the ground using jumpers.
Parameter | Value |
---|---|
CPU + OS | mcu-r5fss0-0 nortos |
a53ss0-0 nortos | |
c75ss0-0 freertos | |
Toolchain | ti-arm-clang |
arm.gnu.aarch64-none | |
Board | am62ax-sk |
Example folder | examples/drivers/gpio/gpio_input_interrupt/ |
Shown below is a sample output when the application is run,