Home
last modified time | relevance | path

Searched refs:udd (Results 1 – 2 of 2) sorted by relevance

/drivers/hdf_core/adapter/platform/uart/
Duart_gr5xx.c35 typedef int32_t (*app_uart_cfg_handler_t)(struct UartDriverData *udd);
149 static int32_t Gr5xxUartConfig(struct UartDriverData *udd) in Gr5xxUartConfig() argument
154 if (udd == NULL) { in Gr5xxUartConfig()
158 params = &udd->params; in Gr5xxUartConfig()
159 params->id = udd->id; in Gr5xxUartConfig()
160 params->init.baud_rate = udd->baudrate; in Gr5xxUartConfig()
162 params->init.data_bits = GetUartDataBits(udd->attr.dataBits); in Gr5xxUartConfig()
163 params->init.stop_bits = GetUartStopBits(udd->attr.stopBits); in Gr5xxUartConfig()
164 params->init.parity = GetUartParity(udd->attr.parity); in Gr5xxUartConfig()
166 ret = app_uart_init(params, udd->eventCallback, &udd->txBuffer); in Gr5xxUartConfig()
[all …]
Duart_asr.c55 typedef int32_t (*app_uart_cfg_handler_t)(struct UartDriverData *udd);
200 static int32_t Asr582xUartConfig(struct UartDriverData *udd) in Asr582xUartConfig() argument
205 if (udd == NULL) { in Asr582xUartConfig()
208 asr_pinmux_config(udd->resource.pin_tx_pin, udd->resource.pin_tx_mux); in Asr582xUartConfig()
209 asr_pinmux_config(udd->resource.pin_rx_pin, udd->resource.pin_rx_mux); in Asr582xUartConfig()
210 params = &udd->params; in Asr582xUartConfig()
211 params->port = udd->resource.port; in Asr582xUartConfig()
212 params->config.data_width = GetUartDataBits(udd->attr.dataBits); in Asr582xUartConfig()
213 params->config.stop_bits = GetUartStopBits(udd->attr.stopBits); in Asr582xUartConfig()
214 params->config.parity = GetUartParity(udd->attr.parity); in Asr582xUartConfig()
[all …]