diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2020-11-30 13:38:05 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2020-11-30 13:38:05 -0500 |
commit | bc4baf38ba66d5aa80381f08ab395af503480279 (patch) | |
tree | feb717c5a18d5ad5107cf5ec65838235443994ce /cfg/mcuconf.h | |
parent | 2b3bc49928c6bb58e65d0de45175909f4e0eba03 (diff) |
low-power improvements; starting flappy bird
Diffstat (limited to 'cfg/mcuconf.h')
-rw-r--r-- | cfg/mcuconf.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cfg/mcuconf.h b/cfg/mcuconf.h index a580925..217d13f 100644 --- a/cfg/mcuconf.h +++ b/cfg/mcuconf.h @@ -39,26 +39,26 @@ * HAL driver system settings.
*/
#define STM32_NO_INIT FALSE
-#define STM32_VOS STM32_VOS_1P8
-#define STM32_PVD_ENABLE FALSE
-#define STM32_PLS STM32_PLS_LEV0
+#define STM32_VOS STM32_VOS_1P2
+#define STM32_PVD_ENABLE TRUE
+#define STM32_PLS STM32_PLS_LEV4
#define STM32_HSI16_ENABLED TRUE
#define STM32_HSI16_DIVIDER_ENABLED FALSE
-#define STM32_LSI_ENABLED TRUE
+#define STM32_LSI_ENABLED FALSE
#define STM32_HSE_ENABLED FALSE
#define STM32_LSE_ENABLED FALSE
#define STM32_ADC_CLOCK_ENABLED TRUE
-#define STM32_MSIRANGE STM32_MSIRANGE_512K
+#define STM32_MSIRANGE STM32_MSIRANGE_4M
#define STM32_SW STM32_SW_MSI
#define STM32_PLLSRC STM32_PLLSRC_HSI16
-#define STM32_PLLMUL_VALUE 4
-#define STM32_PLLDIV_VALUE 2
+#define STM32_PLLMUL_VALUE 3
+#define STM32_PLLDIV_VALUE 4
#define STM32_HPRE STM32_HPRE_DIV1
#define STM32_PPRE1 STM32_PPRE1_DIV1
#define STM32_PPRE2 STM32_PPRE2_DIV1
#define STM32_MCOSEL STM32_MCOSEL_NOCLOCK
#define STM32_MCOPRE STM32_MCOPRE_DIV1
-#define STM32_RTCSEL STM32_RTCSEL_LSI
+#define STM32_RTCSEL STM32_RTCSEL_NOCLOCK
#define STM32_RTCPRE STM32_RTCPRE_DIV2
#define STM32_USART2SEL STM32_USART2SEL_APB
#define STM32_LPUART1SEL STM32_LPUART1SEL_APB
|