altos/cc1111: Remove unneeded initialization in ao_timer.c
authorKeith Packard <keithp@keithp.com>
Sun, 18 Dec 2016 04:57:38 +0000 (20:57 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 20 Feb 2017 19:22:21 +0000 (11:22 -0800)
The timers are all stopped when the chip boots, so no need to stop
them. This saves some text space, allowing the current code to (just
barely) fit.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/cc1111/ao_timer.c

index 0acef562608f7760104ae230e837b7aa90856eb5..a3d454da252a75385bd0b5e30136dd3e92da5ffd 100644 (file)
@@ -62,7 +62,7 @@ ao_timer_init(void)
        /* NOTE:  This uses a timer only present on cc1111 architecture. */
 
        /* disable timer 1 */
-       T1CTL = 0;
+/*     T1CTL = 0; */
 
        /* set the sample rate */
        T1CC0H = T1_SAMPLE_TIME >> 8;