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;