Removed unneeded tx complete interrupt

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

View File

@ -174,8 +174,7 @@ class Hardware {
uint8_t interruptVal = 0; uint8_t interruptVal = 0;
if (driven == Driven::INTERRUPT) if (driven == Driven::INTERRUPT)
interruptVal |= (1 << CtrlFlagsB::DATA_REG_EMPTY_INT_ENABLE) | (1 << CtrlFlagsB::RX_INT_ENABLE) | interruptVal |= (1 << CtrlFlagsB::DATA_REG_EMPTY_INT_ENABLE) | (1 << CtrlFlagsB::RX_INT_ENABLE);
(1 << CtrlFlagsB::TX_INT_ENABLE);
return interruptVal; return interruptVal;
} }

View File

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

View File

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