/[avr-libc]/avr-libc/include/avr/sleep.h
ViewVC logotype

Diff of /avr-libc/include/avr/sleep.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9.2.1 by joerg_wunsch, Wed Sep 7 21:49:29 2005 UTC revision 1.9.2.2 by joerg_wunsch, Sat Sep 10 21:48:56 2005 UTC
# Line 77  Line 77 
77    
78  #define _SLEEP_CONTROL_REG SMCR  #define _SLEEP_CONTROL_REG SMCR
79    
80    #elif defined(__AVR_AT94K__)
81    
82    #define _SLEEP_CONTROL_REG MCUR
83    
84  #else  #else
85    
86  #define _SLEEP_CONTROL_REG MCUCR  #define _SLEEP_CONTROL_REG MCUCR
# Line 121  Line 125 
125   */   */
126  #define SLEEP_MODE_IDLE         0  #define SLEEP_MODE_IDLE         0
127    
128  #if !defined(__AVR_ATtiny2313__)  #if !defined(__AVR_ATtiny2313__) && !defined(__AVR_AT94K__)
129  /* no ADC in ATtiny2313, SM0 is alternative powerdown mode */  /* no ADC in ATtiny2313, SM0 is alternative powerdown mode */
130    /* no ADC in AT94K, setting SM0 only is reserved */
131  # define SLEEP_MODE_ADC          _BV(SM0)  # define SLEEP_MODE_ADC          _BV(SM0)
132  #endif /* !defined(__AVR_ATtiny2313__) */  #endif /* !defined(__AVR_ATtiny2313__) && !defined(__AVR_AT94K__) */
133    
134  #define SLEEP_MODE_PWR_DOWN     _BV(SM1)  #define SLEEP_MODE_PWR_DOWN     _BV(SM1)
135    

Legend:
Removed from v.1.9.2.1  
changed lines
  Added in v.1.9.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26