Home
last modified time | relevance | path

Searched refs:halPwmState (Results 1 – 3 of 3) sorted by relevance

/hal_nxp-3.6.0/mcux/mcux-sdk/components/pwm/
Dfsl_adapter_pwm_ctimer.c42 hal_pwm_handle_struct_t *halPwmState = halPwmHandle; in HAL_PwmInit() local
47 halPwmState->pwmClock_Hz = srcClock_Hz; in HAL_PwmInit()
48 halPwmState->instance = instance; in HAL_PwmInit()
62 hal_pwm_handle_struct_t *halPwmState = halPwmHandle; in HAL_PwmDeinit() local
65 assert(halPwmState->instance < (uint8_t)FSL_FEATURE_SOC_CTIMER_COUNT); in HAL_PwmDeinit()
68 if (s_pwmUsedChannel[halPwmState->instance] > 0U) in HAL_PwmDeinit()
70 s_pwmUsedChannel[halPwmState->instance] -= 1U; in HAL_PwmDeinit()
74 if (0U == s_pwmUsedChannel[halPwmState->instance]) in HAL_PwmDeinit()
76 CTIMER_Deinit(s_cTimerBase[halPwmState->instance]); in HAL_PwmDeinit()
85 hal_pwm_handle_struct_t *halPwmState = halPwmHandle; in HAL_PwmSetupPwm() local
[all …]
Dfsl_adapter_pwm_ftm.c40 hal_pwm_handle_struct_t *halPwmState = halPwmHandle; in HAL_PwmInit() local
45 halPwmState->pwmClock_Hz = srcClock_Hz; in HAL_PwmInit()
46 halPwmState->instance = instance; in HAL_PwmInit()
63 hal_pwm_handle_struct_t *halPwmState = halPwmHandle; in HAL_PwmDeinit() local
66 assert(halPwmState->instance < (uint8_t)FSL_FEATURE_SOC_FTM_COUNT); in HAL_PwmDeinit()
69 if (s_pwmUsedChannel[halPwmState->instance] > 0U) in HAL_PwmDeinit()
71 s_pwmUsedChannel[halPwmState->instance] -= 1U; in HAL_PwmDeinit()
75 if (0U == s_pwmUsedChannel[halPwmState->instance]) in HAL_PwmDeinit()
77 FTM_Deinit(s_ftmBase[halPwmState->instance]); in HAL_PwmDeinit()
86 hal_pwm_handle_struct_t *halPwmState = halPwmHandle; in HAL_PwmSetupPwm() local
[all …]
Dfsl_adapter_pwm_tpm.c40 hal_pwm_handle_struct_t *halPwmState = halPwmHandle; in HAL_PwmInit() local
46 halPwmState->pwmClock_Hz = srcClock_Hz; in HAL_PwmInit()
47 halPwmState->instance = instance; in HAL_PwmInit()
61 hal_pwm_handle_struct_t *halPwmState = halPwmHandle; in HAL_PwmDeinit() local
64 assert(halPwmState->instance < (sizeof(s_tpmBase) / sizeof(s_tpmBase[0]))); in HAL_PwmDeinit()
67 if (s_pwmUsedChannel[halPwmState->instance] > 0U) in HAL_PwmDeinit()
69 s_pwmUsedChannel[halPwmState->instance] -= 1U; in HAL_PwmDeinit()
73 if (0U == s_pwmUsedChannel[halPwmState->instance]) in HAL_PwmDeinit()
75 TPM_Deinit(s_tpmBase[halPwmState->instance]); in HAL_PwmDeinit()
84 hal_pwm_handle_struct_t *halPwmState = halPwmHandle; in HAL_PwmSetupPwm() local
[all …]