HI2110: Cope correctly with NC GPIO

pull/10489/head
Kevin Bracey 2019-04-29 18:11:14 +03:00
parent 1eff7ecb02
commit e502eb5e34
1 changed files with 1 additions and 1 deletions

View File

@ -36,13 +36,13 @@
void gpio_init(gpio_t *obj, PinName pin)
{
obj->pin = pin;
if (pin == (PinName)NC) {
return;
}
MBED_ASSERT (pin < NUM_PINS);
obj->pin = pin;
obj->mask = (1ul << pin);
obj->reg_set = &GPIO_OUT_BITSET;