Added BT support on AT90USB devices
Added AT90USB device BT connectivity support using second UART.
This commit is contained in:
parent
5b3f60ea2e
commit
7b556d2e96
2 changed files with 4 additions and 17 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue