http://www.state-machine.com/avr/QDK_AVR-IAR.pdf
http://code.google.com/p/mas-water-exchange-avr/source/browse/Atmega32_measure_point/main.c?r=28
© Quantum Leaps, LLC. All Rights Reserved.
QDK™
AVR with IAR
www.state-machine.com/avr
}
}
#elif defined NDEBUG
(3) SMCR = (0 << SM0) | (1 << SE);/*idle sleep mode, adjust to your project */
/* never separate the following two assembly instructions, see NOTE01 */
(4) __enable_interrupt(); /* NOTE: the following sleep instruction will */
(5) __sleep(); /* execute before entering any pending interrupt, NOTE01 */
/* see Atmel AVR Datasheet */
(6) SMCR = 0; /* clear the SE bit */
#else
QF_INT_ENABLE();
#endif
http://code.google.com/p/mas-water-exchange-avr/source/browse/Atmega32_measure_point/main.c?r=28
© Quantum Leaps, LLC. All Rights Reserved.
QDK™
AVR with IAR
www.state-machine.com/avr
}
}
#elif defined NDEBUG
(3) SMCR = (0 << SM0) | (1 << SE);/*idle sleep mode, adjust to your project */
/* never separate the following two assembly instructions, see NOTE01 */
(4) __enable_interrupt(); /* NOTE: the following sleep instruction will */
(5) __sleep(); /* execute before entering any pending interrupt, NOTE01 */
/* see Atmel AVR Datasheet */
(6) SMCR = 0; /* clear the SE bit */
#else
QF_INT_ENABLE();
#endif
Комментариев нет:
Отправить комментарий