diff --git a/TESTS/lorawan/loraradio/main.cpp b/TESTS/lorawan/loraradio/main.cpp index 5c7ba2f83ad..e123509384b 100644 --- a/TESTS/lorawan/loraradio/main.cpp +++ b/TESTS/lorawan/loraradio/main.cpp @@ -17,17 +17,6 @@ #error [NOT_SUPPORTED] LORADIO test cases require a RTOS to run. #else -#include "utest.h" -#include "unity.h" -#include "greentea-client/test_env.h" - -#include "Semaphore.h" - -#include "mbed_trace.h" -#define TRACE_GROUP "RTST" - -#include "LoRaRadio.h" - #define SX1272 0xFF #define SX1276 0xEE @@ -39,6 +28,17 @@ #error [NOT_SUPPORTED] Requires parameters from application config file. #endif +#include "utest.h" +#include "unity.h" +#include "greentea-client/test_env.h" + +#include "Semaphore.h" + +#include "mbed_trace.h" +#define TRACE_GROUP "RTST" + +#include "LoRaRadio.h" + #if (MBED_CONF_APP_LORA_RADIO == SX1272) || (MBED_CONF_APP_LORA_RADIO == SX1276) using namespace utest::v1; diff --git a/TESTS/nfc/eeprom/main.cpp b/TESTS/nfc/eeprom/main.cpp index c8d40a012d5..a084bd7e29c 100644 --- a/TESTS/nfc/eeprom/main.cpp +++ b/TESTS/nfc/eeprom/main.cpp @@ -15,6 +15,10 @@ * limitations under the License. */ +#if !MBED_CONF_NFCEEPROM +#error [NOT_SUPPORTED] NFC EEPROM not supported for this target +#else + #include "mbed.h" #include "greentea-client/test_env.h" #include "unity.h" @@ -23,10 +27,6 @@ #include #include "NFCEEPROMDriver.h" -#if !MBED_CONF_NFCEEPROM -#error [NOT_SUPPORTED] NFC EEPROM not supported for this target -#else - using namespace utest::v1; using namespace mbed::nfc;