RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches
GPIO Demo

This demo (gpioDemo directory) shows how to use the GPIO and its interrupt function. LED(s) on the development board blink for about 5 seconds and then the application goes into interrupt mode. Toggle system_gpio_0[0] to let the GPIO go into the interrupt routine.

For more detail of the driver, refer to GPIO Driver.

Newlib

By default, newlib-nano is used for this demo.

See also
User Debug Configuration - To learn more about User Debug Configuration.

Execution Sequence:

The following shows the expected execution sequence:

***Starting GPIO Demo***
Configure GPIOs to blink ..
***Starting GPIO Interrupt Demo***
Press and release onboard button sw4 ..
Entering gpio interrupt routine ..
Count:1 .. Done
Entering gpio interrupt routine ..
Count:2 .. Done