altos/stm: Figure out available flash space based on chip id registers
authorKeith Packard <keithp@keithp.com>
Tue, 13 May 2014 05:55:38 +0000 (22:55 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 13 May 2014 05:55:38 +0000 (22:55 -0700)
commit530894f508874f4cb3db644ca9ca679ed704f964
tree6f0744a9eee34ee9028ee26a77a325ca224a6b7f
parent2c543be5548ccda6bd29a2a7659fcc287f7a9f07
altos/stm: Figure out available flash space based on chip id registers

Look at the flash size and the device id registers to figure out how
much flash is available.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_interrupt.c
src/stm/registers.ld
src/stm/stm32l.h