From e70668399fdd8c34d98f9c43f3b95fce68d82fe1 Mon Sep 17 00:00:00 2001 From: enriquezgarc Date: Wed, 18 Oct 2023 17:23:15 +0200 Subject: [PATCH] tests/psoc6: Modification in test to accept new board. Signed-off-by: enriquezgarc --- tests/psoc6/i2c_hard.py | 5 ++--- tests/psoc6/i2c_hard.py.exp | 1 - tests/psoc6/i2c_soft.py | 5 ++--- tests/psoc6/i2c_soft.py.exp | 1 - tests/psoc6/pwm.py | 3 +-- tests/psoc6/spi_soft.py | 5 +++-- 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a/tests/psoc6/i2c_hard.py b/tests/psoc6/i2c_hard.py index 4ddeee167b4a..af5ac5987051 100644 --- a/tests/psoc6/i2c_hard.py +++ b/tests/psoc6/i2c_hard.py @@ -8,10 +8,9 @@ scl_pin = "P6_0" sda_pin = "P6_1" elif "CY8CPROTO-063-BLE" in machine: - print("SKIP") - raise SystemExit + scl_pin = "P6_4" + sda_pin = "P6_5" i2c = I2C(id=0, scl=scl_pin, sda=sda_pin, freq=400000) -print(i2c) print(i2c.scan()) diff --git a/tests/psoc6/i2c_hard.py.exp b/tests/psoc6/i2c_hard.py.exp index 8d60f88ee685..fe51488c7066 100644 --- a/tests/psoc6/i2c_hard.py.exp +++ b/tests/psoc6/i2c_hard.py.exp @@ -1,2 +1 @@ -I2C(0, freq=400000, scl=48, sda=49) [] diff --git a/tests/psoc6/i2c_soft.py b/tests/psoc6/i2c_soft.py index da1b8c55a9ad..4178f19363a9 100644 --- a/tests/psoc6/i2c_soft.py +++ b/tests/psoc6/i2c_soft.py @@ -8,10 +8,9 @@ scl_pin = "P6_0" sda_pin = "P6_1" elif "CY8CPROTO-063-BLE" in machine: - print("SKIP") - raise SystemExit + scl_pin = "P6_4" + sda_pin = "P6_5" si2c = SoftI2C(scl=scl_pin, sda=sda_pin, freq=400000) -print(si2c) print(si2c.scan()) diff --git a/tests/psoc6/i2c_soft.py.exp b/tests/psoc6/i2c_soft.py.exp index 49bfede5efe0..fe51488c7066 100644 --- a/tests/psoc6/i2c_soft.py.exp +++ b/tests/psoc6/i2c_soft.py.exp @@ -1,2 +1 @@ -SoftI2C(scl=48, sda=49, freq=500000) [] diff --git a/tests/psoc6/pwm.py b/tests/psoc6/pwm.py index f1c42ad39fcc..5ed63e403e35 100644 --- a/tests/psoc6/pwm.py +++ b/tests/psoc6/pwm.py @@ -7,8 +7,7 @@ if "CY8CPROTO-062-4343W" in machine: pin_name = "P12_0" elif "CY8CPROTO-063-BLE" in machine: - print("SKIP") - raise SystemExit + pin_name = "P6_3" pwm = PWM(pin_name, freq=50, duty_u16=8192, invert=0) print(pwm) diff --git a/tests/psoc6/spi_soft.py b/tests/psoc6/spi_soft.py index 947c7aceece4..fe94eadb4e52 100644 --- a/tests/psoc6/spi_soft.py +++ b/tests/psoc6/spi_soft.py @@ -9,8 +9,9 @@ mosi_pin = "P9_0" miso_pin = "P9_1" elif "CY8CPROTO-063-BLE" in machine: - print("SKIP") - raise SystemExit + sck_pin = "P9_2" + mosi_pin = "P9_0" + miso_pin = "P9_1" spi = SoftSPI(baudrate=100000, polarity=1, phase=0, sck=sck_pin, mosi=mosi_pin, miso=miso_pin) print(spi)