diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2020-11-29 19:22:04 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2020-11-29 19:22:04 -0500 |
commit | 2b3bc49928c6bb58e65d0de45175909f4e0eba03 (patch) | |
tree | 29afa395be067fc836894b64a58c74fd8bf5f682 /cfg/mcuconf.h | |
parent | 764446fb8680d75f93481c039adebda88f0fb960 (diff) |
hsi only for adc; run msi at 512k for 360uA
Diffstat (limited to 'cfg/mcuconf.h')
-rw-r--r-- | cfg/mcuconf.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cfg/mcuconf.h b/cfg/mcuconf.h index 19caa57..a580925 100644 --- a/cfg/mcuconf.h +++ b/cfg/mcuconf.h @@ -47,13 +47,13 @@ #define STM32_LSI_ENABLED TRUE
#define STM32_HSE_ENABLED FALSE
#define STM32_LSE_ENABLED FALSE
-//#define STM32_ADC_CLOCK_ENABLED FALSE
-#define STM32_MSIRANGE STM32_MSIRANGE_4M
-#define STM32_SW STM32_SW_HSI16
+#define STM32_ADC_CLOCK_ENABLED TRUE
+#define STM32_MSIRANGE STM32_MSIRANGE_512K
+#define STM32_SW STM32_SW_MSI
#define STM32_PLLSRC STM32_PLLSRC_HSI16
#define STM32_PLLMUL_VALUE 4
#define STM32_PLLDIV_VALUE 2
-#define STM32_HPRE STM32_HPRE_DIV4
+#define STM32_HPRE STM32_HPRE_DIV1
#define STM32_PPRE1 STM32_PPRE1_DIV1
#define STM32_PPRE2 STM32_PPRE2_DIV1
#define STM32_MCOSEL STM32_MCOSEL_NOCLOCK
|