-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
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