From e0d4de41a72520491a4076b3ed87beb997a395c0 Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Fri, 17 Feb 2017 10:23:04 +0000 Subject: [PATCH] Fix for travis build on antique ubugtu Doesn't have proper defs for mega2560 ! Signed-off-by: Michel Pollet --- tests/atmega2560_uart_echo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/atmega2560_uart_echo.c b/tests/atmega2560_uart_echo.c index c2132e8..fe67acc 100644 --- a/tests/atmega2560_uart_echo.c +++ b/tests/atmega2560_uart_echo.c @@ -37,7 +37,9 @@ const struct avr_mmcu_vcd_trace_t _mytrace[] _MMCU_ = { { AVR_MCU_VCD_SYMBOL("UDRE3"), .mask = (1 << UDRE3), .what = (void*)&UCSR3A, }, { AVR_MCU_VCD_SYMBOL("GPIOR1"), .what = (void*)&GPIOR1, }, }; +#ifdef USART3_RX_vect_num // stupid ubuntu has antique avr-libc AVR_MCU_VCD_IRQ(USART3_RX); // single bit trace +#endif AVR_MCU_VCD_ALL_IRQ(); // also show ALL irqs running volatile uint8_t cnt = 0; -- 2.39.5