aboutsummaryrefslogtreecommitdiff
path: root/stmhal/boards/PYBV3/mpconfigboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/boards/PYBV3/mpconfigboard.h')
-rw-r--r--stmhal/boards/PYBV3/mpconfigboard.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/stmhal/boards/PYBV3/mpconfigboard.h b/stmhal/boards/PYBV3/mpconfigboard.h
index 2b387554e..6bfb14e81 100644
--- a/stmhal/boards/PYBV3/mpconfigboard.h
+++ b/stmhal/boards/PYBV3/mpconfigboard.h
@@ -19,6 +19,12 @@
#define MICROPY_HW_ENABLE_SPI3 (0)
#define MICROPY_HW_ENABLE_CAN (1)
+// HSE is 8MHz
+#define MICROPY_HW_CLK_PLLM (8)
+#define MICROPY_HW_CLK_PLLN (336)
+#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2)
+#define MICROPY_HW_CLK_PLLQ (7)
+
// The pyboard has a 32kHz crystal for the RTC
#define MICROPY_HW_RTC_USE_LSE (1)