Added BT support on AT90USB devices
Added AT90USB device BT connectivity support using second UART.
This commit is contained in:
@ -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)))
|
||||
|
Reference in New Issue
Block a user