Fixed handling for ATmega1284P
This commit is contained in:
parent
81e6a9fdc0
commit
e07ba7ecd8
5
usart.h
5
usart.h
@ -13,7 +13,7 @@
|
||||
#include <string.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 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;
|
||||
|
Loading…
Reference in New Issue
Block a user