Home
last modified time | relevance | path

Searched refs:epwm (Results 1 – 4 of 4) sorted by relevance

/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/
Depwm.c35 uint32_t EPWM_ConfigCaptureChannel(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32UnitTimeNsec, … in EPWM_ConfigCaptureChannel() argument
45 if((epwm == EPWM0) || (epwm == EPWM0_NS)) in EPWM_ConfigCaptureChannel()
82 EPWM_SET_PRESCALER(epwm, u32ChannelNum, u32Prescale); in EPWM_ConfigCaptureChannel()
85 …(epwm)->CTL1 = ((epwm)->CTL1 & ~(EPWM_CTL1_CNTTYPE0_Msk << (u32ChannelNum << 1))) | (1UL << (u32Ch… in EPWM_ConfigCaptureChannel()
87 (epwm)->CTL1 &= ~(EPWM_CTL1_CNTMODE0_Msk << u32ChannelNum); in EPWM_ConfigCaptureChannel()
88 EPWM_SET_CNR(epwm, u32ChannelNum, u32CNR); in EPWM_ConfigCaptureChannel()
107 uint32_t EPWM_ConfigOutputChannel(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Frequency, uint… in EPWM_ConfigOutputChannel() argument
114 if((epwm == EPWM0) || (epwm == EPWM0_NS)) in EPWM_ConfigOutputChannel()
139 EPWM_SET_PRESCALER(epwm, u32ChannelNum, u32Prescale); in EPWM_ConfigOutputChannel()
141 …(epwm)->CTL1 = ((epwm)->CTL1 & ~((EPWM_CTL1_CNTTYPE0_Msk << (u32ChannelNum << 1)) | (EPWM_CTL1_CNT… in EPWM_ConfigOutputChannel()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/
Depwm.c35 uint32_t EPWM_ConfigCaptureChannel(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32UnitTimeNsec, … in EPWM_ConfigCaptureChannel() argument
44 if((epwm == EPWM0) || (epwm == EPWM0_NS)) in EPWM_ConfigCaptureChannel()
81 EPWM_SET_PRESCALER(epwm, u32ChannelNum, u32Prescale); in EPWM_ConfigCaptureChannel()
84 …(epwm)->CTL1 = ((epwm)->CTL1 & ~(EPWM_CTL1_CNTTYPE0_Msk << (u32ChannelNum << 1))) | (1UL << (u32Ch… in EPWM_ConfigCaptureChannel()
86 (epwm)->CTL1 &= ~(EPWM_CTL1_CNTMODE0_Msk << u32ChannelNum); in EPWM_ConfigCaptureChannel()
87 EPWM_SET_CNR(epwm, u32ChannelNum, u32CNR); in EPWM_ConfigCaptureChannel()
106 uint32_t EPWM_ConfigOutputChannel(EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Frequency, uint… in EPWM_ConfigOutputChannel() argument
113 if((epwm == EPWM0) || (epwm == EPWM0_NS)) in EPWM_ConfigOutputChannel()
138 EPWM_SET_PRESCALER(epwm, u32ChannelNum, u32Prescale); in EPWM_ConfigOutputChannel()
140 …(epwm)->CTL1 = ((epwm)->CTL1 & ~((EPWM_CTL1_CNTTYPE0_Msk << (u32ChannelNum << 1)) | (EPWM_CTL1_CNT… in EPWM_ConfigOutputChannel()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/
Depwm.h208 #define EPWM_ENABLE_COMPLEMENTARY_MODE(epwm) ((epwm)->CTL1 = (epwm)->CTL1 | (0x7ul<<EPWM_CTL1_OUTMO… argument
217 #define EPWM_DISABLE_COMPLEMENTARY_MODE(epwm) ((epwm)->CTL1 = (epwm)->CTL1 & ~(0x7ul<<EPWM_CTL1_OUT… argument
226 #define EPWM_ENABLE_GROUP_MODE(epwm) ((epwm)->CTL0 = (epwm)->CTL0 | EPWM_CTL0_GROUPEN_Msk) argument
235 #define EPWM_DISABLE_GROUP_MODE(epwm) ((epwm)->CTL0 = (epwm)->CTL0 & ~EPWM_CTL0_GROUPEN_Msk) argument
251 #define EPWM_ENABLE_TIMER_SYNC(epwm, u32ChannelMask, u32SyncSrc) ((epwm)->SSCTL = ((epwm)->SSCTL & … argument
262 #define EPWM_DISABLE_TIMER_SYNC(epwm, u32ChannelMask) \ argument
268 (epwm)->SSCTL &= ~(1UL << i); \
281 #define EPWM_TRIGGER_SYNC_START(epwm) ((epwm)->SSTRG = EPWM_SSTRG_CNTSEN_Msk) argument
292 #define EPWM_ENABLE_OUTPUT_INVERTER(epwm, u32ChannelMask) ((epwm)->POLCTL = (u32ChannelMask)) argument
302 #define EPWM_GET_CAPTURE_RISING_DATA(epwm, u32ChannelNum) ((epwm)->CAPDAT[(u32ChannelNum)].RCAPDAT) argument
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/
Depwm.h217 #define EPWM_ENABLE_COMPLEMENTARY_MODE(epwm) ((epwm)->CTL1 = (epwm)->CTL1 | (0x7ul<<EPWM_CTL1_OUTMO… argument
226 #define EPWM_DISABLE_COMPLEMENTARY_MODE(epwm) ((epwm)->CTL1 = (epwm)->CTL1 & ~(0x7ul<<EPWM_CTL1_OUT… argument
235 #define EPWM_ENABLE_GROUP_MODE(epwm) ((epwm)->CTL0 = (epwm)->CTL0 | EPWM_CTL0_GROUPEN_Msk) argument
244 #define EPWM_DISABLE_GROUP_MODE(epwm) ((epwm)->CTL0 = (epwm)->CTL0 & ~EPWM_CTL0_GROUPEN_Msk) argument
260 #define EPWM_ENABLE_TIMER_SYNC(epwm, u32ChannelMask, u32SyncSrc) ((epwm)->SSCTL = ((epwm)->SSCTL & … argument
271 #define EPWM_DISABLE_TIMER_SYNC(epwm, u32ChannelMask) \ argument
277 (epwm)->SSCTL &= ~(1UL << i); \
290 #define EPWM_TRIGGER_SYNC_START(epwm) ((epwm)->SSTRG = EPWM_SSTRG_CNTSEN_Msk) argument
301 #define EPWM_ENABLE_OUTPUT_INVERTER(epwm, u32ChannelMask) ((epwm)->POLCTL = (u32ChannelMask)) argument
311 #define EPWM_GET_CAPTURE_RISING_DATA(epwm, u32ChannelNum) ((epwm)->CAPDAT[(u32ChannelNum)].RCAPDAT) argument
[all …]