HAL Timebase, Power, Clock: semaphore guarded access to clock and power modes, better sleep mode. (#307)

This commit is contained in:
あく
2021-01-20 10:43:12 +03:00
committed by GitHub
parent c8aca9ef48
commit 6c4983c6b6
5 changed files with 95 additions and 14 deletions

View File

@@ -16,6 +16,9 @@ typedef enum {
/* Initialize drivers */
void api_hal_power_init();
/* Go to deep sleep */
void api_hal_power_deep_sleep();
/* Get predicted remaining battery capacity in percents */
uint8_t api_hal_power_get_pct();