/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/ |
D | bpwm.h | 125 #define BPWM_ENABLE_TIMER_SYNC(bpwm, u32ChannelMask, u32SyncSrc) ((bpwm)->SSCTL = ((bpwm)->SSCTL & … argument 136 #define BPWM_DISABLE_TIMER_SYNC(bpwm, u32ChannelMask) ((bpwm)->SSCTL &= ~BPWM_SSCTL_SSEN0_Msk) argument 156 #define BPWM_ENABLE_OUTPUT_INVERTER(bpwm, u32ChannelMask) ((bpwm)->POLCTL = (u32ChannelMask)) argument 187 #define BPWM_MASK_OUTPUT(bpwm, u32ChannelMask, u32LevelMask) \ argument 189 (bpwm)->MSKEN = (u32ChannelMask); \ 256 #define BPWM_SET_ALIGNED_TYPE(bpwm, u32ChannelMask, u32AlignedType) ((bpwm)->CTL1 = (u32AlignedType… argument 266 #define BPWM_CLR_COUNTER(bpwm, u32ChannelMask) ((bpwm)->CNTCLR = (BPWM_CNTCLR_CNTCLR0_Msk)) argument 297 #define BPWM_SET_OUTPUT_LEVEL(bpwm, u32ChannelMask, u32ZeroLevel, u32CmpUpLevel, u32PeriodLevel, u3… argument 301 if((u32ChannelMask) & (1UL << i)) { \ 316 void BPWM_Start(BPWM_T *bpwm, uint32_t u32ChannelMask); [all …]
|
D | epwm.h | 251 …_TIMER_SYNC(epwm, u32ChannelMask, u32SyncSrc) ((epwm)->SSCTL = ((epwm)->SSCTL & ~EPWM_SSCTL_SSRC_M… argument 262 #define EPWM_DISABLE_TIMER_SYNC(epwm, u32ChannelMask) \ argument 266 if((u32ChannelMask) & (1UL << i)) \ 292 #define EPWM_ENABLE_OUTPUT_INVERTER(epwm, u32ChannelMask) ((epwm)->POLCTL = (u32ChannelMask)) argument 325 #define EPWM_MASK_OUTPUT(epwm, u32ChannelMask, u32LevelMask) \ argument 327 (epwm)->MSKEN = (u32ChannelMask); \ 425 #define EPWM_SET_ALIGNED_TYPE(epwm, u32ChannelMask, u32AlignedType) \ argument 429 if((u32ChannelMask) & (1UL << i)) \ 445 #define EPWM_SET_LOAD_WINDOW(epwm, u32ChannelMask) ((epwm)->LOAD |= (u32ChannelMask)) argument 467 #define EPWM_CLR_COUNTER(epwm, u32ChannelMask) ((epwm)->CNTCLR |= (u32ChannelMask)) argument [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/ |
D | bpwm.h | 125 #define BPWM_ENABLE_TIMER_SYNC(bpwm, u32ChannelMask, u32SyncSrc) ((bpwm)->SSCTL = ((bpwm)->SSCTL & … argument 136 #define BPWM_DISABLE_TIMER_SYNC(bpwm, u32ChannelMask) ((bpwm)->SSCTL &= ~BPWM_SSCTL_SSEN0_Msk) argument 156 #define BPWM_ENABLE_OUTPUT_INVERTER(bpwm, u32ChannelMask) ((bpwm)->POLCTL = (u32ChannelMask)) argument 187 #define BPWM_MASK_OUTPUT(bpwm, u32ChannelMask, u32LevelMask) \ argument 189 (bpwm)->MSKEN = (u32ChannelMask); \ 256 #define BPWM_SET_ALIGNED_TYPE(bpwm, u32ChannelMask, u32AlignedType) ((bpwm)->CTL1 = (u32AlignedType… argument 266 #define BPWM_CLR_COUNTER(bpwm, u32ChannelMask) ((bpwm)->CNTCLR = (BPWM_CNTCLR_CNTCLR0_Msk)) argument 297 #define BPWM_SET_OUTPUT_LEVEL(bpwm, u32ChannelMask, u32ZeroLevel, u32CmpUpLevel, u32PeriodLevel, u3… argument 301 if((u32ChannelMask) & (1UL << i)) { \ 316 void BPWM_Start(BPWM_T *bpwm, uint32_t u32ChannelMask); [all …]
|
D | epwm.h | 260 …_TIMER_SYNC(epwm, u32ChannelMask, u32SyncSrc) ((epwm)->SSCTL = ((epwm)->SSCTL & ~EPWM_SSCTL_SSRC_M… argument 271 #define EPWM_DISABLE_TIMER_SYNC(epwm, u32ChannelMask) \ argument 275 if((u32ChannelMask) & (1UL << i)) \ 301 #define EPWM_ENABLE_OUTPUT_INVERTER(epwm, u32ChannelMask) ((epwm)->POLCTL = (u32ChannelMask)) argument 334 #define EPWM_MASK_OUTPUT(epwm, u32ChannelMask, u32LevelMask) \ argument 336 (epwm)->MSKEN = (u32ChannelMask); \ 434 #define EPWM_SET_ALIGNED_TYPE(epwm, u32ChannelMask, u32AlignedType) \ argument 438 if((u32ChannelMask) & (1UL << i)) \ 454 #define EPWM_SET_LOAD_WINDOW(epwm, u32ChannelMask) ((epwm)->LOAD |= (u32ChannelMask)) argument 476 #define EPWM_CLR_COUNTER(epwm, u32ChannelMask) ((epwm)->CNTCLR |= (u32ChannelMask)) argument [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/ |
D | bpwm.c | 167 void BPWM_Start(BPWM_T *bpwm, uint32_t u32ChannelMask) in BPWM_Start() argument 169 (void)u32ChannelMask; in BPWM_Start() 183 void BPWM_Stop(BPWM_T *bpwm, uint32_t u32ChannelMask) in BPWM_Stop() argument 185 (void)u32ChannelMask; in BPWM_Stop() 199 void BPWM_ForceStop(BPWM_T *bpwm, uint32_t u32ChannelMask) in BPWM_ForceStop() argument 201 (void)u32ChannelMask; in BPWM_ForceStop() 298 void BPWM_EnableCapture(BPWM_T *bpwm, uint32_t u32ChannelMask) in BPWM_EnableCapture() argument 300 (bpwm)->CAPINEN |= u32ChannelMask; in BPWM_EnableCapture() 301 (bpwm)->CAPCTL |= u32ChannelMask; in BPWM_EnableCapture() 314 void BPWM_DisableCapture(BPWM_T *bpwm, uint32_t u32ChannelMask) in BPWM_DisableCapture() argument [all …]
|
D | epwm.c | 165 void EPWM_Start(EPWM_T *epwm, uint32_t u32ChannelMask) in EPWM_Start() argument 167 (epwm)->CNTEN |= u32ChannelMask; in EPWM_Start() 180 void EPWM_Stop(EPWM_T *epwm, uint32_t u32ChannelMask) in EPWM_Stop() argument 185 if(u32ChannelMask & (1UL << i)) in EPWM_Stop() 202 void EPWM_ForceStop(EPWM_T *epwm, uint32_t u32ChannelMask) in EPWM_ForceStop() argument 204 (epwm)->CNTEN &= ~u32ChannelMask; in EPWM_ForceStop() 450 void EPWM_EnableFaultBrake(EPWM_T *epwm, uint32_t u32ChannelMask, uint32_t u32LevelMask, uint32_t u… in EPWM_EnableFaultBrake() argument 456 if(u32ChannelMask & (1UL << i)) in EPWM_EnableFaultBrake() 515 void EPWM_EnableCapture(EPWM_T *epwm, uint32_t u32ChannelMask) in EPWM_EnableCapture() argument 517 (epwm)->CAPINEN |= u32ChannelMask; in EPWM_EnableCapture() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/ |
D | bpwm.c | 166 void BPWM_Start(BPWM_T *bpwm, uint32_t u32ChannelMask) in BPWM_Start() argument 168 (void)u32ChannelMask; in BPWM_Start() 182 void BPWM_Stop(BPWM_T *bpwm, uint32_t u32ChannelMask) in BPWM_Stop() argument 184 (void)u32ChannelMask; in BPWM_Stop() 198 void BPWM_ForceStop(BPWM_T *bpwm, uint32_t u32ChannelMask) in BPWM_ForceStop() argument 200 (void)u32ChannelMask; in BPWM_ForceStop() 297 void BPWM_EnableCapture(BPWM_T *bpwm, uint32_t u32ChannelMask) in BPWM_EnableCapture() argument 299 (bpwm)->CAPINEN |= u32ChannelMask; in BPWM_EnableCapture() 300 (bpwm)->CAPCTL |= u32ChannelMask; in BPWM_EnableCapture() 313 void BPWM_DisableCapture(BPWM_T *bpwm, uint32_t u32ChannelMask) in BPWM_DisableCapture() argument [all …]
|
D | epwm.c | 164 void EPWM_Start(EPWM_T *epwm, uint32_t u32ChannelMask) in EPWM_Start() argument 166 (epwm)->CNTEN |= u32ChannelMask; in EPWM_Start() 179 void EPWM_Stop(EPWM_T *epwm, uint32_t u32ChannelMask) in EPWM_Stop() argument 184 if(u32ChannelMask & (1UL << i)) in EPWM_Stop() 201 void EPWM_ForceStop(EPWM_T *epwm, uint32_t u32ChannelMask) in EPWM_ForceStop() argument 203 (epwm)->CNTEN &= ~u32ChannelMask; in EPWM_ForceStop() 395 void EPWM_EnableFaultBrake(EPWM_T *epwm, uint32_t u32ChannelMask, uint32_t u32LevelMask, uint32_t u… in EPWM_EnableFaultBrake() argument 401 if(u32ChannelMask & (1UL << i)) in EPWM_EnableFaultBrake() 460 void EPWM_EnableCapture(EPWM_T *epwm, uint32_t u32ChannelMask) in EPWM_EnableCapture() argument 462 (epwm)->CAPINEN |= u32ChannelMask; in EPWM_EnableCapture() [all …]
|