mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-26 06:42:02 +03:00
37fb330b36
* 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>
27 lines
378 B
C
27 lines
378 B
C
/**
|
|
* @file furi_hal_debug.h
|
|
* Debug HAL API
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** Enable MCU debug */
|
|
void furi_hal_debug_enable();
|
|
|
|
/** Disable MCU debug */
|
|
void furi_hal_debug_disable();
|
|
|
|
/** Check if GDB debug session is active */
|
|
bool furi_hal_debug_is_gdb_session_active();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|