Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Centralize system status LED updates #976
Currently, the system status LED is controlled in many places throughout system firmware, making this single feature difficult to test and debug. A cleaner design would use system events as a source of notifications of all the relevant system state changes and update the LED color/pattern based on the current event. This allows all the LED handling code to exist in a single block. This will make the LED handling easier to test and maintain.
Implementation note: since we have some LED handling already done on the SysTick interrupt, it makes sense to move all LED handling there, with the LED color set from system state. This would consolidate all the LED updates in system firmware.