configuration

This commit is contained in:
2020-11-27 15:54:16 +01:00
parent 6d7119c0e2
commit 544163f4a3
3 changed files with 26 additions and 9 deletions

View File

@ -5,7 +5,10 @@
#include <spi.h>
#define CONFIG_MAGIC 0xdead0000
typedef struct __attribute__((__packed__)) s_configBlock {
uint32_t configMagic;
char deviceName[16];
uint8_t macAddress[6];
int32_t frontendThreshold;
@ -15,7 +18,7 @@ typedef struct __attribute__((__packed__)) s_configBlock {
char statusTopic[64];
char mbusDataTopic[64];
char syslogServerName[64];
uint8_t filler[3];
uint8_t filler[2];
} t_configBlock;
void configInit();