Lines Matching refs:USART_ConfigStruct
105 USART_Config_T USART_ConfigStruct; in apm32_uart_configure() local
113 USART_ConfigStruct.baudRate = cfg->baud_rate; in apm32_uart_configure()
114 USART_ConfigStruct.mode = USART_MODE_TX_RX; in apm32_uart_configure()
115 USART_ConfigStruct.parity = USART_PARITY_NONE; in apm32_uart_configure()
122 USART_ConfigStruct.hardwareFlowCtrl = USART_FLOW_CTRL_NONE; in apm32_uart_configure()
125 USART_ConfigStruct.hardwareFlowCtrl = USART_FLOW_CTRL_RTS_CTS; in apm32_uart_configure()
128 USART_ConfigStruct.hardwareFlowCtrl = USART_FLOW_CTRL_NONE; in apm32_uart_configure()
136 USART_ConfigStruct.hardwareFlow = USART_HARDWARE_FLOW_NONE; in apm32_uart_configure()
139 USART_ConfigStruct.hardwareFlow = USART_HARDWARE_FLOW_RTS_CTS; in apm32_uart_configure()
142 USART_ConfigStruct.hardwareFlow = USART_HARDWARE_FLOW_NONE; in apm32_uart_configure()
151 USART_ConfigStruct.wordLength = USART_WORD_LEN_9B; in apm32_uart_configure()
153 USART_ConfigStruct.wordLength = USART_WORD_LEN_8B; in apm32_uart_configure()
156 USART_ConfigStruct.wordLength = USART_WORD_LEN_9B; in apm32_uart_configure()
159 USART_ConfigStruct.wordLength = USART_WORD_LEN_8B; in apm32_uart_configure()
166 USART_ConfigStruct.stopBits = USART_STOP_BIT_1; in apm32_uart_configure()
169 USART_ConfigStruct.stopBits = USART_STOP_BIT_2; in apm32_uart_configure()
172 USART_ConfigStruct.stopBits = USART_STOP_BIT_1; in apm32_uart_configure()
179 USART_ConfigStruct.parity = USART_PARITY_NONE; in apm32_uart_configure()
182 USART_ConfigStruct.parity = USART_PARITY_ODD; in apm32_uart_configure()
185 USART_ConfigStruct.parity = USART_PARITY_EVEN; in apm32_uart_configure()
188 USART_ConfigStruct.parity = USART_PARITY_NONE; in apm32_uart_configure()
192 USART_Config(usart_instance->usartx, &USART_ConfigStruct); in apm32_uart_configure()