From 9bb6cf22f7b5a65493fac14690091a26e87a3f3a Mon Sep 17 00:00:00 2001 From: idgay Date: Wed, 9 Aug 2006 22:43:38 +0000 Subject: [PATCH] comment the table --- tos/chips/atm128/McuSleepC.nc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tos/chips/atm128/McuSleepC.nc b/tos/chips/atm128/McuSleepC.nc index e85bbd5b..0ef6a496 100644 --- a/tos/chips/atm128/McuSleepC.nc +++ b/tos/chips/atm128/McuSleepC.nc @@ -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 -- 2.39.2