Searched refs:bpwm (Results 1 – 4 of 4) sorted by relevance
/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 146 #define BPWM_TRIGGER_SYNC_START(bpwm) ((bpwm)->SSTRG = BPWM_SSTRG_CNTSEN_Msk) argument 156 #define BPWM_ENABLE_OUTPUT_INVERTER(bpwm, u32ChannelMask) ((bpwm)->POLCTL = (u32ChannelMask)) argument 165 #define BPWM_GET_CAPTURE_RISING_DATA(bpwm, u32ChannelNum) ((bpwm)->CAPDAT[(u32ChannelNum)].RCAPDAT) argument 174 #define BPWM_GET_CAPTURE_FALLING_DATA(bpwm, u32ChannelNum) ((bpwm)->CAPDAT[(u32ChannelNum)].FCAPDAT) argument 187 #define BPWM_MASK_OUTPUT(bpwm, u32ChannelMask, u32LevelMask) \ argument 189 (bpwm)->MSKEN = (u32ChannelMask); \ 190 (bpwm)->MSK = (u32LevelMask); \ 201 #define BPWM_SET_PRESCALER(bpwm, u32ChannelNum, u32Prescaler) ((bpwm)->CLKPSC = (u32Prescaler)) 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 146 #define BPWM_TRIGGER_SYNC_START(bpwm) ((bpwm)->SSTRG = BPWM_SSTRG_CNTSEN_Msk) argument 156 #define BPWM_ENABLE_OUTPUT_INVERTER(bpwm, u32ChannelMask) ((bpwm)->POLCTL = (u32ChannelMask)) argument 165 #define BPWM_GET_CAPTURE_RISING_DATA(bpwm, u32ChannelNum) ((bpwm)->CAPDAT[(u32ChannelNum)].RCAPDAT) argument 174 #define BPWM_GET_CAPTURE_FALLING_DATA(bpwm, u32ChannelNum) ((bpwm)->CAPDAT[(u32ChannelNum)].FCAPDAT) argument 187 #define BPWM_MASK_OUTPUT(bpwm, u32ChannelMask, u32LevelMask) \ argument 189 (bpwm)->MSKEN = (u32ChannelMask); \ 190 (bpwm)->MSK = (u32LevelMask); \ 201 #define BPWM_SET_PRESCALER(bpwm, u32ChannelNum, u32Prescaler) ((bpwm)->CLKPSC = (u32Prescaler)) argument [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/ |
D | bpwm.c | 35 uint32_t BPWM_ConfigCaptureChannel(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32UnitTimeNsec, … in BPWM_ConfigCaptureChannel() argument 46 if((((uint32_t)bpwm) == BPWM0_BASE) || (((uint32_t)bpwm) == BPWM0_BASE + NS_OFFSET)) in BPWM_ConfigCaptureChannel() 84 BPWM_SET_PRESCALER(bpwm, u32ChannelNum, u32Prescale); in BPWM_ConfigCaptureChannel() 87 (bpwm)->CTL1 = (1UL); in BPWM_ConfigCaptureChannel() 89 BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR); in BPWM_ConfigCaptureChannel() 108 uint32_t BPWM_ConfigOutputChannel(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32Frequency, uint… in BPWM_ConfigOutputChannel() argument 115 if(((uint32_t)bpwm == BPWM0_BASE) || ((uint32_t)bpwm == BPWM0_BASE + NS_OFFSET)) in BPWM_ConfigOutputChannel() 140 BPWM_SET_PRESCALER(bpwm, u32ChannelNum, u32Prescale); in BPWM_ConfigOutputChannel() 142 (bpwm)->CTL1 = BPWM_UP_COUNTER; in BPWM_ConfigOutputChannel() 145 BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR); in BPWM_ConfigOutputChannel() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/ |
D | bpwm.c | 35 uint32_t BPWM_ConfigCaptureChannel(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32UnitTimeNsec, … in BPWM_ConfigCaptureChannel() argument 45 if((((uint32_t)bpwm) == BPWM0_BASE) || (((uint32_t)bpwm) == BPWM0_BASE + NS_OFFSET)) in BPWM_ConfigCaptureChannel() 83 BPWM_SET_PRESCALER(bpwm, u32ChannelNum, u32Prescale); in BPWM_ConfigCaptureChannel() 86 (bpwm)->CTL1 = (1UL); in BPWM_ConfigCaptureChannel() 88 BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR); in BPWM_ConfigCaptureChannel() 107 uint32_t BPWM_ConfigOutputChannel(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32Frequency, uint… in BPWM_ConfigOutputChannel() argument 114 if(((uint32_t)bpwm == BPWM0_BASE) || ((uint32_t)bpwm == BPWM0_BASE + NS_OFFSET)) in BPWM_ConfigOutputChannel() 139 BPWM_SET_PRESCALER(bpwm, u32ChannelNum, u32Prescale); in BPWM_ConfigOutputChannel() 141 (bpwm)->CTL1 = BPWM_UP_COUNTER; in BPWM_ConfigOutputChannel() 144 BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR); in BPWM_ConfigOutputChannel() [all …]
|