-
Notifications
You must be signed in to change notification settings - Fork 2
/
gtn_user_config.h
55 lines (45 loc) · 1.27 KB
/
gtn_user_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* GTN USER CONFIG:
*/
/*
* define or undefine USE_HARDWARESERIAL (uncomment only one or none)
*/
//#undef GTN_USE_HARDWARESERIAL
//#define GTN_USE_HARDWARESERIAL
/*
* define user baudrate
*/
//#define GTN_UART_BAUD 4800
/*
* define user GTN_RX_PIN and GTN_TX_PIN for esp/avr Software Serial option
* or ESP32 with Hardware Serial if default core pins are not suitable
*/
#if defined ( GTN_USE_HARDWARESERIAL )
#if defined ( ESP32 )
#define GTN_RX_PIN 13
#define GTN_TX_PIN 15
#endif
#else
#if defined ( ESP8266 ) || defined ( ESP32 )
#define GTN_RX_PIN 18
#define GTN_TX_PIN 19
#else
#define GTN_RX_PIN 10
#define GTN_TX_PIN 11
#endif
#endif
#if defined ( GTN_USE_HARDWARESERIAL )
/*
* define user GTN_UART_CONFIG for hardware serial
*/
//#define GTN_UART_CONFIG SERIAL_8N1
/*
* define user SWAPHWSERIAL, if true(1) then swap uart pins from 3/1 to 13/15 (only ESP8266)
*/
//#define SWAPHWSERIAL 0
#else
/*
* define user GTN_UART_CONFIG for software serial
*/
//#define GTN_UART_CONFIG SWSERIAL_8N1
#endif