Skip to content

Commit 9a41043

Browse files
adjust hal QSPI test to new pin names
1 parent 5195c82 commit 9a41043

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
@@ -66,12 +66,12 @@ uint8_t rx_buf[DATA_SIZE_1024];
6666

6767

6868
// some target defines QSPI pins as integers thus conversion needed
69-
#define QPIN_0 static_cast<PinName>(QSPI_PIN_IO0)
70-
#define QPIN_1 static_cast<PinName>(QSPI_PIN_IO1)
71-
#define QPIN_2 static_cast<PinName>(QSPI_PIN_IO2)
72-
#define QPIN_3 static_cast<PinName>(QSPI_PIN_IO3)
73-
#define QSCK static_cast<PinName>(QSPI_PIN_SCK)
74-
#define QCSN static_cast<PinName>(QSPI_PIN_CSN)
69+
#define QPIN_0 static_cast<PinName>(QSPI_FLASH1_IO0)
70+
#define QPIN_1 static_cast<PinName>(QSPI_FLASH1_IO1)
71+
#define QPIN_2 static_cast<PinName>(QSPI_FLASH1_IO2)
72+
#define QPIN_3 static_cast<PinName>(QSPI_FLASH1_IO3)
73+
#define QSCK static_cast<PinName>(QSPI_FLASH1_SCK)
74+
#define QCSN static_cast<PinName>(QSPI_FLASH1_CSN)
7575

7676

7777
static void log_data(const char *str, uint8_t *data, uint32_t size)

0 commit comments

Comments
 (0)