various coverity fixes
[RRG-proxmark3.git] / include / usart_defs.h
blobcf6630e83d58decae9a8d7e5ec871f1d04fc743b
1 #ifndef __USART_DEFS_H
2 #define __USART_DEFS_H
4 //#define USART_BAUD_RATE 9600
5 #define USART_BAUD_RATE 115200
6 // BT HC-06 physical layer runs at 128kbps
7 // so it's possible to gain a little bit by using 230400
8 // with some risk to overflow its internal buffers:
9 //#define USART_BAUD_RATE 230400
11 #define USART_BUFFLEN 512
12 #define USART_FIFOLEN (2*USART_BUFFLEN)
14 // Higher baudrates are pointless, only increasing overflow risk
16 #define USART_PARITY 'N'
18 #if defined (_WIN32)
19 #define SERIAL_PORT_EXAMPLE_H "com3"
20 #elif defined(__APPLE__)
21 #define SERIAL_PORT_EXAMPLE_H "/dev/tty.usbmodemiceman1"
22 #else
23 #define SERIAL_PORT_EXAMPLE_H "/dev/ttyACM0"
24 #endif
26 #endif