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.
pull/11023/head
Russ Butler 2019-07-05 16:51:06 -05:00 committed by Evelyne Donnaes
parent b02c57123a
commit 6902844cf2
2 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,9 @@ void gpio_inout_test()
{
for (int i = 0; i < form_factor->count; i++) {
const PinName test_pin = form_factor->pins[i];
if (test_pin == NC) {
continue;
}
if (pinmap_list_has_pin(restricted, test_pin)) {
printf("Skipping gpio pin %s (%i)\r\n", pinmap_ff_default_pin_to_string(test_pin), test_pin);
continue;

View File

@ -248,6 +248,9 @@ void gpio_irq_test()
{
for (uint32_t i = 0; i < form_factor->count; i++) {
const PinName test_pin = form_factor->pins[i];
if (test_pin == NC) {
continue;
}
if (pinmap_list_has_pin(restricted, test_pin)) {
printf("Skipping gpio pin %s (%i)\r\n", pinmap_ff_default_pin_to_string(test_pin), test_pin);
continue;