- Removed unused constants and type aliases in app_spi_command_defs.h and temp_sensor.h. - Simplified ISpiCommandHandler destructor to default. - Eliminated redundant methods and comments in temp_sensor and usart0 files. - Consolidated writeU32Le function to app_spi_command_defs.h for reuse. - Updated comments for clarity and accuracy in task_manager.h and task_runner.cpp. - Removed hardfault.h as it contained no declarations. - Cleaned up CANFD and watchdog implementations by removing dead code and unnecessary comments. - Updated version numbers in config.h to reflect recent changes. - Enhanced error handling and diagnostics in hardfault handling.
23 lines
566 B
C++
23 lines
566 B
C++
/**
|
|
* @file watchdog.h
|
|
* @brief APP 独立看门狗模块(FWDGT)。
|
|
*
|
|
* 超时后系统硬复位,BOOT 检测 FWDGT 复位标志后停留在 OTA 等待模式,
|
|
* 而非继续跳入卡死的 APP。
|
|
*/
|
|
#ifndef DEVICE_WATCHDOG_H
|
|
#define DEVICE_WATCHDOG_H
|
|
|
|
#include <stdint.h>
|
|
|
|
class Watchdog {
|
|
public:
|
|
/** @brief 初始化并启动 FWDGT,超时约 CONFIG_FWDGT_TIMEOUT_MS 毫秒。 */
|
|
static void init();
|
|
|
|
/** @brief 喂狗(重载计数器),应在主循环中周期调用。 */
|
|
static void feed();
|
|
};
|
|
|
|
#endif /* DEVICE_WATCHDOG_H */
|