conf_d_usartDMA.h
Go to the documentation of this file.
1 /*
2 MIT LICENSE
3 
4 Copyright 2014-2019 Inertial Sense, Inc. - http://inertialsense.com
5 
6 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :
7 
8 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9 
10 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT, IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 */
12 
13 #ifndef CONF_D_USARTDMA_H_
14 #define CONF_D_USARTDMA_H_
15 
16 //Define what port number goes to which hardware UART/USART and some configuration
17 // UART/USART DMA TX Channel TX Buffer Size DMA RX Channel RX Buffer Size
18 #define PORT0_CONFIG ( UART1, DMA_CH_UART_UINS0_TX, 4096, DMA_CH_UART_UINS0_RX, 4096 )
19 #define PORT1_CONFIG ( UART0, DMA_CH_UART_UINS1_TX, 4096, DMA_CH_UART_UINS1_RX, 4096 )
20 #define PORT2_CONFIG ( USART0, DMA_CH_UART_XBEE_TX, 2048, DMA_CH_UART_XBEE_RX, 2048 )
21 #define PORT3_CONFIG ( UART2, DMA_CH_UART_XRADIO_TX, 2048, DMA_CH_UART_XRADIO_RX, 2048 )
22 #define PORT4_CONFIG ( USART2, DMA_CH_UART_WINC_BLE_TX, 2048, DMA_CH_UART_WINC_BLE_RX, 2048 )
23 #define PORT5_CONFIG ( UART3, DMA_CH_UART_SP330_TX, 2048, DMA_CH_UART_SP330_RX, 2048 )
24 #define PORT6_CONFIG ( USART1, DMA_CH_UART_GPIO_TTL_TX, 2048, DMA_CH_UART_GPIO_TTL_RX, 2048 )
25 #define PORT7_CONFIG ( 0, 0, 2048, 0, 0 ) // USB port
26 
27 #define DEFAULT_BAUDRATE 115200
28 
29 #define CONF_BOARD_USART_SPI 0 // Configure USART SPI pins
30 #define CONF_BOARD_USART_SPI_DATAREADY_ENABLE 0 //Enables the use of the data ready pin when in USART SPI mode
31 
32 #define CONF_LOOPBACK_PORT 0 // DEBUGGING: Select port 0 or 1
33 #define ENABLE_COMM_LOOPBACK_DRIVER 0 // DEBUGGING: Forward serial port Rx onto Tx (Driver level)
34 #define ENABLE_COMM_LOOPBACK_RTOS 0 // DEBUGGING: Forward serial port Rx onto Tx (RTOS level).
35 #define MAX_NUMBER_SERIAL_PORTS 8
36 
37 #define SER_INDICATE_TX()
38 #define SER_INDICATE_RX()
39 
40 #endif /* CONF_D_USARTDMA_H_ */


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:57