Choco OS  V.0.16.9.0
Join to the chocolate world
oc_streams_cfg.c
Go to the documentation of this file.
1 
27 #include <oc_stream.h>
28 #include <oc_driverman.h>
29 
35 #define _________________________________________DRIVER_CONFIGURATIONS_SECTION______________________________________________________________
36 
37 static const oC_UART_Config_t uart_stdio = {
38  .Rx = oC_Pin_UART_RX ,
39  .Tx = oC_Pin_UART_TX ,
40  .WordLength = oC_UART_WordLength_8Bits ,
41  .BitRate = 921600 /* 460800 */ ,
42  .Parity = oC_UART_Parity_None ,
43  .StopBit = oC_UART_StopBit_2Bits ,
44  .BitOrder = oC_UART_BitOrder_LSBFirst ,
45  .Invert = oC_UART_Invert_NotInverted ,
46  .Dma = oC_UART_Dma_UseIfPossible
47 };
48 
49 #undef _________________________________________DRIVER_CONFIGURATIONS_SECTION______________________________________________________________
50 
51 //==========================================================================================================================================
57 //==========================================================================================================================================
58 #define CFG_STDERR_STREAM_NAME "uart_stdio"
59 
60 //==========================================================================================================================================
67 //==========================================================================================================================================
68 #define CFG_STREAMS_LIST(ADD_STREAM) \
69  ADD_STREAM(uart_stdio , IN | OUT , UART , uart_stdio ) \
70 
transmission length is 8 bits
Definition: oc_uart.h:52
The file with interface for stream.
stop bit length set to 2 bits
Definition: oc_uart.h:66
not inverted signals
Definition: oc_uart.h:77
low significant bit first
Definition: oc_uart.h:71
The file with drivers manager interface.
none parity checking
Definition: oc_uart.h:57