mirror of https://github.com/ARMmbed/mbed-os.git
[NUCLEO_L053R8] Correct issue with Travis build
parent
53f92133dc
commit
ea50eb3512
|
@ -137,7 +137,7 @@ void pin_mode(PinName pin, PinMode mode)
|
||||||
{
|
{
|
||||||
pupd = 0; // Open-drain = No pull-up/No pull-down
|
pupd = 0; // Open-drain = No pull-up/No pull-down
|
||||||
}
|
}
|
||||||
gpio->PUPDR &= (uint32_t)(~(GPIO_PUPDR_PUPDR0 << (pin_index * 2)));
|
gpio->PUPDR &= (uint32_t)(~(GPIO_PUPDR_PUPD0 << (pin_index * 2)));
|
||||||
gpio->PUPDR |= (uint32_t)(pupd << (pin_index * 2));
|
gpio->PUPDR |= (uint32_t)(pupd << (pin_index * 2));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue