Added explicit selection of interrupt driven uart

This commit is contained in:
2019-07-28 14:09:52 +02:00
parent d8aee7498d
commit e71d103602
2 changed files with 2 additions and 2 deletions

View File

@@ -208,7 +208,7 @@ void usartTestUsage()
void newUartUsage()
{
using config = uart::config<9600, uart::DataBits::EIGHT, uart::Parity::NONE, uart::StopBits::ONE>;
using uart0 = uart::hardware0<uart::Mode::ASYNCHRONOUS, config>;
using uart0 = uart::hardware0<uart::Mode::ASYNCHRONOUS, config, uart::Driven::INTERRUPT>;
using softuart = uart::software<io::P::B1, io::P::B2, config>;
uart::uart<uart0> serial;