altos: Make STM clock configuration per-product. Fix 32MHz CPU speed
[fw/altos] / src / stm / ao_beep_stm.c
index 8c0c0ee33ea889f5006995eca28a200a046daa29..37c30e25b1374e3d791a1a131fd7c4686ae24031 100644 (file)
@@ -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).
                 *