Не получается скопировать переменную структурного типа, расположенную в EEPROM, в переменную такого же типа расположенную в RAM
#define CLOCKS struct\
{\
unsigned char second;\
unsigned char minute;\
unsigned char hour;\
unsigned char date;\
unsigned char weekday;\
unsigned char month;\
unsigned char year;\
}
__eeprom CLOCKS clockBuff = {48,55,10,3,5,11,6}; // инициализирую структуру расположенную в
// в EEPROM
CLOCKS clock; // переменная в RAM
clock = clockBuff; // Не копируется - ошибка
Выдаются следующие ошибки:
Error[Pe077]: this declaration has no storage class or type specifier
Error[Pe147]: declaration is incompatible with "struct <unnamed> __near clock" (declared at line 12)
Error[Pe028]: expression must have a constant value
Самое непонятное, что значит struct <unnamed>.?
Может B IAR'e есть какие-то стандартные функции как eeprom_read_block(); в GCC например?