diff --git a/core/include/config.h b/core/include/config.h index 7492a57a4797ea3dd6e8eb8f41e10842f1f3025b..480c1a39204e67486c7b7832aeb6df5ec5a160df 100644 --- a/core/include/config.h +++ b/core/include/config.h @@ -22,6 +22,7 @@ #include <stdint.h> #define CONFIG_KEY (0x1701) +#define CONFIG_NAME_LEN (10) extern char configmem[]; @@ -30,6 +31,7 @@ typedef struct { uint16_t id; ///< unique node identifier uint8_t radio_address; ///< address for radio communication uint8_t radio_channel; ///< current frequency + char name[CONFIG_NAME_LEN]; ///< name of the node } config_t; /* @brief: Element to store in flashrom */ diff --git a/sys/config/config.c b/sys/config/config.c index 674fa97d84999b2d677bb659e328fed9f34dd661..01c349c925d0801fc2d5311a8ccb9ae8910b2875 100644 --- a/sys/config/config.c +++ b/sys/config/config.c @@ -22,4 +22,5 @@ config_t sysconfig = { 0, ///< default ID 0, ///< default radio address 0, ///< default radio channel + "foobar", ///< default name };