Skip to content

Commit e74e3dd

Browse files
c1728p9Filip Jagodzinski
authored andcommitted
FPGA test shield: Allow any defined form factor
Build in the FPGA tests if either MBED_CONF_TARGET_DEFAULT_FORM_FACTOR or TARGET_FF_ARDUINO is defined.
1 parent d425dc9 commit e74e3dd

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

TESTS/mbed_hal_fpga_ci_test_shield/analogin/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#error [NOT_SUPPORTED] Analog in not supported for this target
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22-
#elif !TARGET_FF_ARDUINO
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
2323
#error [NOT_SUPPORTED] Test not supported for this form factor
2424
#else
2525

TESTS/mbed_hal_fpga_ci_test_shield/analogout/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#error [NOT_SUPPORTED] Analog out not supported for this target
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22-
#elif !TARGET_FF_ARDUINO
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
2323
#error [NOT_SUPPORTED] Test not supported for this form factor
2424
#else
2525

TESTS/mbed_hal_fpga_ci_test_shield/gpio/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#if !COMPONENT_FPGA_CI_TEST_SHIELD
1919
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
20-
#elif !TARGET_FF_ARDUINO
20+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
2121
#error [NOT_SUPPORTED] Test not supported for this form factor
2222
#else
2323

TESTS/mbed_hal_fpga_ci_test_shield/gpio_irq/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#error [NOT_SUPPORTED] test not supported
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22-
#elif !TARGET_FF_ARDUINO
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
2323
#error [NOT_SUPPORTED] Test not supported for this form factor
2424
#else
2525

TESTS/mbed_hal_fpga_ci_test_shield/i2c/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#error [NOT_SUPPORTED] I2C not supported for this target
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22-
#elif !TARGET_FF_ARDUINO
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
2323
#error [NOT_SUPPORTED] Test not supported for this form factor
2424
#else
2525

TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#error [NOT_SUPPORTED] PWM not supported for this target
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22-
#elif !TARGET_FF_ARDUINO
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
2323
#error [NOT_SUPPORTED] Test not supported for this form factor
2424
#else
2525

TESTS/mbed_hal_fpga_ci_test_shield/spi/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#error [NOT_SUPPORTED] SPI not supported for this target
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22-
#elif !TARGET_FF_ARDUINO
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
2323
#error [NOT_SUPPORTED] Test not supported for this form factor
2424
#else
2525

TESTS/mbed_hal_fpga_ci_test_shield/uart/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#error [NOT_SUPPORTED] SERIAL not supported for this target
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22-
#elif !TARGET_FF_ARDUINO
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
2323
#error [NOT_SUPPORTED] Test not supported for this form factor
2424
#else
2525

@@ -340,4 +340,4 @@ int main()
340340
Harness::run(specification);
341341
}
342342

343-
#endif /* !DEVICE_SERIAL */
343+
#endif /* !DEVICE_SERIAL */

0 commit comments

Comments
 (0)