MCPcopy Create free account
hub / github.com/DISTORTEC/distortos / enableHse

Function enableHse

source/chip/STM32/STM32F7/STM32F7-RCC.cpp:116–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void enableHse(const bool bypass)
117{
118 RCC->CR = (RCC->CR & ~RCC_CR_HSEBYP) | bypass << RCC_CR_HSEBYP_Pos;
119 RCC->CR |= RCC_CR_HSEON;
120 while ((RCC->CR & RCC_CR_HSERDY) == 0); // wait until HSE oscillator is stable
121}
122
123#if defined(DISTORTOS_CHIP_STM32F76) || defined(DISTORTOS_CHIP_STM32F77)
124int enablePll(const uint16_t plln, const uint8_t pllp, const uint8_t pllq, const uint8_t pllr)

Callers 1

chipLowLevelInitializerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected