Merge pull request #10984 from c1728p9/skip_form_factor_nc_pins

Skip form factor pins marked as NC
pull/10989/head
Martin Kojtal 2019-07-08 13:38:08 +01:00 committed by GitHub
commit ad790f8931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;