PER Firmware
Loading...
Searching...
No Matches
pwm.c File Reference
Include dependency graph for pwm.c:

Functions

bool PHAL_initPWM (uint32_t frequency_hz, TIM_TypeDef *tim, uint8_t channelsToEnable)
 
void PHAL_PWMsetPercent (TIM_TypeDef *tim, uint8_t channel, uint8_t percent)
 

Variables

uint32_t APB1ClockRateHz
 
uint32_t APB2ClockRateHz
 

Detailed Description

Author
Seth Baird (baird.nosp@m.33@p.nosp@m.urdue.nosp@m..edu)
Date
2025-10-02

Function Documentation

◆ PHAL_initPWM()

bool PHAL_initPWM ( uint32_t frequency_hz,
TIM_TypeDef * tim,
uint8_t channelsToEnable )
Here is the caller graph for this function:

◆ PHAL_PWMsetPercent()

void PHAL_PWMsetPercent ( TIM_TypeDef * tim,
uint8_t channel,
uint8_t percent )
Here is the caller graph for this function:

Variable Documentation

◆ APB1ClockRateHz

uint32_t APB1ClockRateHz
extern

◆ APB2ClockRateHz

uint32_t APB2ClockRateHz
extern