mirror of
https://github.com/apache/nuttx.git
synced 2026-09-25 01:07:40 +08:00
Allow board to configure HSE clock in bypass-mode. This is needed to enable HSE with Nucleo-F746ZG board.
This commit is contained in:
committed by
Gregory Nutt
parent
351d46444c
commit
dd1aa2357b
@@ -687,6 +687,11 @@ static void stm32_stdclockconfig(void)
|
||||
/* Enable External High-Speed Clock (HSE) */
|
||||
|
||||
regval = getreg32(STM32_RCC_CR);
|
||||
#ifdef STM32_HSEBYP_ENABLE /* May be defined in board.h header file */
|
||||
regval |= RCC_CR_HSEBYP; /* Enable HSE clock bypass */
|
||||
#else
|
||||
regval &= ~RCC_CR_HSEBYP; /* Disable HSE clock bypass */
|
||||
#endif
|
||||
regval |= RCC_CR_HSEON; /* Enable HSE */
|
||||
putreg32(regval, STM32_RCC_CR);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user