Searched refs:uart_config (Results 1 – 6 of 6) sorted by relevance
/hal_nxp-3.5.0/mcux/mcux-sdk/components/uart/ |
D | fsl_adapter_uart.c | 220 hal_uart_status_t HAL_UartInit(hal_uart_handle_t handle, const hal_uart_config_t *uart_config) in HAL_UartInit() argument 226 assert(uart_config); in HAL_UartInit() 227 assert(uart_config->instance < (sizeof(s_UartAdapterBase) / sizeof(UART_Type *))); in HAL_UartInit() 228 assert(s_UartAdapterBase[uart_config->instance]); in HAL_UartInit() 233 uartConfig.baudRate_Bps = uart_config->baudRate_Bps; in HAL_UartInit() 235 if (kHAL_UartParityEven == uart_config->parityMode) in HAL_UartInit() 239 else if (kHAL_UartParityOdd == uart_config->parityMode) in HAL_UartInit() 248 if (kHAL_UartTwoStopBit == uart_config->stopBitCount) in HAL_UartInit() 257 uartConfig.enableRx = (bool)uart_config->enableRx; in HAL_UartInit() 258 uartConfig.enableTx = (bool)uart_config->enableTx; in HAL_UartInit() [all …]
|
D | fsl_adapter_iuart.c | 218 hal_uart_status_t HAL_UartInit(hal_uart_handle_t handle, const hal_uart_config_t *uart_config) in HAL_UartInit() argument 224 assert(uart_config); in HAL_UartInit() 225 assert(uart_config->instance < (sizeof(s_UartAdapterBase) / sizeof(UART_Type *))); in HAL_UartInit() 226 assert(s_UartAdapterBase[uart_config->instance]); in HAL_UartInit() 231 uartConfig.baudRate_Bps = uart_config->baudRate_Bps; in HAL_UartInit() 233 if (kHAL_UartParityEven == uart_config->parityMode) in HAL_UartInit() 237 else if (kHAL_UartParityOdd == uart_config->parityMode) in HAL_UartInit() 246 if (kHAL_UartTwoStopBit == uart_config->stopBitCount) in HAL_UartInit() 254 uartConfig.enableRx = (bool)uart_config->enableRx; in HAL_UartInit() 255 uartConfig.enableTx = (bool)uart_config->enableTx; in HAL_UartInit() [all …]
|
D | fsl_adapter_miniusart.c | 215 hal_uart_status_t HAL_UartInit(hal_uart_handle_t handle, const hal_uart_config_t *uart_config) in HAL_UartInit() argument 221 assert(uart_config); in HAL_UartInit() 222 assert(uart_config->instance < (sizeof(s_UsartAdapterBase) / sizeof(USART_Type *))); in HAL_UartInit() 223 assert(s_UsartAdapterBase[uart_config->instance]); in HAL_UartInit() 228 usartConfig.baudRate_Bps = uart_config->baudRate_Bps; in HAL_UartInit() 230 if (kHAL_UartParityEven == uart_config->parityMode) in HAL_UartInit() 234 else if (kHAL_UartParityOdd == uart_config->parityMode) in HAL_UartInit() 243 if (kHAL_UartTwoStopBit == uart_config->stopBitCount) in HAL_UartInit() 251 usartConfig.enableRx = (bool)uart_config->enableRx; in HAL_UartInit() 252 usartConfig.enableTx = (bool)uart_config->enableTx; in HAL_UartInit() [all …]
|
D | fsl_adapter_lpuart.c | 642 …al_uart_status_t HAL_UartInitCommon(hal_uart_handle_t handle, const hal_uart_config_t *uart_config) in HAL_UartInitCommon() argument 649 lpuartConfig.baudRate_Bps = uart_config->baudRate_Bps; in HAL_UartInitCommon() 650 lpuartConfig.parityMode = (lpuart_parity_mode_t)uart_config->parityMode; in HAL_UartInitCommon() 651 lpuartConfig.stopBitCount = (lpuart_stop_bit_count_t)uart_config->stopBitCount; in HAL_UartInitCommon() 652 lpuartConfig.enableRx = (bool)uart_config->enableRx; in HAL_UartInitCommon() 653 lpuartConfig.enableTx = (bool)uart_config->enableTx; in HAL_UartInitCommon() 656 if (uart_config->txFifoWatermark > 0U) in HAL_UartInitCommon() 659 MIN(uart_config->txFifoWatermark, in HAL_UartInitCommon() 660 … (uint8_t)FSL_FEATURE_LPUART_FIFO_SIZEn(s_LpuartAdapterBase[uart_config->instance])) - in HAL_UartInitCommon() 663 if (uart_config->rxFifoWatermark > 0U) in HAL_UartInitCommon() [all …]
|
D | fsl_adapter_usart.c | 330 hal_uart_status_t HAL_UartInit(hal_uart_handle_t handle, const hal_uart_config_t *uart_config) in HAL_UartInit() argument 336 status = HAL_UartInitCommon(handle, uart_config); in HAL_UartInit() 343 uartHandle->instance = uart_config->instance; in HAL_UartInit() 348 (void)memcpy(&uartHandle->config, uart_config, sizeof(hal_uart_config_t)); in HAL_UartInit() 354 … USART_TransferCreateHandle(s_UsartAdapterBase[uart_config->instance], &uartHandle->hardwareHandle, in HAL_UartInit() 358 …FLEXCOMM_SetIRQHandler(s_UsartAdapterBase[uart_config->instance], HAL_UartInterruptHandle_Wapper, … in HAL_UartInit() 359 NVIC_SetPriority((IRQn_Type)s_UsartIRQ[uart_config->instance], HAL_UART_ISR_PRIORITY); in HAL_UartInit() 360 (void)EnableIRQ(s_UsartIRQ[uart_config->instance]); in HAL_UartInit()
|
D | fsl_adapter_uart.h | 306 hal_uart_status_t HAL_UartInit(hal_uart_handle_t handle, const hal_uart_config_t *uart_config);
|