[FL-2019] Battery test application (#940)

* Power: rework API
* Applications: introduce battery test application
* Power: fix typo
* Desktop: cleanup merge artifacts

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
gornekich
2022-01-03 01:52:45 +03:00
committed by GitHub
parent 7522b111c2
commit 2cbf99e15a
10 changed files with 187 additions and 22 deletions

View File

@@ -11,6 +11,8 @@
#include <notification/notification-messages.h>
#define POWER_BATTERY_HEALTHY_LEVEL 70
typedef enum {
PowerStateNotCharging,
PowerStateCharging,
@@ -30,11 +32,13 @@ struct Power {
PowerState state;
PowerInfo info;
osMutexId_t info_mtx;
bool battery_low;
bool show_low_bat_level_message;
uint8_t battery_level;
uint8_t power_off_timeout;
osMutexId_t api_mtx;
};
typedef enum {