mirror of https://github.com/ARMmbed/mbed-os.git
hal-qspi test: fix QSPI preprocessor guard
parent
de46a547fa
commit
e5e05df66c
|
@ -17,7 +17,7 @@
|
|||
#define MBED_QSPI_FLASH_MX25R6435F_H
|
||||
|
||||
|
||||
#define QSPI_FLASH_CHIP_STRING "MX25R6435F"
|
||||
#define QSPI_FLASH_CHIP_STRING "macronix MX25R6435F"
|
||||
|
||||
// Command for reading status register
|
||||
#define QSPI_CMD_RDSR 0x05
|
||||
|
|
|
@ -13,11 +13,6 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#if !DEVICE_QSPI
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#include "utest/utest.h"
|
||||
#include "unity/unity.h"
|
||||
#include "greentea-client/test_env.h"
|
||||
|
@ -28,6 +23,10 @@
|
|||
#include "qspi_api.h"
|
||||
|
||||
|
||||
#if !DEVICE_QSPI || !defined(QSPI_FLASH_CHIP_STRING)
|
||||
#error [NOT_SUPPORTED] QSPI not supported for this target
|
||||
#endif
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
// uncomment to enable verbose mode
|
||||
|
|
Loading…
Reference in New Issue