Microblaze2.2 GPIO Interrupt
Hardware Platform Same hardware platform as in Microblaze2.1 JTAG-UART | QY’s Notes The key_gpio binds to a button on the board. Configurations The codes are modified from the interrupt example: xgpio_intr_tapp_example.c. (I found these examples a bit too complicated for a beginner like me.) Basically: Initialize the GPIO device Initialize the interrupt device Bind the GPIO interrupt handler function Enable interrupt (both in the GPIO device and the interrupt device) Wait for the interrupt Debug Every time the key is pressed, the LEDs are toggled, and a message is printed through JTAG UART ....