aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/boards/OpenMano/stm32f4xx_hal_conf.h
diff options
context:
space:
mode:
authorAditya Naik2021-04-27 18:38:28 -0400
committerAditya Naik2021-04-27 18:38:28 -0400
commitbffbfb3abd93b18c939c5753081ba910d464c918 (patch)
treeda9f5ff830b62c680d202a8a9440d4285b06eba6 /ports/stm32/boards/OpenMano/stm32f4xx_hal_conf.h
parenta708848b0cb0f304f43178140d84d5535e186a38 (diff)
Add OpenMano boardHEADmaster
Added board hardware configuration to micropython ports/stm32/boards directory.
Diffstat (limited to 'ports/stm32/boards/OpenMano/stm32f4xx_hal_conf.h')
-rw-r--r--ports/stm32/boards/OpenMano/stm32f4xx_hal_conf.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/ports/stm32/boards/OpenMano/stm32f4xx_hal_conf.h b/ports/stm32/boards/OpenMano/stm32f4xx_hal_conf.h
new file mode 100644
index 000000000..c307196e1
--- /dev/null
+++ b/ports/stm32/boards/OpenMano/stm32f4xx_hal_conf.h
@@ -0,0 +1,19 @@
+/* This file is part of the MicroPython project, http://micropython.org/
+ * The MIT License (MIT)
+ * Copyright (c) 2019 Damien P. George
+ */
+#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
+#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
+
+#include "boards/stm32f4xx_hal_conf_base.h"
+
+// Oscillator values in Hz: HSE is 8 MHz, LSE is 32.768 Hz
+#define HSE_VALUE (8000000)
+#define LSE_VALUE (32768)
+#define EXTERNAL_CLOCK_VALUE (12288000)
+
+// Oscillator timeouts in ms
+#define HSE_STARTUP_TIMEOUT (100)
+#define LSE_STARTUP_TIMEOUT (5000)
+
+#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H