altos: Wait after configuring boot pin before testing it
authorKeith Packard <keithp@keithp.com>
Mon, 29 Apr 2013 06:06:24 +0000 (23:06 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 8 May 2013 04:30:27 +0000 (21:30 -0700)
commitecb128579e7576fc27c8ca93708f316b9ac91630
treec87f4058197004107f3b308e59b62b3ccc30e16e
parent4a90eec4b8ee4a35711aa74c13b3f30d12c0fe08
altos: Wait after configuring boot pin before testing it

Clearly the pin isn't quite ready just after it's been configured, so
hang around for a while (100 nops) to let things setting down before
testing the value of the pin. Makes booting a lot more reliable.

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