Added BT support on AT90USB devices

Added AT90USB device BT connectivity support using second UART.
This commit is contained in:
fmalpartida
2013-11-03 19:57:06 +01:00
parent 5b3f60ea2e
commit 7b556d2e96
2 changed files with 4 additions and 17 deletions

View File

@ -51,19 +51,12 @@
#ifdef AT90USB
#ifdef BTENABLED
extern HardwareSerial bt;
#define MYSERIAL bt
#else
#define MYSERIAL Serial
#endif // BTENABLED
#endif
#ifdef AT90USB
#define MYSERIAL Serial
#else
#define MYSERIAL MSerial
#endif
#define SERIAL_PROTOCOL(x) (MYSERIAL.print(x))
#define SERIAL_PROTOCOL_F(x,y) (MYSERIAL.print(x,y))
#define SERIAL_PROTOCOLPGM(x) (serialprintPGM(PSTR(x)))