Skip to content

EFM32 NC Pins not supported #7862

@ghost

Description

Description

EFM32 targets do not allow gpio pins to be specified as NC. In the EFM implementation of gpio_api.c, gpio_init contains MBED_ASSERT(pin != NC).

Other targets such as STM32 do the following

if (pin == (PinName)NC) {
        return;
    }

This behavior can cause problems when interfacing with drivers which have optional pins that may not be used. Is there a reason for difference in behavior?

[X] Question
[ ] Enhancement
[ ] Bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions