Цитата(Faradey @ Nov 20 2006, 14:11)

а так почему не работает?
Код
struct REG
{
u08 Lo_byte;
u08 Hi_bite;
};
struct HOLD_REG
{
struct REG SS_ADR;
struct REG SS_BAUD;
struct REG SS_PARITY;
struct REG SS_RESERV;
};
__eeprom struct HOLD_REG hold_reg;
hold_reg.SS_ADR.Lo_byte = 1;
ругается:
Цитата
Error[Pe077]: this declaration has no storage class or type specifier
Error[Pe147]: declaration is incompatible with "HOLD_REG __eeprom hold_reg"
Error[Pe065]: expected a ";"
потому что надо чтобы все объекты в структуре были размещены в одном и том же типе памяти . в еепром, флэш, рам.
Сообщение отредактировал ARIM - Nov 20 2006, 16:26