altos: Make STM clock configuration per-product. Fix 32MHz CPU speed
[fw/altos] / src / stm / stm32l.h
index 39dd710d8d4d3971e2883f3553f806fbf5ae7137..b922b6bc69b21ec09f65a08fbb190fa1a62ee997 100644 (file)
@@ -303,6 +303,9 @@ struct stm_rcc {
 
 extern struct stm_rcc stm_rcc;
 
+/* Nominal high speed internal oscillator frequency is 16MHz */
+#define STM_HSI_FREQ           16000000
+
 #define STM_RCC_CR_RTCPRE      (29)
 #define  STM_RCC_CR_RTCPRE_HSE_DIV_2   0
 #define  STM_RCC_CR_RTCPRE_HSE_DIV_4   1