/***************************************************************************//** * @file * @brief UARTDRV_EUSART Config ******************************************************************************* * # License * Copyright 2019 Silicon Laboratories Inc. www.silabs.com ******************************************************************************* * * SPDX-License-Identifier: Zlib * * The licensor of this software is Silicon Laboratories Inc. * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. * ******************************************************************************/ #ifndef SL_UARTDRV_EUSART_VCOM_CONFIG_H #define SL_UARTDRV_EUSART_VCOM_CONFIG_H #include "em_eusart.h" // <<< Use Configuration Wizard in Context Menu >>> // EUSART settings // Baud rate // Default: 115200 #define SL_UARTDRV_EUSART_VCOM_BAUDRATE 115200 // Low frequency mode // True // False #define SL_UARTDRV_EUSART_VCOM_LF_MODE false // Parity mode to use // No Parity // Even parity // Odd parity // Default: eusartNoParity #define SL_UARTDRV_EUSART_VCOM_PARITY eusartNoParity // Number of stop bits to use. // 0.5 stop bits // 1 stop bits // 1.5 stop bits // 2 stop bits // Default: eusartStopbits1 #define SL_UARTDRV_EUSART_VCOM_STOP_BITS eusartStopbits1 // Flow control method // None // Software XON/XOFF // nRTS/nCTS hardware handshake // UART peripheral controls nRTS/nCTS // Default: uartdrvFlowControlHwUart #define SL_UARTDRV_EUSART_VCOM_FLOW_CONTROL_TYPE uartdrvFlowControlNone // Oversampling selection // 16x oversampling // 8x oversampling // 6x oversampling // 4x oversampling // Oversampling disabled // Default: eusartOVS16 #define SL_UARTDRV_EUSART_VCOM_OVERSAMPLING eusartOVS16 // Majority vote disable for 16x, 8x and 6x oversampling modes // False // True // Default: eusartMajorityVoteEnable #define SL_UARTDRV_EUSART_VCOM_MVDIS eusartMajorityVoteEnable // Size of the receive operation queue // Default: 6 #define SL_UARTDRV_EUSART_VCOM_RX_BUFFER_SIZE 6 // Size of the transmit operation queue // Default: 6 #define SL_UARTDRV_EUSART_VCOM_TX_BUFFER_SIZE 6 // // <<< end of configuration section >>> // <<< sl:start pin_tool >>> // SL_UARTDRV_EUSART_VCOM // $[EUSART_SL_UARTDRV_EUSART_VCOM] #ifndef SL_UARTDRV_EUSART_VCOM_PERIPHERAL #define SL_UARTDRV_EUSART_VCOM_PERIPHERAL EUSART0 #endif #ifndef SL_UARTDRV_EUSART_VCOM_PERIPHERAL_NO #define SL_UARTDRV_EUSART_VCOM_PERIPHERAL_NO 0 #endif // EUSART0 TX on PA05 #ifndef SL_UARTDRV_EUSART_VCOM_TX_PORT #define SL_UARTDRV_EUSART_VCOM_TX_PORT SL_GPIO_PORT_A #endif #ifndef SL_UARTDRV_EUSART_VCOM_TX_PIN #define SL_UARTDRV_EUSART_VCOM_TX_PIN 5 #endif // EUSART0 RX on PA06 #ifndef SL_UARTDRV_EUSART_VCOM_RX_PORT #define SL_UARTDRV_EUSART_VCOM_RX_PORT SL_GPIO_PORT_A #endif #ifndef SL_UARTDRV_EUSART_VCOM_RX_PIN #define SL_UARTDRV_EUSART_VCOM_RX_PIN 6 #endif // EUSART0 CTS on PB02 #ifndef SL_UARTDRV_EUSART_VCOM_CTS_PORT #define SL_UARTDRV_EUSART_VCOM_CTS_PORT SL_GPIO_PORT_B #endif #ifndef SL_UARTDRV_EUSART_VCOM_CTS_PIN #define SL_UARTDRV_EUSART_VCOM_CTS_PIN 2 #endif // [EUSART_SL_UARTDRV_EUSART_VCOM]$ // <<< sl:end pin_tool >>> #endif // SL_UARTDRV_EUSART_VCOM_CONFIG_H