Removed unneeded tx complete interrupt

This commit is contained in:
2019-08-02 17:41:14 +02:00
parent 16f4be8c6c
commit 0bfd303a26
3 changed files with 1 additions and 28 deletions

View File

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