altos: Make STM clock configuration per-product. Fix 32MHz CPU speed
authorKeith Packard <keithp@keithp.com>
Tue, 10 Apr 2012 05:17:33 +0000 (22:17 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 10 Apr 2012 05:17:33 +0000 (22:17 -0700)
commit51aef5d4fc29986353ad887f4a67ed2fe35f8c8e
tree537602d5a0ed6fdae7e4ce8830f3c24a4a87aca5
parent1dcfbb05531767e67df45c2799a2fe533834fb71
altos: Make STM clock configuration per-product. Fix 32MHz CPU speed

This moves all of the STM clock configuration into ao_pins.h so that
each product can configure it separately. While doing this, I
discovered that the flash memory mode (64-bit, prefetch, latency 1)
wasn't actually getting set, which is why the CPU refused to work at
32MHz.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/megametrum-v0.1/ao_pins.h
src/stm-demo/ao_pins.h
src/stm/ao_arch.h
src/stm/ao_beep_stm.c
src/stm/ao_serial_stm.c
src/stm/ao_timer.c
src/stm/stm32l.h