Home
last modified time | relevance | path

Searched refs:USART_InitStructure (Results 1 – 11 of 11) sorted by relevance

/bsp/hk32/libraries/rt_drivers/
A Ddrv_usart.c60 USART_InitTypeDef USART_InitStructure; in hk32_configure() local
69 USART_StructInit(&USART_InitStructure); in hk32_configure()
72 USART_InitStructure.USART_BaudRate = cfg->baud_rate; in hk32_configure()
93 USART_InitStructure.USART_StopBits = USART_StopBits_1; in hk32_configure()
96 USART_InitStructure.USART_StopBits = USART_StopBits_2; in hk32_configure()
99 USART_InitStructure.USART_StopBits = USART_StopBits_1; in hk32_configure()
106 USART_InitStructure.USART_Parity = USART_Parity_No; in hk32_configure()
109 USART_InitStructure.USART_Parity = USART_Parity_Odd; in hk32_configure()
112 USART_InitStructure.USART_Parity = USART_Parity_Even; in hk32_configure()
115 USART_InitStructure.USART_Parity = USART_Parity_No; in hk32_configure()
[all …]
/bsp/wch/arm/Libraries/ch32_drivers/
A Ddrv_uart_ch32f10x.c61 USART_InitTypeDef USART_InitStructure; in ch32f1_usart_configure() local
71 USART_StructInit(&USART_InitStructure); in ch32f1_usart_configure()
73 USART_InitStructure.USART_BaudRate = cfg->baud_rate; in ch32f1_usart_configure()
94 USART_InitStructure.USART_StopBits = USART_StopBits_1; in ch32f1_usart_configure()
97 USART_InitStructure.USART_StopBits = USART_StopBits_2; in ch32f1_usart_configure()
100 USART_InitStructure.USART_StopBits = USART_StopBits_1; in ch32f1_usart_configure()
107 USART_InitStructure.USART_Parity = USART_Parity_No; in ch32f1_usart_configure()
110 USART_InitStructure.USART_Parity = USART_Parity_Odd; in ch32f1_usart_configure()
113 USART_InitStructure.USART_Parity = USART_Parity_Even; in ch32f1_usart_configure()
116 USART_InitStructure.USART_Parity = USART_Parity_No; in ch32f1_usart_configure()
[all …]
A Ddrv_uart_ch32f20x.c101 USART_InitTypeDef USART_InitStructure; in ch32f2_usart_configure() local
111 USART_StructInit(&USART_InitStructure); in ch32f2_usart_configure()
113 USART_InitStructure.USART_BaudRate = cfg->baud_rate; in ch32f2_usart_configure()
134 USART_InitStructure.USART_StopBits = USART_StopBits_1; in ch32f2_usart_configure()
137 USART_InitStructure.USART_StopBits = USART_StopBits_2; in ch32f2_usart_configure()
140 USART_InitStructure.USART_StopBits = USART_StopBits_1; in ch32f2_usart_configure()
147 USART_InitStructure.USART_Parity = USART_Parity_No; in ch32f2_usart_configure()
150 USART_InitStructure.USART_Parity = USART_Parity_Odd; in ch32f2_usart_configure()
153 USART_InitStructure.USART_Parity = USART_Parity_Even; in ch32f2_usart_configure()
156 USART_InitStructure.USART_Parity = USART_Parity_No; in ch32f2_usart_configure()
[all …]
/bsp/wch/risc-v/ch32v103r-evt/board/
A Ddebug.c95 USART_InitTypeDef USART_InitStructure; in USART_Printf_Init() local
125 USART_InitStructure.USART_BaudRate = baudrate; in USART_Printf_Init()
126 USART_InitStructure.USART_WordLength = USART_WordLength_8b; in USART_Printf_Init()
127 USART_InitStructure.USART_StopBits = USART_StopBits_1; in USART_Printf_Init()
128 USART_InitStructure.USART_Parity = USART_Parity_No; in USART_Printf_Init()
129 USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None; in USART_Printf_Init()
130 USART_InitStructure.USART_Mode = USART_Mode_Tx; in USART_Printf_Init()
133 USART_Init(USART1, &USART_InitStructure); in USART_Printf_Init()
137 USART_Init(USART2, &USART_InitStructure); in USART_Printf_Init()
141 USART_Init(USART3, &USART_InitStructure); in USART_Printf_Init()
/bsp/ht32/libraries/ht32_drivers/
A Ddrv_usart.c107 USART_InitTypeDef USART_InitStructure = {0}; in ht32_configure() local
144 USART_InitStructure.USART_BaudRate = (cfg->baud_rate); in ht32_configure()
167 USART_InitStructure.USART_StopBits = USART_STOPBITS_1; in ht32_configure()
170 USART_InitStructure.USART_StopBits = USART_STOPBITS_2; in ht32_configure()
173 USART_InitStructure.USART_StopBits = USART_STOPBITS_1; in ht32_configure()
180 USART_InitStructure.USART_Parity = USART_PARITY_NO; in ht32_configure()
183 USART_InitStructure.USART_Parity = USART_PARITY_ODD; in ht32_configure()
186 USART_InitStructure.USART_Parity = USART_PARITY_EVEN; in ht32_configure()
189 USART_InitStructure.USART_Parity = USART_PARITY_NO; in ht32_configure()
194 USART_InitStructure.USART_Mode = USART_MODE_NORMAL; in ht32_configure()
[all …]
/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/library/HT32F5xxxx_Driver/src/
A Dht32_retarget.c125 USART_InitTypeDef USART_InitStructure; in RETARGET_Configuration() local
127 USART_InitStructure.USART_BaudRate = RETARGET_UxART_BAUDRATE; in RETARGET_Configuration()
129 USART_InitStructure.USART_BaudRate = 115200; in RETARGET_Configuration()
131 USART_InitStructure.USART_WordLength = USART_WORDLENGTH_8B; in RETARGET_Configuration()
132 USART_InitStructure.USART_StopBits = USART_STOPBITS_1; in RETARGET_Configuration()
133 USART_InitStructure.USART_Parity = USART_PARITY_NO; in RETARGET_Configuration()
134 USART_InitStructure.USART_Mode = USART_MODE_NORMAL; in RETARGET_Configuration()
137 HT32F_DVB_COMInit(RETARGET_COM_PORT, &USART_InitStructure); in RETARGET_Configuration()
145 USART_Init(RETARGET_USART_PORT, &USART_InitStructure); in RETARGET_Configuration()
/bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/library/HT32F1xxxx_Driver/src/
A Dht32_retarget.c125 USART_InitTypeDef USART_InitStructure; in RETARGET_Configuration() local
127 USART_InitStructure.USART_BaudRate = RETARGET_UxART_BAUDRATE; in RETARGET_Configuration()
129 USART_InitStructure.USART_BaudRate = 115200; in RETARGET_Configuration()
131 USART_InitStructure.USART_WordLength = USART_WORDLENGTH_8B; in RETARGET_Configuration()
132 USART_InitStructure.USART_StopBits = USART_STOPBITS_1; in RETARGET_Configuration()
133 USART_InitStructure.USART_Parity = USART_PARITY_NO; in RETARGET_Configuration()
134 USART_InitStructure.USART_Mode = USART_MODE_NORMAL; in RETARGET_Configuration()
137 HT32F_DVB_COMInit(RETARGET_COM_PORT, &USART_InitStructure); in RETARGET_Configuration()
145 USART_Init(RETARGET_USART_PORT, &USART_InitStructure); in RETARGET_Configuration()
/bsp/n32/libraries/n32_drivers/
A Ddrv_usart.c415 USART_InitType USART_InitStructure; in n32_configure() local
424 USART_InitStructure.BaudRate = cfg->baud_rate; in n32_configure()
429 USART_InitStructure.WordLength = USART_WL_9B; in n32_configure()
433 USART_InitStructure.WordLength = USART_WL_8B;; in n32_configure()
440 USART_InitStructure.StopBits = USART_STPB_1; in n32_configure()
443 USART_InitStructure.StopBits = USART_STPB_0_5; in n32_configure()
446 USART_InitStructure.StopBits = USART_STPB_2; in n32_configure()
458 USART_InitStructure.Parity = USART_PE_ODD; in n32_configure()
461 USART_InitStructure.Parity = USART_PE_EVEN; in n32_configure()
464 USART_InitStructure.Parity = USART_PE_NO; in n32_configure()
[all …]
/bsp/n32g452xx/Libraries/rt_drivers/
A Ddrv_usart.c51 USART_InitType USART_InitStructure; in n32_uart_configure() local
61 USART_InitStructure.BaudRate = cfg->baud_rate; in n32_uart_configure()
65 USART_InitStructure.WordLength = USART_WL_8B; in n32_uart_configure()
69 USART_InitStructure.WordLength = USART_WL_9B; in n32_uart_configure()
74 USART_InitStructure.StopBits = USART_STPB_1; in n32_uart_configure()
78 USART_InitStructure.StopBits = USART_STPB_2; in n32_uart_configure()
83 USART_InitStructure.Parity = USART_PE_NO; in n32_uart_configure()
87 USART_InitStructure.Parity = USART_PE_ODD; in n32_uart_configure()
91 USART_InitStructure.Parity = USART_PE_EVEN; in n32_uart_configure()
95 USART_InitStructure.Mode = USART_MODE_RX | USART_MODE_TX; in n32_uart_configure()
[all …]
/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/library/HT32F5xxxx_Driver/inc/
A Dht32f5xxxx_usart.h441 void USART_Init(HT_USART_TypeDef* USARTx, USART_InitTypeDef* USART_InitStructure);
442 void USART_StructInit(USART_InitTypeDef* USART_InitStructure);
/bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/library/HT32F1xxxx_Driver/inc/
A Dht32f1xxxx_usart.h518 void USART_Init(HT_USART_TypeDef* USARTx, USART_InitTypeDef* USART_InitStructure);
519 void USART_StructInit(USART_InitTypeDef* USART_InitStructure);

Completed in 23 milliseconds