Removed unneeded tx complete interrupt
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user