FuriHal: RTC register reset API. New factory reset routine that wipes all RTC backup registers content. (#3288)

This commit is contained in:
あく
2023-12-12 19:12:57 +04:00
committed by GitHub
parent e2e3663524
commit 90cb1c4f2e
10 changed files with 33 additions and 20 deletions
+4 -1
View File
@@ -26,7 +26,7 @@ typedef struct {
typedef enum {
FuriHalRtcFlagDebug = (1 << 0),
FuriHalRtcFlagFactoryReset = (1 << 1),
FuriHalRtcFlagStorageFormatInternal = (1 << 1),
FuriHalRtcFlagLock = (1 << 2),
FuriHalRtcFlagC2Update = (1 << 3),
FuriHalRtcFlagHandOrient = (1 << 4),
@@ -91,6 +91,9 @@ void furi_hal_rtc_init();
/** Force sync shadow registers */
void furi_hal_rtc_sync_shadow();
/** Reset ALL RTC registers content */
void furi_hal_rtc_reset_registers();
/** Get RTC register content
*
* @param[in] reg The register identifier