|
From: | Risto Eerola |
Subject: | [avr-libc-dev] [patch #4611] sleep.h sleep_mode() not interrupt safe |
Date: | Fri, 11 Nov 2005 19:42:37 +0200 |
User-agent: | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) |
URL: <http://savannah.nongnu.org/patch/?func=detailitem&item_id=4611> Summary: sleep.h sleep_mode() not interrupt safe Project: AVR C Runtime Library Submitted by: eerola Submitted on: Fri 11/11/05 at 19:42 Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open _______________________________________________________ Details: Attached is a new sleep.h with the following macros added at the end: sleep_enable() sleep_disable() sleep() sleep_if(condition) First three will break the old sleep_mode()into parts allowing sei()to be added before sleep(). The last one combines them and sei() into an atomic "test-and-sleep" action where the condition is checked. -Ripa _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Fri 11/11/05 at 19:42 Name: sleep.h Size: 8.4KB By: eerola <http://savannah.nongnu.org/patch/download.php?item_id=4611&item_file_id=5460> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?func=detailitem&item_id=4611> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |