Skip to content

Commit d5cc17f

Browse files
committed
Skip form factor pins marked as NC
The gpio and gpio_irq FPGA tests run on form factor pins that are marked as NC. This patch changes that behavior so they skip NC pins.
1 parent e7c8f3c commit d5cc17f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

TESTS/mbed_hal_fpga_ci_test_shield/gpio/main.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ void gpio_inout_test()
6666
{
6767
for (int i = 0; i < form_factor->count; i++) {
6868
const PinName test_pin = form_factor->pins[i];
69+
if (test_pin == NC) {
70+
continue;
71+
}
6972
if (pinmap_list_has_pin(restricted, test_pin)) {
7073
printf("Skipping gpio pin %s (%i)\r\n", pinmap_ff_default_pin_to_string(test_pin), test_pin);
7174
continue;

TESTS/mbed_hal_fpga_ci_test_shield/gpio_irq/main.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ void gpio_irq_test()
248248
{
249249
for (uint32_t i = 0; i < form_factor->count; i++) {
250250
const PinName test_pin = form_factor->pins[i];
251+
if (test_pin == NC) {
252+
continue;
253+
}
251254
if (pinmap_list_has_pin(restricted, test_pin)) {
252255
printf("Skipping gpio pin %s (%i)\r\n", pinmap_ff_default_pin_to_string(test_pin), test_pin);
253256
continue;

0 commit comments

Comments
 (0)