uart-basic: add f0, requires newest code too

stupid f072 disco doesn't have usart2 available
This commit is contained in:
Karl Palsson 2017-10-24 23:48:55 +00:00
parent a549503ade
commit d35d362699
3 changed files with 91 additions and 1 deletions

View file

@ -65,7 +65,7 @@ void ub_task(void)
void ub_irq_handler(void)
{
if (usart_get_flag(ub->uart, USART_SR_RXNE)) {
if (usart_get_flag(ub->uart, USART_FLAG_RXNE)) {
last_rxb = usart_recv(ub->uart);
}
}