Hardware Connection
Code Example
We will do the same variable flash rate LED blinking example as in the GPIO example but this time with
the DISCO board’s button in external interrupt mode. The code here needs special attention as now
we will see how interrupts are configured and coded. This code is way different than anything I saw
before. I’m saying so because you’ll need to follow certain steps unlike other compilers. In other
compilers, all we do is create the interrupt function and tell the compiler the interrupt vector address.
Same here too but too many steps involved.