| 114 | } |
| 115 | |
| 116 | void 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) |
| 124 | int enablePll(const uint16_t plln, const uint8_t pllp, const uint8_t pllq, const uint8_t pllr) |
no outgoing calls
no test coverage detected