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 ControlFlagsC1 &rhs) { return lhs
static void (*fnRx1IntHandler)() = nullptr;
static void (*fnDataReg1EmptyIntHandler)() = nullptr;
static void (*fnTx1IntHandler)() = nullptr;
ISR(USART1_RX_vect)
{
@@ -75,12 +74,6 @@ ISR(USART1_UDRE_vect)
fnDataReg1EmptyIntHandler();
}
ISR(USART1_TX_vect)
{
if (fnTx1IntHandler)
fnTx1IntHandler();
}
#define HAS_UART1
#else
@@ -129,7 +122,6 @@ class Hardware1<mode, cfg, Driven::INTERRUPT> {
{
detail::fnRx1IntHandler = rxIntHandler;
detail::fnDataReg1EmptyIntHandler = dataRegEmptyIntHandler;
detail::fnTx1IntHandler = txIntHandler;
HardwareImpl::init();
}
@@ -190,11 +182,6 @@ class Hardware1<mode, cfg, Driven::INTERRUPT> {
} else
HardwareImpl::disableDataRegEmptyInt();
}
static void txIntHandler()
{
// TODO
}
};
template <Mode mode, class cfg>