LED setup via devicetree

- New charlieplexing-leds binding
- board.dts files updated
- Pin and LED setup removed from pinmux.c and board.h files
This commit is contained in:
Martin Jäger
2020-07-23 17:34:41 +02:00
parent a584904470
commit 27cdcb3bf6
24 changed files with 345 additions and 374 deletions
+2 -2
View File
@@ -143,8 +143,8 @@ void LoadOutput::stop(uint32_t flag)
if (flags_check(&error_flags,
ERR_LOAD_OVERCURRENT | ERR_LOAD_VOLTAGE_DIP | ERR_LOAD_SHORT_CIRCUIT))
{
#ifdef LED_LOAD
leds_flicker(LED_LOAD);
#if LED_EXISTS(load)
leds_flicker(LED_POS(load), LED_TIMEOUT_INFINITE);
#endif
oc_timestamp = uptime();
}