From 11a7f644ac7f5168d7f31687286d7ad114b453b2 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Mon, 2 Apr 2012 17:04:12 +0100 Subject: [PATCH] Comment rewording and formatting --- cpu/cc2430/dev/clock.c | 8 ++++---- platform/sensinode/contiki-conf.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cpu/cc2430/dev/clock.c b/cpu/cc2430/dev/clock.c index b81bb4985..09e60af31 100644 --- a/cpu/cc2430/dev/clock.c +++ b/cpu/cc2430/dev/clock.c @@ -44,14 +44,14 @@ /* Sleep timer runs on the 32k RC osc. */ /* One clock tick is 7.8 ms */ #define TICK_VAL (32768/128) /* 256 */ - -/* Used in sleep timer interrupt for calculating the next interrupt time */ -static unsigned long timer_value; +/*---------------------------------------------------------------------------*/ #if CLOCK_CONF_STACK_FRIENDLY volatile __bit sleep_flag; #else #endif - +/*---------------------------------------------------------------------------*/ +/* Used in sleep timer interrupt for calculating the next interrupt time */ +static unsigned long timer_value; static volatile __data clock_time_t count = 0; /* Uptime in ticks */ static volatile __data clock_time_t seconds = 0; /* Uptime in secs */ /*---------------------------------------------------------------------------*/ diff --git a/platform/sensinode/contiki-conf.h b/platform/sensinode/contiki-conf.h index 2c5494cee..2c812b7cc 100644 --- a/platform/sensinode/contiki-conf.h +++ b/platform/sensinode/contiki-conf.h @@ -29,7 +29,7 @@ #define ENERGEST_CONF_ON 0 #endif -/* Verbose Startup? Turning this off saves 700+ bytes of CODE in HOME */ +/* Verbose Startup? Turning this off reduces our footprint a fair bit */ #define STARTUP_CONF_VERBOSE 0 /* More CODE space savings by turning off process names */ @@ -37,9 +37,9 @@ /* * UARTs: 1=>Enabled, 0=>Disabled. Default: Both Disabled (see uart.h) - * Disabling UART0 saves ~200 bytes of CODE. - * Disabling UART1 saves ~500 bytes of CODE but also disables all debugging - * output. Should be used when nodes are meant to run on batteries + * Disabling UARTs reduces our CODE footprint + * Disabling UART1 also disables all debugging output. + * Should be used when nodes are meant to run on batteries * * On N740, by enabling UART1, you are also enabling an ugly hack which aims * to detect the USB connection during execution. It will then turn on/off