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

Function enableHse

source/chip/STM32/STM32F0/STM32F0-RCC.cpp:104–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void enableHse(const bool bypass)
105{
106 RCC->CR = (RCC->CR & ~RCC_CR_HSEBYP) | bypass << RCC_CR_HSEBYP_Pos;
107 RCC->CR |= RCC_CR_HSEON; /// \todo check whether this can be merged with previous write of RCC->CR
108 while ((RCC->CR & RCC_CR_HSERDY) == 0); // wait until HSE oscillator is stable
109}
110
111#ifdef STM32F04_STM32F071_STM32F072_STM32F078_STM32F09_RCC_FEATURES
112

Callers 1

chipLowLevelInitializerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected