uart-basic: add f0, requires newest code too
stupid f072 disco doesn't have usart2 available
This commit is contained in:
parent
a549503ade
commit
d35d362699
3 changed files with 91 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue