aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Arduino.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2014-01-27 22:48:17 +0100
committerCristian Maglie <c.maglie@bug.st>2014-01-27 22:48:17 +0100
commite088421ef902180f6561f906181408133796531f (patch)
tree88a5b32b3cf2588bb6a2a442b417489b72e5bae0 /cores/arduino/Arduino.h
parentf01025a70d6c11c09e32033195f4a9396462fb05 (diff)
parentc3cd35f1979290d072ab77a6805dc4419f2ef6fb (diff)
Merge branch 'serial-patch-2' into ide-1.5.x
Diffstat (limited to 'cores/arduino/Arduino.h')
-rw-r--r--cores/arduino/Arduino.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h
index 7bf5119..a189777 100644
--- a/cores/arduino/Arduino.h
+++ b/cores/arduino/Arduino.h
@@ -88,6 +88,10 @@ void yield(void);
#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit))
+// avr-libc defines _NOP() since 1.6.2
+#ifndef _NOP
+#define _NOP() do { __asm__ volatile ("nop"); } while (0)
+#endif
typedef unsigned int word;
@@ -196,6 +200,10 @@ extern const uint8_t PROGMEM digital_pin_to_timer_PGM[];
#include "WCharacter.h"
#include "WString.h"
#include "HardwareSerial.h"
+#include "USBAPI.h"
+#if defined(HAVE_HWSERIAL0) && defined(HAVE_CDCSERIAL)
+#error "Targets with both UART0 and CDC serial not supported"
+#endif
uint16_t makeWord(uint16_t w);
uint16_t makeWord(byte h, byte l);