39 uint32_t u32EPWMClockSrc;
40 uint32_t u32NearestUnitTimeNsec;
41 uint32_t u16Prescale = 1U, u16CNR = 0xFFFFU;
71 u32EPWMClockSrc /= 1000U;
72 for(u16Prescale = 1U; u16Prescale <= 0x1000U; u16Prescale++)
74 uint32_t u32Exit = 0U;
75 u32NearestUnitTimeNsec = (1000000U * u16Prescale) / u32EPWMClockSrc;
76 if(u32NearestUnitTimeNsec < u32UnitTimeNsec)
78 if(u16Prescale == 0x1000U)
86 if(!((1000000U * (u16Prescale + 1U) > (u32NearestUnitTimeNsec * u32EPWMClockSrc))))
112 (epwm)->CTL1 = ((epwm)->CTL1 & ~(
EPWM_CTL1_CNTTYPE0_Msk << (u32ChannelNum << 1U))) | (1UL << (u32ChannelNum << 1U));
117 return (u32NearestUnitTimeNsec);
137 uint32_t u32EPWMClockSrc;
139 uint32_t u32Prescale = 1U, u32CNR = 0xFFFFU;
169 for(u32Prescale = 1U; u32Prescale < 0xFFFU; u32Prescale++)
171 i = (u32EPWMClockSrc / u32Frequency) / u32Prescale;
180 i = u32EPWMClockSrc / (u32Prescale * u32CNR);
191 EPWM_SET_CMR(epwm, u32ChannelNum, u32DutyCycle * (u32CNR + 1U) / 100U);
213 (epwm)->CNTEN |= u32ChannelMask;
231 if(u32ChannelMask & (1UL << i))
233 (epwm)->PERIOD[i] = 0U;
250 (epwm)->CNTEN &= ~u32ChannelMask;
281 if(u32ChannelNum < 4U)
304 if(u32ChannelNum < 4U)
331 if ((epwm)->EADCPSCCTL & (1UL << u32ChannelNum))
334 if(u32ChannelNum < 4UL)
337 (u32Prescale << (u32ChannelNum << 3));
339 (u32PrescaleCnt << (u32ChannelNum << 3));
344 (u32Prescale << ((u32ChannelNum - 4UL) << 3));
346 (u32PrescaleCnt << ((u32ChannelNum - 4UL) << 3));
414 (epwm)->DACTRGEN |= (u32Condition << u32ChannelNum);
499 if(u32ChannelMask & (1UL << i))
507 (epwm)->FAILBRK |= (u32BrakeSource & 0xFU);
511 (epwm)->BRKCTL[i >> 1U] |= u32BrakeSource;
515 if(u32LevelMask & (1UL << i))
560 (epwm)->CAPINEN |= u32ChannelMask;
561 (epwm)->CAPCTL |= u32ChannelMask;
576 (epwm)->CAPINEN &= ~u32ChannelMask;
577 (epwm)->CAPCTL &= ~u32ChannelMask;
592 (epwm)->POEN |= u32ChannelMask;
607 (epwm)->POEN &= ~u32ChannelMask;
628 u32IsOddCh = u32ChannelNum & 0x1U;
663 (epwm)->DTCTL[(u32ChannelNum) >> 1U] &= ~EPWM_DTCTL0_1_DTCNT_Msk;
680 (epwm)->DTCTL[(u32ChannelNum) >> 1U] &= ~EPWM_DTCTL0_1_DTEN_Msk;
697 (epwm)->CAPIEN |= (u32Edge << u32ChannelNum);
714 (epwm)->CAPIEN &= ~(u32Edge << u32ChannelNum);
731 (epwm)->CAPIF = (u32Edge << u32ChannelNum);
765 (epwm)->INTEN0 |= (u32IntDutyType << u32ChannelNum);
825 (epwm)->INTEN1 |= (0x7UL << u32BrakeSource);
841 (epwm)->INTEN1 &= ~(0x7UL << u32BrakeSource);
856 (epwm)->INTSTS1 = (0x3fUL << u32BrakeSource);
872 return (((epwm)->INTSTS1 & (0x3fUL << u32BrakeSource)) ? 1UL : 0UL);
1038 (epwm)->AINTEN |= (1UL << (u32ChannelNum));
1052 (epwm)->AINTEN &= ~(1UL << (u32ChannelNum));
1066 (epwm)->AINTSTS = (1UL << (u32ChannelNum));
1081 return (((epwm)->AINTSTS & (1UL << (u32ChannelNum))) ? 1UL : 0UL);
1095 (epwm)->APDMACTL |= (1UL << (u32ChannelNum));
1109 (epwm)->APDMACTL &= ~(1UL << (u32ChannelNum));
1185 (epwm)->CTL0 |= (u32LoadMode << u32ChannelNum);
1203 (epwm)->CTL0 &= ~(u32LoadMode << u32ChannelNum);
1228 u32ChannelNum >>= 1U;
1231 (epwm)->PHS[(u32ChannelNum)] = u32StartPhase;
1251 if(u32ChannelMask & (1UL << i))
1274 if(u32ChannelMask & (1UL << i))
1365 (u32ClkSrcSel << ((u32ChannelNum >> 1U) << 3U));
1478 (epwm)->LEBCTL = (u32TrigType) | (u32TrigSrcSel) | (u32BlankingEnable);
1480 (epwm)->LEBCNT = (u32BlankingCnt) - 1U;
1532 (epwm)->FDCTL[(u32ChannelNum)] = ((epwm)->FDCTL[(u32ChannelNum)] & ~EPWM_FDCTL0_FDCKSEL_Msk) | (u32ClkSel);
1589 (epwm)->FDCTL[(u32ChannelNum)] = ((epwm)->FDCTL[(u32ChannelNum)] & (~EPWM_FDCTL0_DGSMPCYC_Msk)) | \
1604 (epwm)->FDCTL[(u32ChannelNum)] &= ~EPWM_FDCTL0_FDDGEN_Msk;
1619 (epwm)->FDCTL[(u32ChannelNum)] = ((epwm)->FDCTL[(u32ChannelNum)] & (~EPWM_FDCTL0_TRMSKCNT_Msk)) | (
EPWM_FDCTL0_FDMSKEN_Msk | (u32MaskCnt));
1633 (epwm)->FDCTL[(u32ChannelNum)] &= ~EPWM_FDCTL0_FDMSKEN_Msk;
NuMicro peripheral access layer header file.
uint32_t CLK_GetPCLK1Freq(void)
Get PCLK1 frequency.
uint32_t CLK_GetPCLK0Freq(void)
Get PCLK0 frequency.
uint32_t CLK_GetPLLClockFreq(void)
Get PLL clock frequency.
#define EPWM_TRIGGER_DAC_COMPARE_DOWN
#define EPWM_TRIGGER_DAC_COMPARE_UP
#define EPWM_DUTY_INT_UP_COUNT_MATCH_CMP
#define EPWM_FB_EDGE_SYS_RAM
#define EPWM_FB_EDGE_SYS_BOD
#define EPWM_DUTY_INT_DOWN_COUNT_MATCH_CMP
#define EPWM_FB_LEVEL_SYS_RAM
#define EPWM_FB_EDGE_SYS_CSS
#define EPWM_FB_LEVEL_SYS_CSS
#define EPWM_TRIGGER_DAC_ZERO
#define EPWM_FB_LEVEL_SYS_COR
#define EPWM_FB_EDGE_SYS_COR
#define EPWM_TRIGGER_DAC_PERIOD
#define EPWM_FB_LEVEL_SYS_BOD
void EPWM_ClearAccInt(EPWM_T *epwm, uint32_t u32ChannelNum)
Clear interrupt flag accumulator interrupt of selected channel.
void EPWM_EnableSyncPhase(EPWM_T *epwm, uint32_t u32ChannelMask)
Enable SYNC phase of selected channel(s)
uint32_t EPWM_GetFaultDetectInt(EPWM_T *epwm, uint32_t u32ChannelNum)
Get fault detect interrupt of selected channel.
void EPWM_ClearFTDutyIntFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Clear free trigger duty interrupt flag of selected channel.
void EPWM_EnableAccInt(EPWM_T *epwm, uint32_t u32ChannelNum)
Enable interrupt flag accumulator interrupt of selected channel.
void EPWM_EnablePDMA(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32RisingFirst, uint32_t u32Mode)
Enables PDMA transfer of selected channel for EPWM capture.
void EPWM_ClearDutyIntFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Clear duty interrupt flag of selected channel.
void EPWM_DisableDeadZone(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable Dead zone of selected channel.
void EPWM_DisableOutput(EPWM_T *epwm, uint32_t u32ChannelMask)
Disables EPWM output generation of selected channel(s)
void EPWM_EnablePeriodInt(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32IntPeriodType)
Enable period interrupt of selected channel.
uint32_t EPWM_GetFaultBrakeIntFlag(EPWM_T *epwm, uint32_t u32BrakeSource)
This function get fault brake interrupt flag of selected source.
void EPWM_SetLeadingEdgeBlanking(EPWM_T *epwm, uint32_t u32TrigSrcSel, uint32_t u32TrigType, uint32_t u32BlankingCnt, uint32_t u32BlankingEnable)
Set EPWM leading edge blanking function.
void EPWM_ClearPeriodIntFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Clear period interrupt of selected channel.
uint32_t EPWM_GetDutyIntFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Get duty interrupt flag of selected channel.
#define EPWM_SET_CMR(epwm, u32ChannelNum, u32CMR)
This macro set the comparator of the selected channel.
int32_t EPWM_EnableADCTriggerPrescale(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Prescale, uint32_t u32PrescaleCnt)
Enable and configure trigger ADC prescale.
void EPWM_EnableADCTrigger(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Condition)
Enable selected channel to trigger ADC.
uint32_t EPWM_GetDACTriggerFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Get selected channel trigger DAC flag.
void EPWM_SetBrakePinSource(EPWM_T *epwm, uint32_t u32BrakePinNum, uint32_t u32SelAnotherModule)
Set EPWM brake pin source.
void EPWM_EnableSyncPinInverse(EPWM_T *epwm)
Enable EPWM SYNC input pin inverse function.
uint32_t EPWM_GetADCTriggerFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Get selected channel trigger ADC flag.
void EPWM_EnableFaultDetectDeglitch(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32DeglitchSmpCycle)
Enable fault detect deglitch function of selected channel.
void EPWM_DisableAccPDMA(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable accumulator PDMA of selected channel.
void EPWM_DisableCapture(EPWM_T *epwm, uint32_t u32ChannelMask)
Disable capture of selected channel(s)
void EPWM_ClearFaultDetectInt(EPWM_T *epwm, uint32_t u32ChannelNum)
Clear fault detect interrupt of selected channel.
void EPWM_DisableDutyInt(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable duty interrupt of selected channel.
void EPWM_EnableDutyInt(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32IntDutyType)
Enable duty interrupt of selected channel.
void EPWM_DisableFaultDetectDeglitch(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable fault detect deglitch function of selected channel.
void EPWM_EnableAccStopMode(EPWM_T *epwm, uint32_t u32ChannelNum)
Enable interrupt flag accumulator stop mode of selected channel.
void EPWM_SetClockSource(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32ClkSrcSel)
Set EPWM clock source.
void EPWM_DisableAcc(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable interrupt flag accumulator of selected channel.
void EPWM_EnableCaptureInt(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Edge)
Enable capture interrupt of selected channel.
void EPWM_DisableAccStopMode(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable interrupt flag accumulator stop mode of selected channel.
void EPWM_EnableFaultDetectOutput(EPWM_T *epwm, uint32_t u32ChannelNum)
Enable fault detect output of selected channel.
void EPWM_EnableZeroInt(EPWM_T *epwm, uint32_t u32ChannelNum)
Enable zero interrupt of selected channel.
uint32_t EPWM_GetAccInt(EPWM_T *epwm, uint32_t u32ChannelNum)
Get interrupt flag accumulator interrupt of selected channel.
void EPWM_DisableFaultDetect(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable fault detect of selected channel.
void EPWM_EnableAcc(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32IntFlagCnt, uint32_t u32IntAccSrc)
Enable interrupt flag accumulator of selected channel.
void EPWM_EnableFaultDetectInt(EPWM_T *epwm, uint32_t u32ChannelNum)
Enable fault detect interrupt of selected channel.
void EPWM_ConfigSyncPhase(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32SyncSrc, uint32_t u32Direction, uint32_t u32StartPhase)
Configure synchronization phase of selected channel.
void EPWM_ClearADCTriggerFlag(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Condition)
Clear selected channel trigger ADC flag.
void EPWM_ClearCaptureIntFlag(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Edge)
Clear capture interrupt of selected channel.
void EPWM_DisableFaultDetectInt(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable fault detect interrupt of selected channel.
void EPWM_EnableFaultBrake(EPWM_T *epwm, uint32_t u32ChannelMask, uint32_t u32LevelMask, uint32_t u32BrakeSource)
This function enable fault brake of selected channel(s)
void EPWM_EnableAccPDMA(EPWM_T *epwm, uint32_t u32ChannelNum)
Enable accumulator PDMA of selected channel.
void EPWM_ClearWrapAroundFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Clear the time-base counter reached its maximum value flag of selected channel.
void EPWM_DisablePeriodInt(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable period interrupt of selected channel.
void EPWM_EnableCapture(EPWM_T *epwm, uint32_t u32ChannelMask)
Enable capture of selected channel(s)
uint32_t EPWM_GetPeriodIntFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Get period interrupt of selected channel.
void EPWM_DisableFaultDetectOutput(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable fault detect output of selected channel.
void EPWM_EnableBrakeNoiseFilter(EPWM_T *epwm, uint32_t u32BrakePinNum, uint32_t u32ClkCnt, uint32_t u32ClkDivSel)
Enable EPWM brake noise filter function.
void EPWM_DisableZeroInt(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable zero interrupt of selected channel.
void EPWM_EnableFaultDetect(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32AfterPrescaler, uint32_t u32ClkSel)
Enable fault detect of selected channel.
void EPWM_DisableADCTriggerPrescale(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable Trigger ADC prescale function.
void EPWM_DisableAccInt(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable interrupt flag accumulator interrupt of selected channel.
uint32_t EPWM_GetWrapAroundFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Get the time-base counter reached its maximum value flag of selected channel.
void EPWM_DisableSyncPhase(EPWM_T *epwm, uint32_t u32ChannelMask)
Disable SYNC phase of selected channel(s)
void EPWM_EnableFaultBrakeInt(EPWM_T *epwm, uint32_t u32BrakeSource)
This function enable fault brake interrupt.
void EPWM_ClearZeroIntFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Clear zero interrupt of selected channel.
void EPWM_EnableFaultDetectMask(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32MaskCnt)
Enable fault detect mask function of selected channel.
void EPWM_DisablePDMA(EPWM_T *epwm, uint32_t u32ChannelNum)
Disables PDMA transfer of selected channel for EPWM capture.
void EPWM_DisableFaultBrakeInt(EPWM_T *epwm, uint32_t u32BrakeSource)
This function disable fault brake interrupt.
void EPWM_Start(EPWM_T *epwm, uint32_t u32ChannelMask)
Start EPWM module.
void EPWM_Stop(EPWM_T *epwm, uint32_t u32ChannelMask)
Stop EPWM module.
void EPWM_EnableOutput(EPWM_T *epwm, uint32_t u32ChannelMask)
Enables EPWM output generation of selected channel(s)
uint32_t EPWM_GetFTDutyIntFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Get free trigger duty interrupt flag of selected channel.
void EPWM_DisableSyncNoiseFilter(EPWM_T *epwm)
Disable EPWM SYNC_IN noise filter function.
void EPWM_ClearDACTriggerFlag(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Condition)
Clear selected channel trigger DAC flag.
void EPWM_DisableBrakePinInverse(EPWM_T *epwm, uint32_t u32BrakePinNum)
Disable EPWM brake pin inverse function.
#define EPWM_SET_CNR(epwm, u32ChannelNum, u32CNR)
This macro set the period of the selected channel.
void EPWM_DisableCaptureInt(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Edge)
Disable capture interrupt of selected channel.
uint32_t EPWM_GetCaptureIntFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Get capture interrupt of selected channel.
void EPWM_DisableLoadMode(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32LoadMode)
Disable load mode of selected channel.
void EPWM_ClearFaultBrakeIntFlag(EPWM_T *epwm, uint32_t u32BrakeSource)
This function clear fault brake interrupt of selected source.
void EPWM_DisableDACTrigger(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable selected channel to trigger DAC.
void EPWM_EnableBrakePinInverse(EPWM_T *epwm, uint32_t u32BrakePinNum)
Enable EPWM brake pin inverse function.
void EPWM_ForceStop(EPWM_T *epwm, uint32_t u32ChannelMask)
Stop EPWM generation immediately by clear channel enable bit.
uint32_t EPWM_ConfigOutputChannel(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Frequency, uint32_t u32DutyCycle)
This function Configure EPWM generator and get the nearest frequency in edge aligned(up counter type)...
void EPWM_DisableSyncPinInverse(EPWM_T *epwm)
Disable EPWM SYNC input pin inverse function.
void EPWM_EnableLoadMode(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32LoadMode)
Enable load mode of selected channel.
#define EPWM_SET_PRESCALER(epwm, u32ChannelNum, u32Prescaler)
This macro set the prescaler of the selected channel.
void EPWM_DisableBrakeNoiseFilter(EPWM_T *epwm, uint32_t u32BrakePinNum)
Disable EPWM brake noise filter function.
void EPWM_EnableDeadZone(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Duration)
Enable Dead zone of selected channel.
void EPWM_DisableFaultDetectMask(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable fault detect mask function of selected channel.
void EPWM_EnableSyncNoiseFilter(EPWM_T *epwm, uint32_t u32ClkCnt, uint32_t u32ClkDivSel)
Enable EPWM SYNC_IN noise filter function.
void EPWM_EnableDACTrigger(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Condition)
Enable selected channel to trigger DAC.
uint32_t EPWM_GetZeroIntFlag(EPWM_T *epwm, uint32_t u32ChannelNum)
Get zero interrupt of selected channel.
void EPWM_DisableADCTrigger(EPWM_T *epwm, uint32_t u32ChannelNum)
Disable selected channel to trigger ADC.
uint32_t EPWM_ConfigCaptureChannel(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32UnitTimeNsec, uint32_t u32CaptureEdge)
Configure EPWM capture and get the nearest unit time.
#define EPWM_FDEN_FDCKS0_Msk
#define EPWM_BNF_BK0SRC_Msk
#define EPWM_SYNC_PHSEN0_Pos
#define EPWM_BNF_BRK0NFSEL_Msk
#define EPWM_WGCTL1_CMPUCTL0_Pos
#define EPWM_BNF_BRK1NFEN_Pos
#define EPWM_CTL1_CNTMODE0_Pos
#define EPWM_IFA0_IFAEN_Msk
#define EPWM_PDMACTL_CHSEL0_1_Msk
#define EPWM_BNF_BRK0FCNT_Msk
#define EPWM_IFA0_STPMOD_Msk
#define EPWM_BNF_BRK0NFEN_Msk
#define EPWM_BNF_BRK0FCNT_Pos
#define EPWM_IFA0_IFASEL_Pos
#define CLK_CLKSEL2_EPWM1SEL_Msk
#define EPWM_INTSTS0_CMPDIF0_Msk
#define EPWM_SYNC_SFLTCNT_Msk
#define EPWM_EADCTS0_TRGSEL0_Msk
#define EPWM_SYNC_PHSDIR0_Pos
#define EPWM_CTL1_CNTTYPE0_Msk
#define EPWM_INTEN0_PIEN0_Pos
#define EPWM_PDMACTL_CAPMOD0_1_Msk
#define EPWM_PDMACTL_CHSEL0_1_Pos
#define EPWM_SYNC_SNFLTEN_Msk
#define EPWM_SYNC_SFLTCSEL_Msk
#define EPWM_BRKCTL0_1_BRKAEVEN_Pos
#define EPWM_EADCTS1_TRGSEL4_Msk
#define EPWM_PDMACTL_CAPORD0_1_Msk
#define EPWM_EADCPSC1_EADCPSC4_Msk
#define EPWM_WGCTL1_CMPDCTL0_Msk
#define EPWM_PDMACTL_CHEN0_1_Msk
#define EPWM_SYNC_SFLTCSEL_Pos
#define EPWM_EADCTS0_TRGEN0_Msk
#define EPWM_INTEN0_ZIEN0_Pos
#define EPWM_CAPIF_CFLIF0_Msk
#define EPWM_BRKCTL0_1_BRKAEVEN_Msk
#define EPWM_BNF_BK0SRC_Pos
#define EPWM_WGCTL0_ZPCTL0_Pos
#define EPWM_FDSTS_FDIF0_Msk
#define EPWM_FDCTL0_FDMSKEN_Msk
#define EPWM_CAPIF_CRLIF0_Msk
#define EPWM_STATUS_EADCTRGF0_Msk
#define EPWM_EADCPSCNT0_PSCNT0_Msk
#define EPWM_EADCPSCCTL_PSCEN0_Msk
#define EPWM_STATUS_CNTMAXF0_Msk
#define EPWM_EADCPSC0_EADCPSC0_Msk
#define EPWM_IFA0_IFASEL_Msk
#define EPWM_FDEN_FDEN0_Msk
#define EPWM_BRKCTL0_1_SYSEBEN_Msk
#define EPWM_FDCTL0_DGSMPCYC_Pos
#define EPWM_EADCTS1_TRGEN4_Msk
#define EPWM_WGCTL0_ZPCTL0_Msk
#define EPWM_INTSTS0_CMPUIF0_Msk
#define EPWM_CTL1_CNTMODE0_Msk
#define EPWM_BRKCTL0_1_BRKAODD_Pos
#define EPWM_IFA0_IFACNT_Msk
#define EPWM_FDEN_FDCKS0_Pos
#define EPWM_SYNC_SINPINV_Msk
#define EPWM_DTCTL0_1_DTEN_Msk
#define EPWM_BNF_BRK0NFSEL_Pos
#define EPWM_BNF_BRK0PINV_Msk
#define EPWM_FDIEN_FDIEN0_Msk
#define EPWM_PDMACTL_CAPORD0_1_Pos
#define EPWM_INTSTS0_PIF0_Pos
#define EPWM_WGCTL0_PRDPCTL0_Msk
#define EPWM_EADCPSCNT1_PSCNT4_Msk
#define EPWM_FTCI_FTCMD0_Msk
#define EPWM_BRKCTL0_1_BRKAODD_Msk
#define CLK_CLKSEL2_EPWM0SEL_Msk
#define EPWM_STATUS_DACTRGF_Msk
#define EPWM_FTCI_FTCMU0_Msk
#define EPWM_WGCTL1_CMPUCTL0_Msk
#define EPWM_FDEN_FDODIS0_Msk
#define EPWM_SYNC_SINSRC0_Pos
#define EPWM_FDCTL0_FDDGEN_Msk
#define EPWM_CLKSRC_ECLKSRC0_Msk
#define EPWM_SYNC_SFLTCNT_Pos
#define EPWM_BRKCTL0_1_SYSLBEN_Msk
void SystemCoreClockUpdate(void)
Updates the SystemCoreClock with current core Clock retrieved from cpu registers.