Skyward boardcore
Loading...
Searching...
No Matches
Boardcore::ClockUtils Namespace Reference

Enumerations

enum class  APB { APB1 , APB2 }
 Timer input clock. More...
 

Functions

uint32_t getAPBPeripheralsClock (APB bus)
 Computes the output clock frequency for peripherals on the given APB.
 
uint32_t getAPBTimersClock (APB bus)
 Computes the output clock frequency for timers on the given APB.
 
bool enablePeripheralClock (void *peripheral)
 Enables a peripheral clock source from the APB1 and APB2 peripheral buses.
 
bool disablePeripheralClock (void *peripheral)
 Disables a peripheral clock source from the APB1 and APB2 peripheral buses.
 

Enumeration Type Documentation

◆ APB

enum class Boardcore::ClockUtils::APB
strong

Timer input clock.

Enumerator
APB1 
APB2 

Definition at line 37 of file ClockUtils.h.

Function Documentation

◆ disablePeripheralClock()

bool Boardcore::ClockUtils::disablePeripheralClock ( void * peripheral)
inline

Disables a peripheral clock source from the APB1 and APB2 peripheral buses.

Definition at line 531 of file ClockUtils.h.

◆ enablePeripheralClock()

bool Boardcore::ClockUtils::enablePeripheralClock ( void * peripheral)
inline

Enables a peripheral clock source from the APB1 and APB2 peripheral buses.

Definition at line 155 of file ClockUtils.h.

◆ getAPBPeripheralsClock()

uint32_t Boardcore::ClockUtils::getAPBPeripheralsClock ( APB bus)
inline

Computes the output clock frequency for peripherals on the given APB.

Parameters
busAdvanced Peripheral Bus
Returns
Clock frequency of peripherals.

Definition at line 73 of file ClockUtils.h.

◆ getAPBTimersClock()

uint32_t Boardcore::ClockUtils::getAPBTimersClock ( APB bus)
inline

Computes the output clock frequency for timers on the given APB.

Parameters
busAdvanced Peripheral Bus
Returns
Clock frequency of timers.

Definition at line 114 of file ClockUtils.h.