Debian Codegraph @

ports/stm32/boards/WEACT_F411_BLACKPILL/stm32f4xx_hal_conf.h

raw
1 /* This file is part of the MicroPython project, http://micropython.org/
2 * The MIT License (MIT)
3 * Copyright (c) 2024 Andrew Leech
4 */
5 #ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
6 #define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
7
8 #include "boards/stm32f4xx_hal_conf_base.h"
9
10 // Oscillator values in Hz
11 #define HSE_VALUE (MICROPY_HW_HSE_SPEED_MHZ * 1000000)
12 #define LSE_VALUE (32768)
13 #define EXTERNAL_CLOCK_VALUE (12288000)
14
15 // Oscillator timeouts in ms
16 #define HSE_STARTUP_TIMEOUT (100)
17 #define LSE_STARTUP_TIMEOUT (5000)
18
19 #endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H