kopia lustrzana https://github.com/micropython/micropython
stm32: Allow specifying 32kHz crystal drive strength.
rodzic
db4b19d33f
commit
14dd797833
|
@ -223,8 +223,12 @@ MP_WEAK void SystemClock_Config(void) {
|
||||||
HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1_BOOST);
|
HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1_BOOST);
|
||||||
#elif defined(STM32L4)
|
#elif defined(STM32L4)
|
||||||
// Configure LSE Drive Capability
|
// Configure LSE Drive Capability
|
||||||
|
#ifdef MICROPY_HW_RTC_LSEDRIVE
|
||||||
|
__HAL_RCC_LSEDRIVE_CONFIG(MICROPY_HW_RTC_LSEDRIVE);
|
||||||
|
#else
|
||||||
__HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_LOW);
|
__HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_LOW);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(STM32H7)
|
#if defined(STM32H7)
|
||||||
// Wait until core supply reaches the required voltage level.
|
// Wait until core supply reaches the required voltage level.
|
||||||
|
|
Ładowanie…
Reference in New Issue