Practice makes perfect!
Use the provided template and register an Interrupt Service Routine (ISR), statically, which toggles the LEDs on the board.
Register the ISR with the tm4c startup file (tm4c1294ncpdt_startup_c
) for a GPIO Interrupt Request (IRQ) to the port connected to the user switches.
TIPS: Don't forget to use keywords such as extern
and interrupt
, which are possibly not written in the startup code.