Home
last modified time | relevance | path

Searched refs:PWMx (Results 1 – 10 of 10) sorted by relevance

/bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/
A DSWM341_pwm.c65 PWMx->IF = 0x3F; in PWM_Init()
76 switch((uint32_t)PWMx) in PWM_Init()
335 PWMx->CMPA = hduty; in PWM_SetHDuty()
337 PWMx->CMPB = hduty; in PWM_SetHDuty()
351 return PWMx->CMPA; in PWM_GetHDuty()
353 return PWMx->CMPB; in PWM_GetHDuty()
431 return PWMx->DZA; in PWM_GetDeadzone()
433 return PWMx->DZB; in PWM_GetDeadzone()
448 PWMx->IE |= it; in PWM_IntEn()
462 PWMx->IE &= ~it; in PWM_IntDis()
[all …]
A DSWM341_pwm.h90 void PWM_Init(PWM_TypeDef * PWMx, PWM_InitStructure * initStruct); //PWM初始化
106 void PWM_SetPeriod(PWM_TypeDef * PWMx, uint16_t period); //设置周期
107 uint16_t PWM_GetPeriod(PWM_TypeDef * PWMx); //获取周期
108 void PWM_SetHDuty(PWM_TypeDef * PWMx, uint32_t chn, uint16_t hduty); //设置高电平时长
109 uint16_t PWM_GetHDuty(PWM_TypeDef * PWMx, uint32_t chn); //获取高电平时长
112 void PWM_SetDeadzone(PWM_TypeDef * PWMx, uint32_t chn, uint16_t deadzone); //设置死区时长
113 uint16_t PWM_GetDeadzone(PWM_TypeDef * PWMx, uint32_t chn); //获取死区时长
115 void PWM_IntEn(PWM_TypeDef * PWMx, uint32_t it); //中断使能
116 void PWM_IntDis(PWM_TypeDef * PWMx, uint32_t it); //中断禁能
117 void PWM_IntClr(PWM_TypeDef * PWMx, uint32_t it); //中断标志清除
[all …]
/bsp/Vango/v85xxp/Libraries/VangoV85xxP_standard_peripheral/Source/
A Dlib_pwm.c44 tmp = PWMx->CTL; in PWM_BaseInit()
51 PWMx->CTL = tmp; in PWM_BaseInit()
184 tmp = PWMx->CTL; in PWM_BaseINTConfig()
190 PWMx->CTL = tmp; in PWM_BaseINTConfig()
203 if (PWMx->CTL&PWM_CTL_IFG) in PWM_GetBaseINTStatus()
219 PWMx->CTL |= PWM_CTL_IFG; in PWM_ClearBaseINTStatus()
243 tmp = PWMx->CCTL[Channel]; in PWM_ChannelINTConfig()
249 PWMx->CCTL[Channel] = tmp; in PWM_ChannelINTConfig()
302 tmp = PWMx->CCTL[Channel]; in PWM_ClearChannelINTStatus()
305 PWMx->CCTL[Channel] = tmp; in PWM_ClearChannelINTStatus()
[all …]
/bsp/Vango/v85xx/Libraries/VangoV85xx_standard_peripheral/Source/
A Dlib_pwm.c44 tmp = PWMx->CTL; in PWM_BaseInit()
51 PWMx->CTL = tmp; in PWM_BaseInit()
109 tmp = PWMx->CCTL0; in PWM_OC0Init()
112 PWMx->CCTL0 = tmp; in PWM_OC0Init()
141 tmp = PWMx->CCTL1; in PWM_OC1Init()
144 PWMx->CCTL1 = tmp; in PWM_OC1Init()
173 tmp = PWMx->CCTL2; in PWM_OC2Init()
176 PWMx->CCTL2 = tmp; in PWM_OC2Init()
196 tmp = PWMx->CTL; in PWM_BaseINTConfig()
202 PWMx->CTL = tmp; in PWM_BaseINTConfig()
[all …]
/bsp/synwit/libraries/SWM320_CSL/SWM320_StdPeriph_Driver/
A DSWM320_pwm.h37 void PWM_Init(PWM_TypeDef * PWMx, PWM_InitStructure * initStruct); //PWM初始化
41 void PWM_SetCycle(PWM_TypeDef * PWMx, uint32_t chn, uint16_t cycle); //设置周期
42 uint16_t PWM_GetCycle(PWM_TypeDef * PWMx, uint32_t chn); //获取周期
43 void PWM_SetHDuty(PWM_TypeDef * PWMx, uint32_t chn, uint16_t hduty); //设置高电平时长
44 uint16_t PWM_GetHDuty(PWM_TypeDef * PWMx, uint32_t chn); //获取高电平时长
45 void PWM_SetDeadzone(PWM_TypeDef * PWMx, uint32_t chn, uint8_t deadzone); //设置死区时长
46 uint8_t PWM_GetDeadzone(PWM_TypeDef * PWMx, uint32_t chn); //获取死区时长
48 void PWM_IntNCycleEn(PWM_TypeDef * PWMx, uint32_t chn); //新周期开始中断使能
49 void PWM_IntNCycleDis(PWM_TypeDef * PWMx, uint32_t chn); //新周期开始中断禁能
52 void PWM_IntHEndEn(PWM_TypeDef * PWMx, uint32_t chn); //高电平结束中断使能
[all …]
A DSWM320_pwm.c60 switch((uint32_t)PWMx) in PWM_Init()
113 switch((uint32_t)PWMx) in PWM_Start()
152 switch((uint32_t)PWMx) in PWM_Stop()
192 PWMx->PERA = cycle; in PWM_SetCycle()
194 PWMx->PERB = cycle; in PWM_SetCycle()
210 cycle = PWMx->PERA; in PWM_GetCycle()
212 cycle = PWMx->PERB; in PWM_GetCycle()
302 switch((uint32_t)PWMx) in PWM_IntNCycleEn()
346 switch((uint32_t)PWMx) in PWM_IntNCycleDis()
390 switch((uint32_t)PWMx) in PWM_IntNCycleClr()
[all …]
/bsp/Vango/v85xx/Libraries/VangoV85xx_standard_peripheral/Include/
A Dlib_pwm.h149 void PWM_BaseInit(PWM_TypeDef *PWMx, PWM_BaseInitType *InitStruct);
151 void PWM_OC0Init(PWM_TypeDef *PWMx, PWM_OCInitType *OCInitType);
152 void PWM_OC1Init(PWM_TypeDef *PWMx, PWM_OCInitType *OCInitType);
153 void PWM_OC2Init(PWM_TypeDef *PWMx, PWM_OCInitType *OCInitType);
157 void PWM_BaseINTConfig(PWM_TypeDef *PWMx, uint32_t NewState);
158 uint8_t PWM_GetBaseINTStatus(PWM_TypeDef *PWMx);
159 void PWM_ClearBaseINTStatus(PWM_TypeDef *PWMx);
161 uint8_t PWM_GetChannelINTStatus(PWM_TypeDef *PWMx, uint32_t Channel);
162 void PWM_ClearChannelINTStatus(PWM_TypeDef *PWMx, uint32_t Channel);
165 void PWM_ClearCounter(PWM_TypeDef *PWMx);
[all …]
/bsp/synwit/libraries/SWM320_drivers/
A Ddrv_pwm.c34 .PWMx = PWM0, \
56 .PWMx = PWM1, \
78 .PWMx = PWM2, \
100 .PWMx = PWM3, \
122 .PWMx = PWM4, \
164 PWM_TypeDef *PWMx; member
208 PWM_Stop(pwm_cfg->PWMx, 1, 0); in swm_pwm_enable()
212 PWM_Stop(pwm_cfg->PWMx, 0, 1); in swm_pwm_enable()
219 PWM_Start(pwm_cfg->PWMx, 1, 0); in swm_pwm_enable()
223 PWM_Start(pwm_cfg->PWMx, 0, 1); in swm_pwm_enable()
[all …]
/bsp/Vango/v85xxp/Libraries/VangoV85xxP_standard_peripheral/Include/
A Dlib_pwm.h226 void PWM_BaseInit(PWM_Type *PWMx, PWM_BaseInitType *InitStruct);
229 void PWM_OCInit(PWM_Type *PWMx, PWM_OCInitType *OCInitType);
231 void PWM_ICInit(PWM_Type *PWMx, PWM_ICInitType *ICInitType);
234 void PWM_BaseINTConfig(PWM_Type *PWMx, uint32_t NewState);
235 uint8_t PWM_GetBaseINTStatus(PWM_Type *PWMx);
236 void PWM_ClearBaseINTStatus(PWM_Type *PWMx);
242 void PWM_ClearCounter(PWM_Type *PWMx);
243 void PWM_CCRConfig(PWM_Type *PWMx, uint32_t Channel, uint16_t Period);
247 void PWM_SetOutLevel(PWM_Type *PWMx, uint32_t Channel, uint32_t Level);
249 uint8_t PWM_GetSCCI(PWM_Type *PWMx, uint32_t Channel);
[all …]
/bsp/synwit/libraries/SWM341_drivers/
A Ddrv_pwm.c33 .PWMx = PWM0, \
65 .PWMx = PWM1, \
97 .PWMx = PWM2, \
191 PWM_TypeDef *PWMx; member
274 PWM_SetPeriod(pwm_cfg->PWMx, period); in swm_pwm_set()
275 PWM_SetHDuty(pwm_cfg->PWMx, PWM_CH_A, pulse); in swm_pwm_set()
276 PWM_SetHDuty(pwm_cfg->PWMx, PWM_CH_B, pulse); in swm_pwm_set()
315 if (pwm_obj[i].pwm_cfg->PWMx == PWM0) in swm_pwm_init()
330 else if (pwm_obj[i].pwm_cfg->PWMx == PWM1) in swm_pwm_init()
345 else if (pwm_obj[i].pwm_cfg->PWMx == PWM2) in swm_pwm_init()
[all …]

Completed in 28 milliseconds