Skip to content

Commit 5b48b1e

Browse files
committed
Merge branch 'serial-patch-2' into ide-1.5.x
2 parents 48c1223 + 9ad14b2 commit 5b48b1e

9 files changed

+473
-381
lines changed

hardware/arduino/avr/cores/arduino/Arduino.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ void yield(void);
8888
#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
8989
#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit))
9090

91+
// avr-libc defines _NOP() since 1.6.2
92+
#ifndef _NOP
93+
#define _NOP() do { __asm__ volatile ("nop"); } while (0)
94+
#endif
9195

9296
typedef unsigned int word;
9397

@@ -196,6 +200,10 @@ extern const uint8_t PROGMEM digital_pin_to_timer_PGM[];
196200
#include "WCharacter.h"
197201
#include "WString.h"
198202
#include "HardwareSerial.h"
203+
#include "USBAPI.h"
204+
#if defined(HAVE_HWSERIAL0) && defined(HAVE_CDCSERIAL)
205+
#error "Targets with both UART0 and CDC serial not supported"
206+
#endif
199207

200208
uint16_t makeWord(uint16_t w);
201209
uint16_t makeWord(byte h, byte l);

0 commit comments

Comments
 (0)