Merge pull request #2593 from Akury83/master
[RRG-proxmark3.git] / include / usart_defs.h
blob501f664642a93065bd165b3d1628909637616d8a
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 #ifndef __USART_DEFS_H
17 #define __USART_DEFS_H
19 //#define USART_BAUD_RATE 9600
20 #define USART_BAUD_RATE 115200
21 // BT HC-06 physical layer runs at 128kbps
22 // so it's possible to gain a little bit by using 230400
23 // with some risk to overflow its internal buffers:
24 //#define USART_BAUD_RATE 230400
26 #define USART_BUFFLEN 512
27 #define USART_FIFOLEN (2*USART_BUFFLEN)
29 // Higher baudrates are pointless, only increasing overflow risk
31 #define USART_PARITY 'N'
33 #if defined (_WIN32)
34 #define SERIAL_PORT_EXAMPLE_H "com3"
35 #elif defined(__APPLE__)
36 #define SERIAL_PORT_EXAMPLE_H "/dev/tty.usbmodemiceman1"
37 #else
38 #define SERIAL_PORT_EXAMPLE_H "/dev/ttyACM0"
39 #endif
41 #endif