[FL-3226] Deep Sleep Idle (#2569)
* Improve RNG error handling * Sync RTC shadow registers on Stop mode exit * Implement working STOP2 mode * Fix formatting * FuriHal: disable SWD pins if debug is disabled * Power: cleanup battery info view, handle zero current report from gauge * Fbt: add command line argument for extra global defines * FuriHal: cleanup debug defines in power and os, drop deep_insomnia counter. * Add a setting to disable deep sleep * Clean up furi_hal_power * FuriHal,FapLoader,Debug: implement debug in stop mode, workaround resume in stop * FuriHal: document OS and power subsystems debugging * Furi: enable debug interface on crash --------- Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
		@@ -58,12 +58,6 @@ void ble_glue_init() {
 | 
			
		||||
    ble_glue = malloc(sizeof(BleGlue));
 | 
			
		||||
    ble_glue->status = BleGlueStatusStartup;
 | 
			
		||||
 | 
			
		||||
    // Configure the system Power Mode
 | 
			
		||||
    // Select HSI as system clock source after Wake Up from Stop mode
 | 
			
		||||
    LL_RCC_SetClkAfterWakeFromStop(LL_RCC_STOP_WAKEUPCLOCK_HSI);
 | 
			
		||||
    /* Initialize the CPU2 reset value before starting CPU2 with C2BOOT */
 | 
			
		||||
    LL_C2_PWR_SetPowerMode(LL_PWR_MODE_SHUTDOWN);
 | 
			
		||||
 | 
			
		||||
#ifdef BLE_GLUE_DEBUG
 | 
			
		||||
    APPD_Init();
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user