Searched refs:subModule (Results 1 – 4 of 4) sorted by relevance
/hal_nxp-2.7.6/mcux/drivers/imx/ |
D | fsl_pwm.c | 91 status_t PWM_Init(PWM_Type *base, pwm_submodule_t subModule, const pwm_config_t *config) in PWM_Init() argument 98 if ((config->clockSource == kPWM_Submodule0Clock) && (subModule == kPWM_Module_0)) in PWM_Init() 104 if ((config->reloadSelect == kPWM_MasterReload) && (subModule == kPWM_Module_0)) in PWM_Init() 111 CLOCK_EnableClock(s_pwmClocks[PWM_GetInstance(base)][subModule]); in PWM_Init() 117 reg = base->SM[subModule].CTRL2; in PWM_Init() 135 base->MCTRL &= ~((uint16_t)1U << (PWM_MCTRL_IPOL_SHIFT + (uint16_t)subModule)); in PWM_Init() 138 base->MCTRL |= ((uint16_t)1U << (PWM_MCTRL_IPOL_SHIFT + (uint16_t)subModule)); in PWM_Init() 144 base->SM[subModule].CTRL2 = reg; in PWM_Init() 146 reg = base->SM[subModule].CTRL; in PWM_Init() 174 base->SM[subModule].CTRL = reg; in PWM_Init() [all …]
|
D | fsl_pwm.h | 426 status_t PWM_Init(PWM_Type *base, pwm_submodule_t subModule, const pwm_config_t *config); 434 void PWM_Deinit(PWM_Type *base, pwm_submodule_t subModule); 482 pwm_submodule_t subModule, 505 pwm_submodule_t subModule, 526 …PWM_Type *base, pwm_submodule_t subModule, pwm_channels_t pwmSignal, pwm_mode_t currPwmMode, uint1… 542 pwm_submodule_t subModule, 591 pwm_submodule_t subModule, 608 void PWM_EnableInterrupts(PWM_Type *base, pwm_submodule_t subModule, uint32_t mask); 618 void PWM_DisableInterrupts(PWM_Type *base, pwm_submodule_t subModule, uint32_t mask); 629 uint32_t PWM_GetEnabledInterrupts(PWM_Type *base, pwm_submodule_t subModule); [all …]
|
/hal_nxp-2.7.6/mcux/drivers/kinetis/ |
D | fsl_pwm.c | 91 status_t PWM_Init(PWM_Type *base, pwm_submodule_t subModule, const pwm_config_t *config) in PWM_Init() argument 98 if ((config->clockSource == kPWM_Submodule0Clock) && (subModule == kPWM_Module_0)) in PWM_Init() 104 if ((config->reloadSelect == kPWM_MasterReload) && (subModule == kPWM_Module_0)) in PWM_Init() 111 CLOCK_EnableClock(s_pwmClocks[PWM_GetInstance(base)][subModule]); in PWM_Init() 117 reg = base->SM[subModule].CTRL2; in PWM_Init() 135 base->MCTRL &= ~((uint16_t)1U << (PWM_MCTRL_IPOL_SHIFT + (uint16_t)subModule)); in PWM_Init() 138 base->MCTRL |= ((uint16_t)1U << (PWM_MCTRL_IPOL_SHIFT + (uint16_t)subModule)); in PWM_Init() 144 base->SM[subModule].CTRL2 = reg; in PWM_Init() 146 reg = base->SM[subModule].CTRL; in PWM_Init() 174 base->SM[subModule].CTRL = reg; in PWM_Init() [all …]
|
D | fsl_pwm.h | 426 status_t PWM_Init(PWM_Type *base, pwm_submodule_t subModule, const pwm_config_t *config); 434 void PWM_Deinit(PWM_Type *base, pwm_submodule_t subModule); 482 pwm_submodule_t subModule, 505 pwm_submodule_t subModule, 526 …PWM_Type *base, pwm_submodule_t subModule, pwm_channels_t pwmSignal, pwm_mode_t currPwmMode, uint1… 542 pwm_submodule_t subModule, 591 pwm_submodule_t subModule, 608 void PWM_EnableInterrupts(PWM_Type *base, pwm_submodule_t subModule, uint32_t mask); 618 void PWM_DisableInterrupts(PWM_Type *base, pwm_submodule_t subModule, uint32_t mask); 629 uint32_t PWM_GetEnabledInterrupts(PWM_Type *base, pwm_submodule_t subModule); [all …]
|