Implemented hardware abstraction that both hardware0 and hardware1 can use

This commit is contained in:
2019-07-30 21:43:52 +02:00
parent fbd087808a
commit aac73447b3
3 changed files with 184 additions and 57 deletions

View File

@@ -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