I've defined a macro to set my values(C code), for example:
.h file
typedef struct {
uint8_t details;
uint8_t info[20];
} values_struct;
#define INIT_VALUES_STRUCT(X) values_struct X = {.details = 0x00, .info = { 0x01 } }
.c file
INIT_VALUES_STRUCT(pro_struct);
but I need to set a "struct array" like:
values_struct pro_struct[10];
and to set default values with a macro, it's possible and how I can do that?