mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
b02c57123a
commit
6902844cf2
|
@ -66,6 +66,9 @@ void gpio_inout_test()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < form_factor->count; i++) {
|
for (int i = 0; i < form_factor->count; i++) {
|
||||||
const PinName test_pin = form_factor->pins[i];
|
const PinName test_pin = form_factor->pins[i];
|
||||||
|
if (test_pin == NC) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (pinmap_list_has_pin(restricted, test_pin)) {
|
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);
|
printf("Skipping gpio pin %s (%i)\r\n", pinmap_ff_default_pin_to_string(test_pin), test_pin);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -248,6 +248,9 @@ void gpio_irq_test()
|
||||||
{
|
{
|
||||||
for (uint32_t i = 0; i < form_factor->count; i++) {
|
for (uint32_t i = 0; i < form_factor->count; i++) {
|
||||||
const PinName test_pin = form_factor->pins[i];
|
const PinName test_pin = form_factor->pins[i];
|
||||||
|
if (test_pin == NC) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (pinmap_list_has_pin(restricted, test_pin)) {
|
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);
|
printf("Skipping gpio pin %s (%i)\r\n", pinmap_ff_default_pin_to_string(test_pin), test_pin);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue