summaryrefslogtreecommitdiff
path: root/src/stm/ao_beep_stm.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-04-09 22:17:33 -0700
committerKeith Packard <keithp@keithp.com>2012-04-09 22:17:33 -0700
commit51aef5d4fc29986353ad887f4a67ed2fe35f8c8e (patch)
tree537602d5a0ed6fdae7e4ce8830f3c24a4a87aca5 /src/stm/ao_beep_stm.c
parent1dcfbb05531767e67df45c2799a2fe533834fb71 (diff)
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>
Diffstat (limited to 'src/stm/ao_beep_stm.c')
-rw-r--r--src/stm/ao_beep_stm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm/ao_beep_stm.c b/src/stm/ao_beep_stm.c
index 8c0c0ee3..37c30e25 100644
--- a/src/stm/ao_beep_stm.c
+++ b/src/stm/ao_beep_stm.c
@@ -41,7 +41,7 @@ ao_beep(uint8_t beep)
/* Set prescaler to match cc1111 clocks
*/
- stm_tim3.psc = STM_APB1 / 750000;
+ stm_tim3.psc = AO_TIM23467_CLK / 750000;
/* 1. Select the counter clock (internal, external, prescaler).
*