mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #1558 from openmv/lse_drive_strength
stm32: Add LSE driver strength config option.
This commit is contained in:
commit
b4bcc23bf7
@ -224,6 +224,13 @@ void SystemClock_Config(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(OMV_OSC_LSE_DRIVE)
|
||||||
|
// Configure LSE drive strength.
|
||||||
|
HAL_PWR_EnableBkUpAccess();
|
||||||
|
__HAL_RCC_LSEDRIVE_CONFIG(OMV_OSC_LSE_DRIVE);
|
||||||
|
HAL_PWR_DisableBkUpAccess();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Macro to configure the PLL clock source */
|
/* Macro to configure the PLL clock source */
|
||||||
__HAL_RCC_PLL_PLLSOURCE_CONFIG(OMV_OSC_PLL_CLKSOURCE);
|
__HAL_RCC_PLL_PLLSOURCE_CONFIG(OMV_OSC_PLL_CLKSOURCE);
|
||||||
|
|
||||||
|
|||||||
@ -141,6 +141,7 @@
|
|||||||
|
|
||||||
// HSE/HSI/CSI State
|
// HSE/HSI/CSI State
|
||||||
#define OMV_OSC_LSE_STATE (RCC_LSE_ON)
|
#define OMV_OSC_LSE_STATE (RCC_LSE_ON)
|
||||||
|
#define OMV_OSC_LSE_DRIVE (RCC_LSEDRIVE_HIGH)
|
||||||
#define OMV_OSC_HSE_STATE (RCC_HSE_ON)
|
#define OMV_OSC_HSE_STATE (RCC_HSE_ON)
|
||||||
#define OMV_OSC_HSI48_STATE (RCC_HSI48_ON)
|
#define OMV_OSC_HSI48_STATE (RCC_HSI48_ON)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user