| 74 | } |
| 75 | |
| 76 | int configurePrediv(const uint8_t prediv) |
| 77 | { |
| 78 | if (prediv < minPrediv || prediv > maxPrediv) |
| 79 | return EINVAL; |
| 80 | |
| 81 | RCC->CFGR2 = (RCC->CFGR2 & ~RCC_CFGR2_PREDIV) | (prediv - 1) << RCC_CFGR2_PREDIV_Pos; |
| 82 | return 0; |
| 83 | } |
| 84 | |
| 85 | void disableHse() |
| 86 | { |
no outgoing calls
no test coverage detected