diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-30 16:01:51 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-30 16:01:51 +0000 |
commit | 05c18861dd58a08076d0fa97f72cb88c4a5698e5 (patch) | |
tree | 44213053eba92e81452144bb67dba9a6f62841a9 /cpukit/score/cpu/avr/avr/sleep.h | |
parent | Whitespace removal. (diff) | |
download | rtems-05c18861dd58a08076d0fa97f72cb88c4a5698e5.tar.bz2 |
Whitespace removal.
Diffstat (limited to 'cpukit/score/cpu/avr/avr/sleep.h')
-rw-r--r-- | cpukit/score/cpu/avr/avr/sleep.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/cpu/avr/avr/sleep.h b/cpukit/score/cpu/avr/avr/sleep.h index 856f8e8080..6c4eb7ff7d 100644 --- a/cpukit/score/cpu/avr/avr/sleep.h +++ b/cpukit/score/cpu/avr/avr/sleep.h @@ -55,9 +55,9 @@ set the desired sleep mode using \c set_sleep_mode() (it usually defaults to idle mode where the CPU is put on sleep but all peripheral clocks are still running), and then call - \c sleep_mode(). This macro automatically sets the sleep enable bit, goes + \c sleep_mode(). This macro automatically sets the sleep enable bit, goes to sleep, and clears the sleep enable bit. - + Example: \code #include <avr/sleep.h> @@ -66,8 +66,8 @@ set_sleep_mode(<mode>); sleep_mode(); \endcode - - Note that unless your purpose is to completely lock the CPU (until a + + Note that unless your purpose is to completely lock the CPU (until a hardware reset), interrupts need to be enabled before going to sleep. As the \c sleep_mode() macro might cause race conditions in some @@ -103,7 +103,7 @@ after the \c SEI is guaranteed to be executed before an interrupt could trigger, it is sure the device will really be put to sleep. - Some devices have the ability to disable the Brown Out Detector (BOD) before + Some devices have the ability to disable the Brown Out Detector (BOD) before going to sleep. This will also reduce power while sleeping. If the specific AVR device has this ability then an additional macro is defined: \c sleep_bod_disable(). This macro generates inlined assembly code |