[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: Andreas Kaiser
Subject: Re: [avr-gcc-list] race condition in sleep_mode()
Date: Sun, 18 Dec 2005 23:58:23 +0100

On Mon, 19 Dec 2005 08:44:04 +1000, you wrote:

> (It is possible to use 'sleep' in a combination to a disabling of interrupts, 
> for example for an emergency stop.)

To me it makes more sense to use a separate function
        dead_halt() => cli;sleep
for this purpose. Makes intentions perfectly clear without having to
use a comment.

Gruss, Andreas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]