Improve watchdog monitoring and CLI
This commit is contained in:
18
main/watch_config.h
Normal file
18
main/watch_config.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "esp_err.h"
|
||||
|
||||
typedef struct {
|
||||
uint32_t heartbeat_period_sec;
|
||||
uint32_t dcdc_restart_off_sec;
|
||||
uint32_t heartbeat_start_delay_sec;
|
||||
bool heartbeat_monitor_enabled;
|
||||
uint32_t heartbeat_miss_limit;
|
||||
} watch_config_t;
|
||||
|
||||
esp_err_t watch_config_init(void);
|
||||
const watch_config_t *watch_config_get(void);
|
||||
esp_err_t watch_config_save(const watch_config_t *cfg);
|
||||
Reference in New Issue
Block a user