Disabled uart.c ISRs if GDBSTUB (debug emulator) is set
This commit is contained in:
@@ -55,6 +55,8 @@ UART_PutChar (const uint8_t c)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef GDBSTUB
|
||||||
|
|
||||||
// Receive Interrupt Routine
|
// Receive Interrupt Routine
|
||||||
ISR(USART0_RX_vect)
|
ISR(USART0_RX_vect)
|
||||||
{
|
{
|
||||||
@@ -70,6 +72,8 @@ ISR(USART0_UDRE_vect)
|
|||||||
UCSR0B &= ~(1 << UDRIE0);
|
UCSR0B &= ~(1 << UDRIE0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
int16_t
|
int16_t
|
||||||
UART_GetChar (void)
|
UART_GetChar (void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user