add hardware serial1 to use with arduino api

This commit is contained in:
Harald Pichler 2016-11-09 15:14:45 +01:00
parent d2a1f8937e
commit c666b18a12
4 changed files with 5 additions and 2 deletions

View file

@ -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