| 102 | } |
| 103 | |
| 104 | void 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 |
no outgoing calls
no test coverage detected