]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
comment the table
authoridgay <idgay>
Wed, 9 Aug 2006 22:43:38 +0000 (22:43 +0000)
committeridgay <idgay>
Wed, 9 Aug 2006 22:43:38 +0000 (22:43 +0000)
tos/chips/atm128/McuSleepC.nc

index e85bbd5b148cd435946509dabc0d94d88d51d6c8..0ef6a496189b3d4494969a73390813797e273824 100644 (file)
@@ -53,15 +53,15 @@ implementation {
   /* Note that the power values are maintained in an order
    * based on their active components, NOT on their values.
    * Look at atm128hardware.h and page 42 of the ATmeg128
-   * manual (figure 17).*/
+   * manual (table 17).*/
   const_uint8_t atm128PowerBits[ATM128_POWER_DOWN + 1] = {
-    0,
-    (1 << SM0),
-    (1 << SM2) | (1 << SM1) | (1 << SM0),
-    (1 << SM1) | (1 << SM0),
-    (1 << SM2) | (1 << SM1),
-    (1 << SM1)};
-    
+    0,                         /* idle */
+    (1 << SM0),                        /* adc */
+    (1 << SM2) | (1 << SM1) | (1 << SM0), /* ext standby */
+    (1 << SM1) | (1 << SM0),   /* power save */
+    (1 << SM2) | (1 << SM1),   /* standby */
+    (1 << SM1)};               /* power down */
+
   mcu_power_t getPowerState() {
     uint8_t diff;
     // Note: we go to sleep even if timer 1, 2, or 3's overflow interrupt