[NUCLEO_L053R8] Correct issue with Travis build

pull/738/head
bcostm 2014-11-24 16:20:26 +01:00
parent 53f92133dc
commit ea50eb3512
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ void pin_mode(PinName pin, PinMode mode)
{
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));
}