From e7d1a90cc472bd15a41d8154e96bab35b6b7776f Mon Sep 17 00:00:00 2001 From: Maciej Bocianski Date: Fri, 4 Oct 2019 11:09:31 +0200 Subject: [PATCH] hal qspi test: adjust min frequency for EFM32GG11 according to the driver limitations --- .../flash_configs/SiliconLabs/EFM32GG11_STK3701/flash_config.h | 2 ++ TESTS/mbed_hal/qspi/main.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/TESTS/mbed_hal/qspi/flash_configs/SiliconLabs/EFM32GG11_STK3701/flash_config.h b/TESTS/mbed_hal/qspi/flash_configs/SiliconLabs/EFM32GG11_STK3701/flash_config.h index 58a9c1e626..4380696904 100644 --- a/TESTS/mbed_hal/qspi/flash_configs/SiliconLabs/EFM32GG11_STK3701/flash_config.h +++ b/TESTS/mbed_hal/qspi/flash_configs/SiliconLabs/EFM32GG11_STK3701/flash_config.h @@ -23,4 +23,6 @@ #define QSPI_SECTOR_COUNT 1024 // for MX25R3235F #endif +#define QSPI_MIN_FREQUENCY 2000000 + #endif // MBED_QSPI_FLASH_CONFIG_H diff --git a/TESTS/mbed_hal/qspi/main.cpp b/TESTS/mbed_hal/qspi/main.cpp index 52915fc3a8..5de36fa5d7 100644 --- a/TESTS/mbed_hal/qspi/main.cpp +++ b/TESTS/mbed_hal/qspi/main.cpp @@ -42,7 +42,9 @@ using namespace utest::v1; +#ifndef QSPI_MIN_FREQUENCY #define QSPI_MIN_FREQUENCY 1000000 +#endif // max write size is usually page size #define DATA_SIZE_256 (QSPI_PAGE_SIZE)