Zephyr: Clock setup fixed and LEDs implemented

This commit is contained in:
Martin Jaeger
2019-12-20 10:41:53 +01:00
parent 62f2f1978c
commit 7633dc1d93
11 changed files with 174 additions and 47 deletions
+9 -1
View File
@@ -32,10 +32,18 @@ enum LedState {
LED_STATE_FLICKER
};
/** Initialize LEDs and start timer for charlieplexing
/**
* Initialize LEDs and start timer for charlieplexing. This function only needs to be called if
* used in a single-thread application (mbed)
*/
void leds_init(bool enabled = true);
#ifdef __ZEPHYR__
/** Main thread for LED control in Zephyr, performs pin initializations and charlieplexing at 60 Hz
*/
void leds_update_thread();
#endif
/** Enables/disables dedicated charging LED if existing or
* blinks SOC LED when solar power is coming in.
*/