The ATmega8A manual defines the bits contained in MCUCR register at page 56.
These definitions don't match the #define
s contained in the ATmega8A I/O library supplied by avr-gcc, located at /usr/lib/avr/include/avr/iom8a.h
.
For example, the SE bit (Sleep Enable) is defined in the manual as bit 5, while in the above library it is #define SE 7
.
I haven't checked if the AVR actually misinterprets these MCUCR flags. Am I missing something here?