Removed unneeded tx complete interrupt
This commit is contained in:
@@ -61,7 +61,6 @@ constexpr int operator<<(const int &lhs, const ControlFlagsC0 &rhs) { return lhs
|
||||
|
||||
static void (*fnRx0IntHandler)() = nullptr;
|
||||
static void (*fnDataReg0EmptyIntHandler)() = nullptr;
|
||||
static void (*fnTx0IntHandler)() = nullptr;
|
||||
|
||||
ISR(USART0_RX_vect)
|
||||
{
|
||||
@@ -75,12 +74,6 @@ ISR(USART0_UDRE_vect)
|
||||
fnDataReg0EmptyIntHandler();
|
||||
}
|
||||
|
||||
ISR(USART0_TX_vect)
|
||||
{
|
||||
if (fnTx0IntHandler)
|
||||
fnTx0IntHandler();
|
||||
}
|
||||
|
||||
#else
|
||||
#error "This chip is not supported"
|
||||
#endif
|
||||
@@ -125,7 +118,6 @@ class Hardware0<mode, cfg, Driven::INTERRUPT> {
|
||||
{
|
||||
detail::fnRx0IntHandler = rxIntHandler;
|
||||
detail::fnDataReg0EmptyIntHandler = dataRegEmptyIntHandler;
|
||||
detail::fnTx0IntHandler = txIntHandler;
|
||||
|
||||
HardwareImpl::init();
|
||||
}
|
||||
@@ -186,11 +178,6 @@ class Hardware0<mode, cfg, Driven::INTERRUPT> {
|
||||
} else
|
||||
HardwareImpl::disableDataRegEmptyInt();
|
||||
}
|
||||
|
||||
static void txIntHandler()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
};
|
||||
|
||||
template <Mode mode, class cfg>
|
||||
|
||||
Reference in New Issue
Block a user