Skip to content

Commit 24750d6

Browse files
hal-qspi test: fix QSPI preprocessor guard
1 parent ad825f4 commit 24750d6

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

TESTS/mbed_hal/qspi/flash_configs/MX25R6435F_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define MBED_QSPI_FLASH_MX25R6435F_H
1818

1919

20-
#define QSPI_FLASH_CHIP_STRING "MX25R6435F"
20+
#define QSPI_FLASH_CHIP_STRING "macronix MX25R6435F"
2121

2222
// Command for reading status register
2323
#define QSPI_CMD_RDSR 0x05

TESTS/mbed_hal/qspi/main.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
17-
#if !DEVICE_QSPI
18-
#error [NOT_SUPPORTED] test not supported
19-
#endif
20-
2116
#include "utest/utest.h"
2217
#include "unity/unity.h"
2318
#include "greentea-client/test_env.h"
@@ -28,6 +23,10 @@
2823
#include "qspi_api.h"
2924

3025

26+
#if !DEVICE_QSPI || !defined(QSPI_FLASH_CHIP_STRING)
27+
#error [NOT_SUPPORTED] QSPI not supported for this target
28+
#endif
29+
3130
using namespace utest::v1;
3231

3332
// uncomment to enable verbose mode

0 commit comments

Comments
 (0)