Digi XBee(R) ANSI C Host Library
xbee_serial_config_efm32.h
1 /*
2  * Copyright (c) 2017 Digi International Inc.,
3  * All rights not expressly granted are reserved.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
7  * You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343
10  * =======================================================================
11  */
18 #ifndef __SERIAL_CONFIG_H
19 #define __SERIAL_CONFIG_H
20 
21  #define RX_BUFF_SIZE 255 /* Receive buffer = 2^n -1 for some integer n) */
22  #define TX_BUFF_SIZE RX_BUFF_SIZE /* Transmit buffer (same as Rx buffer) */
23  #define USART_NUMBER 0 /* The USART peripheral number you are using */
24 
25 
26  /* USART Pin Locations */
27  #define XBEE_TXPORT gpioPortE /* USART transmission port */
28  #define XBEE_TXPIN 10 /* USART transmission pin */
29  #define XBEE_RXPORT gpioPortE /* USART reception port */
30  #define XBEE_RXPIN 11 /* USART reception pin */
31  #define XBEE_RTSPORT gpioPortE /* USART RTS flow control port */
32  #define XBEE_RTSPIN 13 /* USART RTS flow control pin */
33  #define XBEE_CTSPORT gpioPortB /* USART CTS flow control port */
34  #define XBEE_CTSPIN 11 /* USART CTS flow control pin */
35 
36  /* USART Route Locations (use datasheet for mapping locations) */
37  #define TX_LOC 0
38  #define RX_LOC 0
39  #define CTS_LOC 5
40 
41 #endif /* __SERIAL_CONFIG_H */
42