34 #ifdef __BUILD_WITH_EXAMPLE__
35 #include "lpc17xx_libcfg.h"
87 if ((channelNum >= 0) && (channelNum <= 2)) {
88 if (channelNum == 0) {
92 }
else if (channelNum == 1) {
96 }
else if (channelNum == 2) {
147 if (channelNum == 0){
150 }
else if (channelNum == 1) {
153 }
else if (channelNum == 2) {
175 if ((channelNum >= 0) && (channelNum <= 2)) {
225 if (captureChannel == 0){
226 return (MCPWMx->
MCCR0);
227 }
else if (captureChannel == 1) {
228 return (MCPWMx->
MCCR1);
229 }
else if (captureChannel == 2) {
230 return (MCPWMx->
MCCR2);
252 if ((channelNum >= 0) && (channelNum <= 2)) {
288 uint32_t channel1, uint32_t channel2)
291 regVal = (channel0 ?
MCPWM_CON_RUN(0) : 0) | (channel1 ? MCPWM_CON_RUN(1) : 0) \
292 | (channel2 ? MCPWM_CON_RUN(2) : 0);
313 uint32_t channel1, uint32_t channel2)
316 regVal = (channel0 ?
MCPWM_CON_RUN(0) : 0) | (channel1 ? MCPWM_CON_RUN(1) : 0) \
317 | (channel2 ? MCPWM_CON_RUN(2) : 0);
367 uint32_t outputInvered, uint32_t outputPattern)
381 MCPWMx->
MCCCP = outputPattern;