Implemented hardware abstraction that both hardware0 and hardware1 can use
This commit is contained in:
6
uart.hpp
6
uart.hpp
@@ -270,6 +270,12 @@ class Uart {
|
||||
template <typename cfg = Config<>>
|
||||
using Uart0 = Uart<Hardware0<Mode::ASYNCHRONOUS, cfg>>;
|
||||
|
||||
#ifdef HAS_UART1
|
||||
template <typename cfg = Config<>>
|
||||
using Uart1 = Uart<Hardware1<Mode::ASYNCHRONOUS, cfg>>;
|
||||
#endif
|
||||
|
||||
} // namespace uart
|
||||
|
||||
#undef FORCE_INLINE
|
||||
#undef HAS_UART1
|
||||
|
||||
Reference in New Issue
Block a user