20 lines
358 B
C
20 lines
358 B
C
#ifndef CONFIG_H
|
|
#define CONFIG_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include "mode.h"
|
|
|
|
typedef struct {
|
|
uint32_t id;
|
|
uint16_t version;
|
|
struct mode_config mode_config;
|
|
} app_config_t;
|
|
|
|
int config_init(void);
|
|
int config_save(const app_config_t *cfg);
|
|
void config_update(void);
|
|
void config_get(app_config_t *cfg);
|
|
|
|
#endif /* CONFIG_H */
|