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

Function configurePrediv

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

Source from the content-addressed store, hash-verified

74}
75
76int 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
85void disableHse()
86{

Callers 1

chipLowLevelInitializerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected