[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] race condition in sleep_mode()
From: |
Dmitry K. |
Subject: |
Re: [avr-gcc-list] race condition in sleep_mode() |
Date: |
Mon, 19 Dec 2005 08:44:04 +1000 |
User-agent: |
KMail/1.5 |
> https://savannah.nongnu.org/patch/?func=detailitem&item_id=4611
The macro 'sleep_if' is the unique in Avr-libc which uses a
command 'sei'. Is it the realized choice, to use this command
instead of 'out SREG, old_SREG_value' ? (It is possible to use
'sleep' in a combination to a disabling of interrupts, for example
for an emergency stop.)
Dmitry.