Added BT support on AT90USB devices
Added AT90USB device BT connectivity support using second UART.
This commit is contained in:
1 parent
5b3f60ea2e
commit
7b556d2e96
2 files changed
+4
-17
No files matched your search
@@ -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