Trying to blink LEDs on STM32 dev board (F303 discovery) using SysTick interrupt. This is the snap of the simple code I wrote :
void SysTick_Handler(void) { GPIOE->ODR ^= 1<<14 | 1<<10;}
Nothing special. However, there are different color LEDs on the board, so I thought it would be great if I could take some input from user about color and blink that color LED, using interrupt.
But while defining the event handler I am not supposed to change the structure of definition (right?).So the handler can't take parameters.It would only handle a particular event. Is there a way I could do different events on same handler? Or do I have to use different timers?