From 5a007262b4c58096570b73b1450eaec1d5e032c0 Mon Sep 17 00:00:00 2001 From: Filip Jagodzinski Date: Fri, 5 Jul 2019 14:51:18 +0200 Subject: [PATCH] FPGA test shield: Restrict tests to Arduino FF only Currently only the Arduino form factor is supported. Support for other form factors will be added in the future. --- TESTS/mbed_hal_fpga_ci_test_shield/analogin/main.cpp | 2 ++ TESTS/mbed_hal_fpga_ci_test_shield/analogout/main.cpp | 2 ++ TESTS/mbed_hal_fpga_ci_test_shield/gpio/main.cpp | 2 ++ TESTS/mbed_hal_fpga_ci_test_shield/gpio_irq/main.cpp | 2 ++ TESTS/mbed_hal_fpga_ci_test_shield/i2c/main.cpp | 2 ++ TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp | 2 ++ TESTS/mbed_hal_fpga_ci_test_shield/spi/main.cpp | 2 ++ TESTS/mbed_hal_fpga_ci_test_shield/uart/main.cpp | 2 ++ 8 files changed, 16 insertions(+) diff --git a/TESTS/mbed_hal_fpga_ci_test_shield/analogin/main.cpp b/TESTS/mbed_hal_fpga_ci_test_shield/analogin/main.cpp index 7b3725e15e..005d8fdb63 100644 --- a/TESTS/mbed_hal_fpga_ci_test_shield/analogin/main.cpp +++ b/TESTS/mbed_hal_fpga_ci_test_shield/analogin/main.cpp @@ -19,6 +19,8 @@ #error [NOT_SUPPORTED] Analog in not supported for this target #elif !COMPONENT_FPGA_CI_TEST_SHIELD #error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test +#elif !TARGET_FF_ARDUINO +#error [NOT_SUPPORTED] Test not supported for this form factor #else #include "utest/utest.h" diff --git a/TESTS/mbed_hal_fpga_ci_test_shield/analogout/main.cpp b/TESTS/mbed_hal_fpga_ci_test_shield/analogout/main.cpp index 43b3fe6f2c..df1f1033cd 100644 --- a/TESTS/mbed_hal_fpga_ci_test_shield/analogout/main.cpp +++ b/TESTS/mbed_hal_fpga_ci_test_shield/analogout/main.cpp @@ -19,6 +19,8 @@ #error [NOT_SUPPORTED] Analog out not supported for this target #elif !COMPONENT_FPGA_CI_TEST_SHIELD #error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test +#elif !TARGET_FF_ARDUINO +#error [NOT_SUPPORTED] Test not supported for this form factor #else #include "utest/utest.h" diff --git a/TESTS/mbed_hal_fpga_ci_test_shield/gpio/main.cpp b/TESTS/mbed_hal_fpga_ci_test_shield/gpio/main.cpp index d0cbee872b..fba6cfde54 100644 --- a/TESTS/mbed_hal_fpga_ci_test_shield/gpio/main.cpp +++ b/TESTS/mbed_hal_fpga_ci_test_shield/gpio/main.cpp @@ -17,6 +17,8 @@ #if !COMPONENT_FPGA_CI_TEST_SHIELD #error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test +#elif !TARGET_FF_ARDUINO +#error [NOT_SUPPORTED] Test not supported for this form factor #else #include "utest/utest.h" diff --git a/TESTS/mbed_hal_fpga_ci_test_shield/gpio_irq/main.cpp b/TESTS/mbed_hal_fpga_ci_test_shield/gpio_irq/main.cpp index 9bfe978015..4d807b1f35 100644 --- a/TESTS/mbed_hal_fpga_ci_test_shield/gpio_irq/main.cpp +++ b/TESTS/mbed_hal_fpga_ci_test_shield/gpio_irq/main.cpp @@ -19,6 +19,8 @@ #error [NOT_SUPPORTED] test not supported #elif !COMPONENT_FPGA_CI_TEST_SHIELD #error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test +#elif !TARGET_FF_ARDUINO +#error [NOT_SUPPORTED] Test not supported for this form factor #else #include "utest/utest.h" diff --git a/TESTS/mbed_hal_fpga_ci_test_shield/i2c/main.cpp b/TESTS/mbed_hal_fpga_ci_test_shield/i2c/main.cpp index a20ed76eec..f348e192ce 100644 --- a/TESTS/mbed_hal_fpga_ci_test_shield/i2c/main.cpp +++ b/TESTS/mbed_hal_fpga_ci_test_shield/i2c/main.cpp @@ -19,6 +19,8 @@ #error [NOT_SUPPORTED] I2C not supported for this target #elif !COMPONENT_FPGA_CI_TEST_SHIELD #error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test +#elif !TARGET_FF_ARDUINO +#error [NOT_SUPPORTED] Test not supported for this form factor #else #include "utest/utest.h" diff --git a/TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp b/TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp index 1d89f832d6..ad85320d87 100644 --- a/TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp +++ b/TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp @@ -19,6 +19,8 @@ #error [NOT_SUPPORTED] PWM not supported for this target #elif !COMPONENT_FPGA_CI_TEST_SHIELD #error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test +#elif !TARGET_FF_ARDUINO +#error [NOT_SUPPORTED] Test not supported for this form factor #else #include "utest/utest.h" diff --git a/TESTS/mbed_hal_fpga_ci_test_shield/spi/main.cpp b/TESTS/mbed_hal_fpga_ci_test_shield/spi/main.cpp index d3c491077c..55ff34ffda 100644 --- a/TESTS/mbed_hal_fpga_ci_test_shield/spi/main.cpp +++ b/TESTS/mbed_hal_fpga_ci_test_shield/spi/main.cpp @@ -19,6 +19,8 @@ #error [NOT_SUPPORTED] SPI not supported for this target #elif !COMPONENT_FPGA_CI_TEST_SHIELD #error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test +#elif !TARGET_FF_ARDUINO +#error [NOT_SUPPORTED] Test not supported for this form factor #else #include "utest/utest.h" diff --git a/TESTS/mbed_hal_fpga_ci_test_shield/uart/main.cpp b/TESTS/mbed_hal_fpga_ci_test_shield/uart/main.cpp index cfad7a29ae..1187f6bb1d 100644 --- a/TESTS/mbed_hal_fpga_ci_test_shield/uart/main.cpp +++ b/TESTS/mbed_hal_fpga_ci_test_shield/uart/main.cpp @@ -19,6 +19,8 @@ #error [NOT_SUPPORTED] SERIAL not supported for this target #elif !COMPONENT_FPGA_CI_TEST_SHIELD #error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test +#elif !TARGET_FF_ARDUINO +#error [NOT_SUPPORTED] Test not supported for this form factor #else #include "utest/utest.h"