Added _BV macro to LCD.h, this macro is normally defined by Atmel in its library. The macro is very dependent from Atmel.

REMARK: This fix will not fix being able to compile this library as the Arduino IDE has broken a range of base support operation on the DUE. For example: digitalPinToTimer()

This library has not even been ported nor tested with Arduino 1.5
This commit is contained in:
fmalpartida
2014-05-24 19:00:33 +02:00
parent 250fc39303
commit 3cd4b5d108
+14
View File
@@ -51,6 +51,20 @@
#include <Print.h>
/*!
@defined
@abstract Performs a bitwise shift.
@discussion Defines _BV bit shift which is very dependent macro defined by
Atmel.
\note The bit shift is performed by the compiler which then inserts the
result into the code. Thus, there is no run-time overhead when using
_BV().
*/
#ifndef _BV
#define _BV(bit) (1 << (bit))
#endif
/*!
@defined
@abstract Enables disables fast waits for write operations for LCD