device configuration prepared

This commit is contained in:
Wolfgang Hottgenroth 2020-11-30 19:05:19 +01:00
parent bde9f148a0
commit fe694e75d2
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
#include <spi.h> #include <spi.h>
#include <assert.h> #include <assert.h>
#define CONFIG_MAGIC 0xdead0008 #define CONFIG_MAGIC 0xdead0009
#define DEVICE_MAGIC 0xaffe0000 #define DEVICE_MAGIC 0xaffe0000
typedef struct __attribute__((__packed__)) s_configBlock { typedef struct __attribute__((__packed__)) s_configBlock {

View File

@ -27,7 +27,7 @@ t_deviceBlock defaultDeviceBlock[] = {
.filler = { 0, 0, 0 } .filler = { 0, 0, 0 }
}, },
{ {
.deviceMagic = DEVICE_MAGIC, .deviceMagic = DEVICE_MAGIC+1,
.deviceName = "Dryer", .deviceName = "Dryer",
.address = 81, .address = 81,
.consideredField = { 0, 4, 2, 3 }, .consideredField = { 0, 4, 2, 3 },