Fixed handling for ATmega1284P

This commit is contained in:
BlackMark 2019-07-27 18:54:51 +02:00
parent 81e6a9fdc0
commit e07ba7ecd8

View File

@ -13,7 +13,7 @@
#include <string.h> #include <string.h>
#include "../clock.h" #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 USART_SPI
#define USART0_RX_vect_D USART_RX_vect #define USART0_RX_vect_D USART_RX_vect
#define USART0_UDRE_vect_D USART_UDRE_vect #define USART0_UDRE_vect_D USART_UDRE_vect
@ -24,6 +24,7 @@
#define USART0_UDRE_vect_D USART_UDRE_vect #define USART0_UDRE_vect_D USART_UDRE_vect
#endif #endif
#if defined (__AVR_ATmega1284P__) #if defined (__AVR_ATmega1284P__)
#define USART_SPI
#define SECOND_USART #define SECOND_USART
#define USART0_RX_vect_D USART0_RX_vect #define USART0_RX_vect_D USART0_RX_vect
#define USART1_RX_vect_D USART1_RX_vect #define USART1_RX_vect_D USART1_RX_vect
@ -133,9 +134,9 @@ private:
Parity getParity(); Parity getParity();
StopBit getStopBits(); StopBit getStopBits();
public:
~USART0(); ~USART0();
public:
static USART0& inst(); static USART0& inst();
USART0( const USART0& ) = delete; USART0( const USART0& ) = delete;
void operator=( const USART0& ) = delete; void operator=( const USART0& ) = delete;