Skip to content

Commit d470403

Browse files
drivers: pwm: Enable PWM capture feature for TPM
This implementation refers to the code from FTM, which supports to capture pulse and period. Signed-off-by: Felix Wang <[email protected]>
1 parent 071d616 commit d470403

File tree

2 files changed

+401
-8
lines changed

2 files changed

+401
-8
lines changed

drivers/pwm/Kconfig.mcux_tpm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,13 @@ config PWM_MCUX_TPM
1111
select PINCTRL
1212
help
1313
Enable the MCUX TPM PWM driver.
14+
15+
config PWM_CAPTURE_MCUX_TPM_FILTER_VALUE
16+
int "MCUX TPM PWM capture filter value"
17+
depends on PWM_MCUX_TPM && PWM_CAPTURE
18+
range 0 15
19+
default 0
20+
help
21+
PWM capture filter value for channels.
22+
The filter is disabled when the value is zero, otherwise
23+
the filter is configured as (CHxFVAL * 4) clock cycles.

0 commit comments

Comments
 (0)