#ifndef BHA_AVR_SWITCH_CFG_H #define BHA_AVR_SWITCH_CFG_H #include #include #define SWITCH_COUNT 8 enum Functions { FUNC_NONE = 0, FUNC_TOGGLE, FUNC_EVENT }; typedef struct { node_address_t my_node_address; struct { node_address_t node_address; uint8_t addr; uint8_t function; } buttons[SWITCH_COUNT]; } config_t; extern config_t EEMEM eeprom_config; #endif // BHA_AVR_SWITCH_CFG_H