Skip to content

Commit 95b3e72

Browse files
committed
tests/extmod_hardware/machine_pwm.py: Add alif pin config.
Tested on ALIF_ENSEMBLE and OPENMV_AE3 boards. Signed-off-by: Damien George <damien@micropython.org>
1 parent 63e4529 commit 95b3e72

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/extmod_hardware/machine_pwm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
timing_margin_us = 5
2121

2222
# Configure pins based on the target.
23-
if "esp32" in sys.platform:
23+
if "alif" in sys.platform:
24+
pwm_pulse_pins = (("P0_4", "P0_5"),)
25+
elif "esp32" in sys.platform:
2426
pwm_pulse_pins = ((4, 5),)
2527
freq_margin_per_thousand = 2
2628
duty_margin_per_thousand = 1

0 commit comments

Comments
 (0)