RTOS_MSPM0  1.1
ECE445M starter code
PWMA1.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 __PWMA1_H__
36 #define __PWMA1_H__
37 
41 #define PWMUSELFCLK 2
45 #define PWMUSEMFCLK 4
49 #define PWMUSEBUSCLK 8
76 void PWMA1_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale,
77  uint32_t period, uint32_t duty0, uint32_t duty1);
87 void PWMA1_SetDuty(uint32_t duty0, uint32_t duty1);
88 
97 void PWMA1_Forward(uint32_t duty0);
98 
107 void PWMA1_Backward(uint32_t duty1);
108 
117 void PWMA1_Break(void);
118 
127 void PWMA1_Coast(void);
128 
129 #endif // __PWMA1_H__
void PWMA1_Break(void)
Motor break.
void PWMA1_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale, uint32_t period, uint32_t duty0, uint32_t duty1)
Initialize PWMA1.
void PWMA1_Backward(uint32_t duty1)
Motor backward.
void PWMA1_Coast(void)
Motor coast.
void PWMA1_Forward(uint32_t duty0)
Motor forward.
void PWMA1_SetDuty(uint32_t duty0, uint32_t duty1)
Set duty cycles.