This commit is contained in:
2021-02-08 11:08:15 +01:00
parent a625004729
commit 31962fc8f0
4 changed files with 14 additions and 5 deletions

View File

@ -5,12 +5,16 @@
#include <spi.h>
#include <assert.h>
#define CONFIG_MAGIC 0xdead0004
#define CONFIG_MAGIC 0xdead0005
typedef struct __attribute__((__packed__)) s_configBlock {
uint32_t configMagic;
char deviceName[16];
uint8_t macAddress[6];
char ntpServer[48];
char deviceId[16];
char sharedSecret[32];
char location[48];
uint8_t filler[6];
} t_configBlock;

View File

@ -5,8 +5,6 @@
#include <stdint.h>
#define NTP_SERVER "0.de.pool.ntp.org"
typedef struct {
uint64_t seconds;
uint32_t missedUpdates;