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.
By default, newlib-nano is used for this demo.
The following shows the expected execution sequence: