summaryrefslogtreecommitdiff
path: root/src-avr/ao_demo.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-05-18 00:17:04 -0700
committerKeith Packard <keithp@keithp.com>2011-05-18 00:17:04 -0700
commitf2c9234341b18d94c6056d72a496753c64619f08 (patch)
treeebe604a5bc1b15034634735e63ff02e4a3a200a7 /src-avr/ao_demo.c
parente7e2fdf45dfbf6393ee0a0ec22e1e5ea49d6cfd5 (diff)
src-avr: Trap accidental restart
Use the LED output pin to notice when avr-demo accidentally restarts and print out an error message in that case. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src-avr/ao_demo.c')
-rw-r--r--src-avr/ao_demo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src-avr/ao_demo.c b/src-avr/ao_demo.c
index cb7ad786..d905cec6 100644
--- a/src-avr/ao_demo.c
+++ b/src-avr/ao_demo.c
@@ -35,10 +35,11 @@ main(void)
ao_clock_init();
ao_serial_init();
+
+ ao_led_init(LEDS_AVAILABLE);
ao_stdio_init();
printf ("stdio initialized\n");
// ao_debug_init();
- ao_led_init(LEDS_AVAILABLE);
ao_timer_init();
ao_cmd_init();
ao_usb_init();