| RTOS_MSPM0 1.1 ECE445M starter code

PWMG6.h
Go to the documentation of this file.
1
28 /*
29 * Derived from timx_timer_mode_pwm_edge_sleep_LP_MSPM0G3507_nortos_ticlang
30
31 */
32
33 #ifndef __PWMG6_H__
34 #define __PWMG6_H__
35
39 #define PWMUSELFCLK 2
43 #define PWMUSEMFCLK 4
47 #define PWMUSEBUSCLK 8
73 void PWMG6_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale,
74 uint32_t period, uint32_t duty);
83 void PWMG6_SetDuty(uint32_t duty);
84
85
86 #endif // __PWMG6_H__
PWMG6_SetDuty
void PWMG6_SetDuty(uint32_t duty)
Set duty cycles.
PWMG6_Init
void PWMG6_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale, uint32_t period, uint32_t duty)
Initialize PWMG6.