Contiki-NG
Toggle main menu visibility
Loading...
Searching...
No Matches
sl_uartdrv_usart_vcom_config.h
Go to the documentation of this file.
1
/***************************************************************************/
/**
2
* @file
3
* @brief UARTDRV_USART Config
4
*******************************************************************************
5
* # License
6
* <b>Copyright 2019 Silicon Laboratories Inc. www.silabs.com</b>
7
*******************************************************************************
8
*
9
* The licensor of this software is Silicon Laboratories Inc. Your use of this
10
* software is governed by the terms of Silicon Labs Master Software License
11
* Agreement (MSLA) available at
12
* www.silabs.com/about-us/legal/master-software-license-agreement. This
13
* software is distributed to you in Source Code format and is governed by the
14
* sections of the MSLA applicable to Source Code.
15
*
16
******************************************************************************/
17
18
#ifndef SL_UARTDRV_USART_VCOM_CONFIG_H
19
#define SL_UARTDRV_USART_VCOM_CONFIG_H
20
21
#include "em_usart.h"
22
// <<< Use Configuration Wizard in Context Menu >>>
23
24
// <h> UART settings
25
// <o SL_UARTDRV_USART_VCOM_BAUDRATE> Baud rate
26
// <i> Default: 115200
27
#define SL_UARTDRV_USART_VCOM_BAUDRATE 115200
28
29
// <o SL_UARTDRV_USART_VCOM_PARITY> Parity mode to use
30
// <usartNoParity=> No Parity
31
// <usartEvenParity=> Even parity
32
// <usartOddParity=> Odd parity
33
// <i> Default: usartNoParity
34
#define SL_UARTDRV_USART_VCOM_PARITY usartNoParity
35
36
// <o SL_UARTDRV_USART_VCOM_STOP_BITS> Number of stop bits to use.
37
// <usartStopbits0p5=> 0.5 stop bits
38
// <usartStopbits1=> 1 stop bits
39
// <usartStopbits1p5=> 1.5 stop bits
40
// <usartStopbits2=> 2 stop bits
41
// <i> Default: usartStopbits1
42
#define SL_UARTDRV_USART_VCOM_STOP_BITS usartStopbits1
43
44
// <o SL_UARTDRV_USART_VCOM_FLOW_CONTROL_TYPE> Flow control method
45
// <uartdrvFlowControlNone=> None
46
// <uartdrvFlowControlSw=> Software XON/XOFF
47
// <uartdrvFlowControlHw=> nRTS/nCTS hardware handshake
48
// <uartdrvFlowControlHwUart=> UART peripheral controls nRTS/nCTS
49
// <i> Default: uartdrvFlowControlHw
50
#define SL_UARTDRV_USART_VCOM_FLOW_CONTROL_TYPE uartdrvFlowControlSw
51
52
// <o SL_UARTDRV_USART_VCOM_OVERSAMPLING> Oversampling selection
53
// <usartOVS16=> 16x oversampling
54
// <usartOVS8=> 8x oversampling
55
// <usartOVS6=> 6x oversampling
56
// <usartOVS4=> 4x oversampling
57
// <i> Default: usartOVS16
58
#define SL_UARTDRV_USART_VCOM_OVERSAMPLING usartOVS4
59
60
// <o SL_UARTDRV_USART_VCOM_MVDIS> Majority vote disable for 16x, 8x and 6x oversampling modes
61
// <true=> True
62
// <false=> False
63
#define SL_UARTDRV_USART_VCOM_MVDIS false
64
65
// <o SL_UARTDRV_USART_VCOM_RX_BUFFER_SIZE> Size of the receive operation queue
66
// <i> Default: 6
67
#define SL_UARTDRV_USART_VCOM_RX_BUFFER_SIZE 6
68
69
// <o SL_UARTDRV_USART_VCOM_TX_BUFFER_SIZE> Size of the transmit operation queue
70
// <i> Default: 6
71
#define SL_UARTDRV_USART_VCOM_TX_BUFFER_SIZE 6
72
// </h>
73
// <<< end of configuration section >>>
74
75
// <<< sl:start pin_tool >>>
76
// <usart signal=TX,RX,(CTS),(RTS)> SL_UARTDRV_USART_VCOM
77
// $[USART_SL_UARTDRV_USART_VCOM]
78
#define SL_UARTDRV_USART_VCOM_PERIPHERAL USART0
79
#define SL_UARTDRV_USART_VCOM_PERIPHERAL_NO 0
80
81
// USART0 TX on PA0
82
#define SL_UARTDRV_USART_VCOM_TX_PORT gpioPortA
83
#define SL_UARTDRV_USART_VCOM_TX_PIN 0
84
#define SL_UARTDRV_USART_VCOM_TX_LOC 0
85
86
// USART0 RX on PA1
87
#define SL_UARTDRV_USART_VCOM_RX_PORT gpioPortA
88
#define SL_UARTDRV_USART_VCOM_RX_PIN 1
89
#define SL_UARTDRV_USART_VCOM_RX_LOC 0
90
91
// USART0 CTS on PA2
92
#define SL_UARTDRV_USART_VCOM_CTS_PORT gpioPortA
93
#define SL_UARTDRV_USART_VCOM_CTS_PIN 2
94
#define SL_UARTDRV_USART_VCOM_CTS_LOC 30
95
96
// USART0 RTS on PA3
97
#define SL_UARTDRV_USART_VCOM_RTS_PORT gpioPortA
98
#define SL_UARTDRV_USART_VCOM_RTS_PIN 3
99
#define SL_UARTDRV_USART_VCOM_RTS_LOC 30
100
101
// [USART_SL_UARTDRV_USART_VCOM]$
102
// <<< sl:end pin_tool >>>
103
#endif
// SL_UARTDRV_USART_VCOM_CONFIG_H
arch
platform
gecko
brd4166a
config
sl_uartdrv_usart_vcom_config.h
Generated on
for Contiki-NG by
1.17.0