[tuxdroid-svn] r531 - firmware/tuxcore/trunk
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-09-19 10:46:29
|
Author: jaguarondi Date: 2007-09-19 12:45:56 +0200 (Wed, 19 Sep 2007) New Revision: 531 Modified: firmware/tuxcore/trunk/main.c Log: * Declared local functions of main.c as static. Modified: firmware/tuxcore/trunk/main.c =================================================================== --- firmware/tuxcore/trunk/main.c 2007-09-19 08:16:13 UTC (rev 530) +++ firmware/tuxcore/trunk/main.c 2007-09-19 10:45:56 UTC (rev 531) @@ -80,10 +80,9 @@ static uint8_t t100ms_cnt; /*! @} */ -void initIO(void); -void closeIO(void); -void updateStatus(void); -void sleep(void); +static void initIO(void); +static void updateStatus(void); +static void sleep(void); /* * External variables @@ -104,7 +103,7 @@ */ /** Compare value of the main tick timer. */ #define MAIN_TICK_COMPARE 125 -void main_tick_init(void) +static void main_tick_init(void) { TCCR2A = _BV(WGM21); TCCR2B = _BV(CS22) | _BV(CS21); @@ -232,7 +231,7 @@ * I/O initialisation * */ -void initIO(void) +static void initIO(void) { /* Set charger inhibit line as output */ CHARGER_INH_DDR |= CHARGER_INH_MK; @@ -259,7 +258,7 @@ * * CHARGER_INH and IR stay configured, they're just turned off. */ -void closeIO(void) +static void closeIO(void) { PCICR = 0; EIMSK = 0; @@ -269,7 +268,7 @@ } #define STATUS_BYTE_SIZE 20 -void updateStatus(void) +static void updateStatus(void) { if (FifoLength(statusFifo) >= (STATUS_BUF_SIZE - STATUS_BYTE_SIZE)) return; /* if there's not enough place, we dont save. */ @@ -326,7 +325,7 @@ * restore the configuration to continue normal operation. */ -void sleep(void) +static void sleep(void) { uint8_t PRR_bak; |