HAL_Linux: implement _timer_tick in UARTDriver

This commit is contained in:
Andrew Tridgell 2018-01-22 06:45:31 +11:00
parent 865e4f3104
commit 22de99dd58
2 changed files with 7 additions and 7 deletions

View File

@ -309,12 +309,12 @@ void Scheduler::_run_io(void)
void Scheduler::_run_uarts()
{
// process any pending serial bytes
UARTDriver::from(hal.uartA)->_timer_tick();
UARTDriver::from(hal.uartB)->_timer_tick();
UARTDriver::from(hal.uartC)->_timer_tick();
UARTDriver::from(hal.uartD)->_timer_tick();
UARTDriver::from(hal.uartE)->_timer_tick();
UARTDriver::from(hal.uartF)->_timer_tick();
hal.uartA->_timer_tick();
hal.uartB->_timer_tick();
hal.uartC->_timer_tick();
hal.uartD->_timer_tick();
hal.uartE->_timer_tick();
hal.uartF->_timer_tick();
}
void Scheduler::_rcin_task()

View File

@ -37,7 +37,7 @@ public:
void set_device_path(const char *path);
bool _write_pending_bytes(void);
virtual void _timer_tick(void);
virtual void _timer_tick(void) override;
virtual enum flow_control get_flow_control(void) override
{