diff options
author | Keith Packard <keithp@keithp.com> | 2011-05-13 00:02:14 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-05-13 00:02:14 -0700 |
commit | 4913a1e7a9cc4b44051fb4dbe45d5b7e487da65a (patch) | |
tree | cb8e67dfeb6ea365cb3e8366b441f94312e3b55b /ao-bringup-avr/ao-bringup.c | |
parent | 96450bfb69784922c287a72ed0e2e3a72c089715 (diff) |
ao-bringup-avr: switching to alternate stack works
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-bringup-avr/ao-bringup.c')
-rw-r--r-- | ao-bringup-avr/ao-bringup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ao-bringup-avr/ao-bringup.c b/ao-bringup-avr/ao-bringup.c index 547c0494..8e1239a3 100644 --- a/ao-bringup-avr/ao-bringup.c +++ b/ao-bringup-avr/ao-bringup.c @@ -115,5 +115,10 @@ void ao_bringup_init(void) stdout = &mystdout; stdin = &mystdin; + if (LEDDDR & (1 << LEDDDRPIN)) { + printf ("oops, starting all over\n"); + for (;;) + ; + } LEDDDR |= (1 << LEDDDRPIN); } |