add hardware serial1 to use with arduino api
This commit is contained in:
parent
d2a1f8937e
commit
c666b18a12
4 changed files with 5 additions and 2 deletions
|
@ -145,7 +145,7 @@ extern const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[];
|
|||
// look at this again when considering implementing serial
|
||||
#include "WCharacter.h"
|
||||
#include "WString.h"
|
||||
//#include "HardwareSerial.h"
|
||||
#include "HardwareSerial.h"
|
||||
|
||||
uint16_t makeWord(uint16_t w);
|
||||
uint16_t makeWord(byte h, byte l);
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
|
||||
#if defined (__AVR_ATmega128__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega1281__) || defined(__AVR_ATmega128RFA1__) || defined(__AVR_ATmega128RFR2__) || defined(__AVR_ATmega256RFR2__)
|
||||
#ifndef NUMPORTS
|
||||
#define NUMPORTS 2
|
||||
#define NUMPORTS 1 // we use the second serial for arduino api HardwareSerial1.cpp
|
||||
#elif NUMPORTS > 2
|
||||
#error Only two serial ports are defined for this processor!
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue