There is the following struct:
typedef struct {
uint8_t val1;
uint16_t val2;
}some_config_type;
some_config_type EEMEM config = {
.val1 = 20,
.val2 = 2000
};
The config is stored in eeprom memory where I want to load it from. I'm not sure if there is a rule in avr gcc or C in common which guarantees that bot struct layouts will be the same when I use eeprom_read_block for copy into ram which is another memory section. I want to make sure that this does not break under any circumstances and the memory layout is the same and not depending on the section.