19 lines
432 B
C
19 lines
432 B
C
#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);
|