Lines Matching refs:UartHandle
35 static UART_HandleTypeDef UartHandle; variable
72 UartHandle.Instance = USART1; in UartMcuConfig()
73 UartHandle.Init.BaudRate = baudrate; in UartMcuConfig()
81 UartHandle.Init.Mode = UART_MODE_TX; in UartMcuConfig()
89 UartHandle.Init.Mode = UART_MODE_RX; in UartMcuConfig()
97 UartHandle.Init.Mode = UART_MODE_TX_RX; in UartMcuConfig()
106 UartHandle.Init.WordLength = UART_WORDLENGTH_8B; in UartMcuConfig()
110 UartHandle.Init.WordLength = UART_WORDLENGTH_9B; in UartMcuConfig()
116 UartHandle.Init.StopBits = UART_STOPBITS_2; in UartMcuConfig()
119 UartHandle.Init.StopBits = UART_STOPBITS_1_5; in UartMcuConfig()
123 UartHandle.Init.StopBits = UART_STOPBITS_1; in UartMcuConfig()
129 UartHandle.Init.Parity = UART_PARITY_NONE; in UartMcuConfig()
133 UartHandle.Init.Parity = UART_PARITY_EVEN; in UartMcuConfig()
137 UartHandle.Init.Parity = UART_PARITY_ODD; in UartMcuConfig()
142 UartHandle.Init.HwFlowCtl = UART_HWCONTROL_NONE; in UartMcuConfig()
146 UartHandle.Init.HwFlowCtl = UART_HWCONTROL_RTS; in UartMcuConfig()
150 UartHandle.Init.HwFlowCtl = UART_HWCONTROL_CTS; in UartMcuConfig()
154 UartHandle.Init.HwFlowCtl = UART_HWCONTROL_RTS_CTS; in UartMcuConfig()
157 UartHandle.Init.OverSampling = UART_OVERSAMPLING_16; in UartMcuConfig()
159 if( HAL_UART_Init( &UartHandle ) != HAL_OK ) in UartMcuConfig()
168 HAL_UART_Receive_IT( &UartHandle, &RxData, 1 ); in UartMcuConfig()
211 __HAL_UART_ENABLE_IT( &UartHandle, UART_IT_TC ); in UartMcuPutChar()
310 HAL_UART_Transmit_IT( &UartHandle, &TxData, 1 ); in HAL_UART_TxCpltCallback()
332 HAL_UART_Receive_IT( &UartHandle, &RxData, 1 ); in HAL_UART_RxCpltCallback()
337 HAL_UART_Receive_IT( &UartHandle, &RxData, 1 ); in HAL_UART_ErrorCallback()
342 HAL_UART_IRQHandler( &UartHandle ); in USART1_IRQHandler()