prepare configuration

This commit is contained in:
Wolfgang Hottgenroth 2020-11-27 12:29:21 +01:00
parent 8894036679
commit 7aded82145
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

19
cube/User/Inc/config.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef _CONFIG_H_
#define _CONFIG_H_
#include <stdint.h>
#include <spi.h>
typedef struct __attribute__((__packed__)) s_configBlock {
char deviceName[16];
uint8_t macAddress[6];
char watchdogTopic[64];
char startupTopic[64];
char statusTopic[64];
char mbusDataTopic[64];
} t_configBlock;
void configInit();
#endif /* _CONFIG_H_ */