Changed template parameter order
This commit is contained in:
@@ -73,7 +73,7 @@ extern void (*fnDataReg0EmptyIntHandler)();
|
||||
|
||||
} // namespace detail
|
||||
|
||||
template <Mode mode = Mode::ASYNCHRONOUS, class cfg = Config<>, Driven driven = Driven::INTERRUPT>
|
||||
template <class cfg = Config<>, Driven driven = Driven::INTERRUPT, Mode mode = Mode::ASYNCHRONOUS>
|
||||
class Hardware0 {
|
||||
public:
|
||||
using data_t = typename cfg::data_t;
|
||||
@@ -117,11 +117,11 @@ class Hardware0 {
|
||||
|
||||
private:
|
||||
using HardwareImpl = detail::Hardware<detail::Registers0, detail::ControlFlagsA0, detail::ControlFlagsB0,
|
||||
detail::ControlFlagsC0, cfg, mode, driven>;
|
||||
detail::ControlFlagsC0, cfg, driven, mode>;
|
||||
};
|
||||
|
||||
template <Mode mode, class cfg>
|
||||
class Hardware0<mode, cfg, Driven::INTERRUPT> {
|
||||
template <class cfg, Mode mode>
|
||||
class Hardware0<cfg, Driven::INTERRUPT, mode> {
|
||||
public:
|
||||
using data_t = typename cfg::data_t;
|
||||
static constexpr auto DATA_BITS = cfg::DATA_BITS;
|
||||
@@ -188,7 +188,7 @@ class Hardware0<mode, cfg, Driven::INTERRUPT> {
|
||||
|
||||
private:
|
||||
using HardwareImpl = detail::Hardware<detail::Registers0, detail::ControlFlagsA0, detail::ControlFlagsB0,
|
||||
detail::ControlFlagsC0, cfg, mode, Driven::INTERRUPT>;
|
||||
detail::ControlFlagsC0, cfg, Driven::INTERRUPT, mode>;
|
||||
|
||||
static constexpr auto TX_BUFFER_SIZE = 16;
|
||||
static constexpr auto RX_BUFFER_SIZE = 16;
|
||||
@@ -217,15 +217,15 @@ class Hardware0<mode, cfg, Driven::INTERRUPT> {
|
||||
}
|
||||
};
|
||||
|
||||
template <Mode mode, class cfg>
|
||||
volatile detail::RingBuffer<typename Hardware0<mode, cfg, Driven::INTERRUPT>::data_t,
|
||||
Hardware0<mode, cfg, Driven::INTERRUPT>::TX_BUFFER_SIZE>
|
||||
Hardware0<mode, cfg, Driven::INTERRUPT>::sm_txBuf = {0, 0, {0}};
|
||||
template <class cfg, Mode mode>
|
||||
volatile detail::RingBuffer<typename Hardware0<cfg, Driven::INTERRUPT, mode>::data_t,
|
||||
Hardware0<cfg, Driven::INTERRUPT, mode>::TX_BUFFER_SIZE>
|
||||
Hardware0<cfg, Driven::INTERRUPT, mode>::sm_txBuf = {0, 0, {0}};
|
||||
|
||||
template <Mode mode, class cfg>
|
||||
volatile detail::RingBuffer<typename Hardware0<mode, cfg, Driven::INTERRUPT>::data_t,
|
||||
Hardware0<mode, cfg, Driven::INTERRUPT>::RX_BUFFER_SIZE>
|
||||
Hardware0<mode, cfg, Driven::INTERRUPT>::sm_rxBuf = {0, 0, {0}};
|
||||
template <class cfg, Mode mode>
|
||||
volatile detail::RingBuffer<typename Hardware0<cfg, Driven::INTERRUPT, mode>::data_t,
|
||||
Hardware0<cfg, Driven::INTERRUPT, mode>::RX_BUFFER_SIZE>
|
||||
Hardware0<cfg, Driven::INTERRUPT, mode>::sm_rxBuf = {0, 0, {0}};
|
||||
|
||||
} // namespace uart
|
||||
|
||||
|
||||
Reference in New Issue
Block a user