![]() |
RTOS_MSPM0
1.1
ECE445M starter code
|
Pulse width modulation. More...
Go to the source code of this file.
Macros | |
| #define | PWMUSELFCLK 2 |
| use PWMUSELFCLK to select LFCLK | |
| #define | PWMUSEMFCLK 4 |
| use PWMUSEMFCLK to select MFCLK | |
| #define | PWMUSEBUSCLK 8 |
| use PWMUSEBUSCLK to select bus CLK | |
Functions | |
| void | PWMA0_Init (uint32_t timerClkSrc, uint32_t timerClkPrescale, uint32_t period, uint32_t duty0, uint32_t duty1) |
| Initialize PWMA0. More... | |
| void | PWMA0_SetDuty (uint32_t duty0, uint32_t duty1) |
| Set duty cycles. More... | |
| void | PWMA0_Forward (uint32_t duty0) |
| Motor forward. More... | |
| void | PWMA0_Backward (uint32_t duty1) |
| Motor backward. More... | |
| void | PWMA0_Break (void) |
| Motor break. More... | |
| void | PWMA0_Coast (void) |
| Motor coast. More... | |
Pulse width modulation.
Hardware creates fixed period, variable duty cycle waves