14 lines
465 B
C
14 lines
465 B
C
// NVS persistence for a SHORT LIST of config keys (see cfg_store.c).
|
|
// Current keys: "duty_ppm" (duty_budget_ppm), "delay_ms" (repeat_delay_ms).
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#define CFG_KEY_DUTY_PPM "duty_ppm"
|
|
#define CFG_KEY_DELAY_MS "delay_ms"
|
|
|
|
void cfg_store_init(void);
|
|
bool cfg_store_load_u32(const char *key, uint32_t *out); // true if present
|
|
bool cfg_store_save_u32(const char *key, uint32_t v); // true only after commit
|