Skip to content
Snippets Groups Projects
Commit 33ef8491 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #632 from benpicco/add_name

add name to sysconfig
parents 355f6610 bbe616f1
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <stdint.h> #include <stdint.h>
#define CONFIG_KEY (0x1701) #define CONFIG_KEY (0x1701)
#define CONFIG_NAME_LEN (10)
extern char configmem[]; extern char configmem[];
...@@ -30,6 +31,7 @@ typedef struct { ...@@ -30,6 +31,7 @@ typedef struct {
uint16_t id; ///< unique node identifier uint16_t id; ///< unique node identifier
uint8_t radio_address; ///< address for radio communication uint8_t radio_address; ///< address for radio communication
uint8_t radio_channel; ///< current frequency uint8_t radio_channel; ///< current frequency
char name[CONFIG_NAME_LEN]; ///< name of the node
} config_t; } config_t;
/* @brief: Element to store in flashrom */ /* @brief: Element to store in flashrom */
......
...@@ -22,4 +22,5 @@ config_t sysconfig = { ...@@ -22,4 +22,5 @@ config_t sysconfig = {
0, ///< default ID 0, ///< default ID
0, ///< default radio address 0, ///< default radio address
0, ///< default radio channel 0, ///< default radio channel
"foobar", ///< default name
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment