| 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__
PWMA1_Break
void PWMA1_Break(void)
Motor break.
PWMA1_Init
void PWMA1_Init(uint32_t timerClkSrc, uint32_t timerClkPrescale, uint32_t period, uint32_t duty0, uint32_t duty1)
Initialize PWMA1.
PWMA1_Backward
void PWMA1_Backward(uint32_t duty1)
Motor backward.
PWMA1_Coast
void PWMA1_Coast(void)
Motor coast.
PWMA1_Forward
void PWMA1_Forward(uint32_t duty0)
Motor forward.
PWMA1_SetDuty
void PWMA1_SetDuty(uint32_t duty0, uint32_t duty1)
Set duty cycles.