RTOS_MSPM0  1.1
ECE445M starter code
PWMA0.h
Go to the documentation of this file.
1 
30 /*
31  * Derived from timx_timer_mode_pwm_edge_sleep_LP_MSPM0G3507_nortos_ticlang
32 
33  */
34 
35 #ifndef __PWMA0_H__
36 #define __PWMA0_H__
37 
41 #define PWMUSELFCLK 2
45 #define PWMUSEMFCLK 4
49 #define PWMUSEBUSCLK 8
76 void PWMA0_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale,
77  uint32_t period, uint32_t duty0, uint32_t duty1);
87 void PWMA0_SetDuty(uint32_t duty0, uint32_t duty1);
88 
97 void PWMA0_Forward(uint32_t duty0);
98 
107 void PWMA0_Backward(uint32_t duty1);
108 
117 void PWMA0_Break(void);
118 
127 void PWMA0_Coast(void);
128 
129 #endif // __PWMA0_H__
void PWMA0_Break(void)
Motor break.
void PWMA0_SetDuty(uint32_t duty0, uint32_t duty1)
Set duty cycles.
void PWMA0_Backward(uint32_t duty1)
Motor backward.
void PWMA0_Forward(uint32_t duty0)
Motor forward.
void PWMA0_Coast(void)
Motor coast.
void PWMA0_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale, uint32_t period, uint32_t duty0, uint32_t duty1)
Initialize PWMA0.