avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] Need critical section; how to implement semaphore without


From: hanzl
Subject: Re: [avr-chat] Need critical section; how to implement semaphore without disabling interrupt
Date: Sun, 29 May 2005 22:20:11 +0200

> Is there a way to implement a semaphore without disabling the interrupt?
>
> Recall that some CPU (HC11?) have some exchange instruction that read and
> write to to a memory location in one atomonous instruction.

I think that AVR has no instruction of this type and thought there
might be ways to implement a semaphore without disabling the interrupt
these cumbersome ways would give you no advantage.

Vaclav Hanzl





reply via email to

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