From 8c82524517701da95f57a9e00b99d54d69ea3429 Mon Sep 17 00:00:00 2001 From: Kyle Kearney Date: Mon, 23 Sep 2019 16:50:36 -0700 Subject: [PATCH] Remove hard-coded instruction ids from QSPI Tests Replace with macros from the test flash_config header, consistent with how most commands are built in this test. --- TESTS/mbed_hal/qspi/qspi_test_utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TESTS/mbed_hal/qspi/qspi_test_utils.cpp b/TESTS/mbed_hal/qspi/qspi_test_utils.cpp index c82c303b9d..4fb49f409d 100644 --- a/TESTS/mbed_hal/qspi/qspi_test_utils.cpp +++ b/TESTS/mbed_hal/qspi/qspi_test_utils.cpp @@ -145,11 +145,11 @@ void flash_init(Qspi &qspi) // Zero out status register to attempt to clear block protection bits uint8_t blanks[QSPI_STATUS_REG_SIZE] = {0}; - qspi.cmd.build(0x06); + qspi.cmd.build(QSPI_CMD_WREN); ret = qspi_command_transfer(&qspi.handle, qspi.cmd.get(), NULL, 0, NULL, 0); TEST_ASSERT_EQUAL(QSPI_STATUS_OK, ret); - qspi.cmd.build(0x01); + qspi.cmd.build(QSPI_CMD_WRSR); ret = qspi_command_transfer(&qspi.handle, qspi.cmd.get(), blanks, 1, NULL, 0); TEST_ASSERT_EQUAL(QSPI_STATUS_OK, ret);