mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10984 from c1728p9/skip_form_factor_nc_pins
Skip form factor pins marked as NCpull/10989/head
commit
ad790f8931
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue