Skip to content

Commit

Permalink
tests/psoc6/hw_ext/pwm.py: Refactor for REPL timing performance.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
  • Loading branch information
jaenrig-ifx committed Apr 16, 2024
1 parent 487f6f0 commit 8ef7037
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/psoc6/hw_ext/pwm.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@
if "CY8CPROTO-062-4343W" in machine:
pwm_pin = "P13_7"
pin_in = "P13_6"
duty_tolerance = 10.0 # Different per board to accommodate HIL limitations

elif "CY8CPROTO-063-BLE" in machine:
pwm_pin = "P12_6"
pin_in = "P12_7"
duty_tolerance = 15.0

input_pin = Pin(pin_in, Pin.IN)

start_time = 0
low_signal_start_time = 0
high_signal_start_time = 0
tolerance = 3.0
duty_tolerance = 13.0
debug = False


Expand Down

0 comments on commit 8ef7037

Please sign in to comment.