altos: Fixed timing of panic display LED to be readable
authorBart Massey <bart@cs.pdx.edu>
Sun, 6 Mar 2016 01:38:19 +0000 (17:38 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 7 Mar 2016 21:54:47 +0000 (13:54 -0800)
commitd1af180c2d2a2caf1e13f00d83f2b86ba26de27f
tree766e27ba7ca5c85251aae14aa03a0b3194eb64fd
parent20d9286402b7da74fef9b7c98e79d13671f6c82b
altos: Fixed timing of panic display LED to be readable

When we don't have a beeper, there's no way to signal a 'warble' for
panic. So, elide that bit.

Second, panic can't use the scheduler and timer because those may not
be running (or may have failed), and so it uses a delay loop. Add a
configurable scale value to the panic loop so that the LED blinks can
be read. For stm32f0 devices, scale that by the sysclk value to
automatically make them of reasonable length.
src/kernel/ao_panic.c
src/stmf0/ao_arch.h