From e07ba7ecd8ca568c0b810dca18485e7d47107787 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sat, 27 Jul 2019 18:54:51 +0200 Subject: [PATCH] Fixed handling for ATmega1284P --- usart.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usart.h b/usart.h index 0cb032b..224f8cf 100644 --- a/usart.h +++ b/usart.h @@ -13,7 +13,7 @@ #include #include "../clock.h" -#if defined (__AVR_ATmega168A__) || defined (__AVR_ATmega328P__) || defined (__AVR_ATmega644P__) || defined (__AVR_ATmega1284P__) +#if defined (__AVR_ATmega168A__) || defined (__AVR_ATmega328P__) || defined (__AVR_ATmega644P__) #define USART_SPI #define USART0_RX_vect_D USART_RX_vect #define USART0_UDRE_vect_D USART_UDRE_vect @@ -24,6 +24,7 @@ #define USART0_UDRE_vect_D USART_UDRE_vect #endif #if defined (__AVR_ATmega1284P__) +#define USART_SPI #define SECOND_USART #define USART0_RX_vect_D USART0_RX_vect #define USART1_RX_vect_D USART1_RX_vect @@ -133,9 +134,9 @@ private: Parity getParity(); StopBit getStopBits(); +public: ~USART0(); -public: static USART0& inst(); USART0( const USART0& ) = delete; void operator=( const USART0& ) = delete;