Initializing the repository

This commit is contained in:
2025-05-06 16:44:21 +03:00
commit f693d28c78
9 changed files with 491 additions and 0 deletions

22
inc/jl_modbus/jl_config.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef JLV135_CLI_CONFIG_H
#define JLV135_CLI_CONFIG_H
#include <stddef.h>
#include <stdbool.h>
#define JLV135_BACKUP_BLOCKS_ADDRESS 0x40400
#define JLV135_DEV_MTD_BLOCK "/dev/mtdblock0"
void
jl_config_load(const char *name, void *def, size_t size);
bool
jl_config_read(int block_num, void *data, size_t size);
bool
jl_config_write(int block_num, void *data, size_t size);
void
jl_config_save(const char *name, void *def, size_t size);
#endif // JLV135_CLI_CONFIG_H