Some questions to the attribute 'EEMEM'
1. Why is the definition of variables with 'EEMEM' in a function not allowed?
2. If I make a casting like
eeprom_write_block((void *)src, (const void EEMEM *)save_in_eeprom, 10);
I get 2 warnings:
warning: 'section' attribute does not apply to types.
warning: passing arg 1 of 'eeprom_write_word' from incompatible pointer type.
Why is it so?
3. With this call
I get such a warning:
passing arg 1 of 'eeprom_write_word' from incompatible pointer type
Definitions of this example:
#define FLASH_CONSTANT 0xFFFF uint16_t EEMEM data_in_eeprom;