Lines Matching refs:USART_InitStructure
107 USART_InitTypeDef USART_InitStructure = {0}; in ht32_configure() local
144 USART_InitStructure.USART_BaudRate = (cfg->baud_rate); in ht32_configure()
150 USART_InitStructure.USART_WordLength = USART_WORDLENGTH_7B; in ht32_configure()
153 USART_InitStructure.USART_WordLength = USART_WORDLENGTH_8B; in ht32_configure()
156 USART_InitStructure.USART_WordLength = USART_WORDLENGTH_9B; in ht32_configure()
159 USART_InitStructure.USART_WordLength = USART_WORDLENGTH_8B; 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()
196 USART_Init((usart_instance->usart_x), &USART_InitStructure); in ht32_configure()