Вот эта штука в IAR работает? Так и не понял как ей пользоваться, выдает ошибку :-( (-)
Отправлено
Анатоль 15 декабря 2006 г. 15:57
/**************************************************************************** * An example showing the SFR_B() macro call, * the expanded result and usage of this result: * * SFR_B(AVR, 0x1F) Expands to: * __io union { * unsigned char AVR; // The sfrb as 1 byte * struct { // The sfrb as 8 bits * unsigned char AVR_Bit0:1, * AVR_Bit1:1, * AVR_Bit2:1, * AVR_Bit3:1, * AVR_Bit4:1, * AVR_Bit5:1, * AVR_Bit6:1, * AVR_Bit7:1; * }; * } @ 0x1F; * Examples of how to use the expanded result: * AVR |= (1<<5); * or like this: * AVR_Bit5 = 1; ***************************************************************************/