| RTOS_MSPM0 1.1 ECE445M starter code

RTOS_PWM.h
Go to the documentation of this file.
1
34 /*
35 * Derived from timx_timer_mode_pwm_edge_sleep_LP_MSPM0G3507_nortos_ticlang
36
37 */
38
39 #ifndef __PWM1_H__
40 #define __PWM1_H__
41
45 #define PWMUSELFCLK 2
49 #define PWMUSEMFCLK 4
53 #define PWMUSEBUSCLK 8
80 void PWM0_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale,
81 uint32_t period, uint32_t duty0, uint32_t duty1);
91 void PWM0_SetDuty(uint32_t duty0, uint32_t duty1);
92
119 void PWM1_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale,
120 uint32_t period, uint32_t duty0, uint32_t duty1);
130 void PWM1_SetDuty(uint32_t duty0, uint32_t duty1);
131
132 #endif // __PWM_H__
PWM0_SetDuty
void PWM0_SetDuty(uint32_t duty0, uint32_t duty1)
Set duty cycles.
PWM1_Init
void PWM1_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale, uint32_t period, uint32_t duty0, uint32_t duty1)
Initialize PWM.
PWM1_SetDuty
void PWM1_SetDuty(uint32_t duty0, uint32_t duty1)
Set duty cycles.
PWM0_Init
void PWM0_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale, uint32_t period, uint32_t duty0, uint32_t duty1)
Initialize PWM.