how do you initialize only one member of a structure when you create an array of if, and when you are using GCC?, for example:
#define UNUSED OxFF
typedef struct inputs{
uint8_t state;
uint8_t limit;
uint8_t value;
} INPUT_TYPE;
//create array but just care that all members .state are UNUSED
INPUT_TYPE Node1[5] ={ Node1.state = UNUSED }
The initialization refers to the array bu not to the member of the struct. Of course a loop could be used, but I don't want to initialize at run-time with an "input_init" function.