Timeline for Could I assign different events to SysTick event handler?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 18, 2020 at 23:20 | comment | added | DKNguyen | Use static (safer than global) variables as persistent flags if you can write it all in a self-contained function. | |
Jun 18, 2020 at 21:52 | answer | added | Justme | timeline score: 0 | |
Jun 18, 2020 at 21:11 | comment | added | Turbo J | Ever heared of global variables (and volatile)..? | |
Jun 18, 2020 at 20:57 | comment | added | Chris Stratton | It's a little unclear what you are trying to do, but likely you want user input to set some configuration information in a volatile flag somewhere, and then have the ISR look at that and to know which LED to blink. Probably always turn the unrequested ones off as the change in request may not be synchronous with the state of the LED. | |
Jun 18, 2020 at 20:48 | history | asked | Luffy | CC BY-SA 4.0 |