altos/telebt-v4.0 Set CPU clock to 48Mhz instead of 96Mhz
authorBdale Garbee <bdale@gag.com>
Wed, 3 May 2017 17:47:33 +0000 (11:47 -0600)
committerBdale Garbee <bdale@gag.com>
Wed, 3 May 2017 17:47:33 +0000 (11:47 -0600)
src/telebt-v4.0/ao_pins.h

index 749f243..e5139b3 100644 (file)
 #define _AO_PINS_H_
 
 #define AO_HSE                  32000000
-#define AO_RCC_CFGR_PLLMUL      STM_RCC_CFGR_PLLMUL_3
-#define AO_PLLMUL               3
-#define AO_PLLDIV               1
+#define AO_RCC_CFGR_PLLMUL     STM_RCC_CFGR_PLLMUL_3
+#define AO_RCC_CFGR2_PLLDIV    STM_RCC_CFGR2_PREDIV_2
+#define AO_PLLMUL              3
+#define AO_PLLDIV              2
 
 /* HCLK = 48MHz */
 #define AO_AHB_PRESCALER        1
@@ -32,8 +33,6 @@
 #define AO_APB_PRESCALER        1
 #define AO_RCC_CFGR_PPRE_DIV    STM_RCC_CFGR_PPRE_DIV_1
 
-#define AO_RCC_CFGR2_PLLDIV     STM_RCC_CFGR2_PREDIV_1
-
 #define HAS_USB                        1
 #define AO_USB_DIRECTIO                0
 #define AO_PA11_PA12_RMP       0