Skip to content

Commit ad790f8

Browse files
authored
Merge pull request #10984 from c1728p9/skip_form_factor_nc_pins
Skip form factor pins marked as NC
2 parents 492d10c + d5cc17f commit ad790f8

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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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)