add used serial lines
This commit is contained in:
parent
6a1a4b62a0
commit
aa1670e5d4
3 changed files with 5 additions and 1 deletions
|
@ -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 1 // we use the second serial for arduino api HardwareSerial1.cpp
|
||||
#define NUMPORTS 2
|
||||
#elif NUMPORTS > 2
|
||||
#error Only two serial ports are defined for this processor!
|
||||
#endif
|
||||
|
|
|
@ -66,6 +66,8 @@ typedef uint32_t clock_time_t;
|
|||
void clock_delay_msec(uint16_t howlong);
|
||||
void clock_adjust_ticks(clock_time_t howmany);
|
||||
|
||||
/* We use the second serieal with the arduino api */
|
||||
#define NUMPORTS 1
|
||||
/* COM port to be used for SLIP connection. This is usually UART0. */
|
||||
#define SLIP_PORT RS232_PORT_0
|
||||
|
||||
|
|
|
@ -67,6 +67,8 @@ typedef uint32_t clock_time_t;
|
|||
void clock_delay_msec(uint16_t howlong);
|
||||
void clock_adjust_ticks(clock_time_t howmany);
|
||||
|
||||
/* We use the second serieal with the arduino api */
|
||||
#define NUMPORTS 1
|
||||
/* COM port to be used for SLIP connection. This is usually UART0. */
|
||||
#define SLIP_PORT RS232_PORT_0
|
||||
|
||||
|
|
Loading…
Reference in a new issue