Skip to content

Commit 9bd77ca

Browse files
committed
QSPI test should use json defined QSPI pins
1 parent 56eadc9 commit 9bd77ca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

TESTS/mbed_hal/qspi/main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ uint8_t rx_buf[DATA_SIZE_1024];
7070

7171

7272
// some target defines QSPI pins as integers thus conversion needed
73-
#define QPIN_0 static_cast<PinName>(QSPI_FLASH1_IO0)
74-
#define QPIN_1 static_cast<PinName>(QSPI_FLASH1_IO1)
75-
#define QPIN_2 static_cast<PinName>(QSPI_FLASH1_IO2)
76-
#define QPIN_3 static_cast<PinName>(QSPI_FLASH1_IO3)
77-
#define QSCK static_cast<PinName>(QSPI_FLASH1_SCK)
78-
#define QCSN static_cast<PinName>(QSPI_FLASH1_CSN)
73+
#define QPIN_0 static_cast<PinName>(MBED_CONF_DRIVERS_QSPI_IO0)
74+
#define QPIN_1 static_cast<PinName>(MBED_CONF_DRIVERS_QSPI_IO1)
75+
#define QPIN_2 static_cast<PinName>(MBED_CONF_DRIVERS_QSPI_IO2)
76+
#define QPIN_3 static_cast<PinName>(MBED_CONF_DRIVERS_QSPI_IO3)
77+
#define QSCK static_cast<PinName>(MBED_CONF_DRIVERS_QSPI_SCK)
78+
#define QCSN static_cast<PinName>(MBED_CONF_DRIVERS_QSPI_CSN)
7979

8080

8181
static uint32_t gen_flash_address()

0 commit comments

Comments
 (0)