altos: Fix STM flash programming
authorKeith Packard <keithp@keithp.com>
Sat, 23 Mar 2013 09:21:27 +0000 (02:21 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 8 May 2013 03:16:52 +0000 (20:16 -0700)
commitac6b4fca0970faa0a537a813242585693b839469
treeb2efe4e120f3dded7411d505990964736bd3492a
parent35ef1f17e3efaa6d586ab7bb301f8133d52023b6
altos: Fix STM flash programming

Wait for flash to go non-busy after writing or erasing a page and
before jumping back out of the RAM code.

Export a separate 'erase' operation for testing.

Re-lock flash after every operation.

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