hal-qspi test: fix QSPI preprocessor guard

pull/7783/head
Maciej Bocianski 2018-07-06 07:27:40 +02:00
parent de46a547fa
commit e5e05df66c
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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