Home
last modified time | relevance | path

Searched refs:uartDevice (Results 1 – 5 of 5) sorted by relevance

/drivers/hdf_core/adapter/platform/uart/
Duart_wm.c235 struct UartDevice *uartDevice = NULL; in InitUartDevice() local
242 uartDevice = (struct UartDevice *)host->priv; in InitUartDevice()
243 if (!uartDevice->initFlag) { in InitUartDevice()
244 HDF_LOGI("uart %ld device init", uartDevice->uartId); in InitUartDevice()
245 HalSetUartIomux(uartDevice->uartId); in InitUartDevice()
246 UartStart(uartDevice); in InitUartDevice()
247 uartDevice->initFlag = true; in InitUartDevice()
304 struct UartDevice *uartDevice = NULL; in AttachUartDevice() local
311 uartDevice = (struct UartDevice *)OsalMemAlloc(sizeof(struct UartDevice)); in AttachUartDevice()
312 if (uartDevice == NULL) { in AttachUartDevice()
[all …]
Duart_stm32f4xx.c327 UartDevice *uartDevice = NULL; in InitUartDevice() local
336 uartDevice = (UartDevice *)host->priv; in InitUartDevice()
337 resource = &uartDevice->resource; in InitUartDevice()
342 initTypedef = &uartDevice->initTypedef; in InitUartDevice()
347 InitContextTransMode(&g_uartCtx[uartDevice->uartId - 1], resource->transMode); in InitUartDevice()
348 LL_USART_Disable(g_usartRegMap[uartDevice->uartId - 1]); in InitUartDevice()
349 LL_USART_DeInit(g_usartRegMap[uartDevice->uartId - 1]); in InitUartDevice()
350 InitUsartClock(uartDevice->uartId); in InitUartDevice()
352 if (!uartDevice->initFlag) { in InitUartDevice()
353 initRet = LL_USART_Init(g_usartRegMap[uartDevice->uartId - 1], initTypedef); in InitUartDevice()
[all …]
Duart_bes.c427 struct UartDevice *uartDevice = NULL; in InitUartDevice() local
436 uartDevice = (struct UartDevice *)host->priv; in InitUartDevice()
437 resource = &uartDevice->resource; in InitUartDevice()
442 uartCfg = &uartDevice->config; in InitUartDevice()
457 if (!uartDevice->initFlag) { in InitUartDevice()
458 HDF_LOGE("uart %ld device init\r\n", uartDevice->uartId); in InitUartDevice()
459 HalSetUartIomux(uartDevice->uartId); in InitUartDevice()
460 UartStart(uartDevice); in InitUartDevice()
461 uartDevice->initFlag = true; in InitUartDevice()
569 struct UartDevice *uartDevice = NULL; local
[all …]
/drivers/hdf_core/framework/sample/platform/uart/src/
Duart_sample.c236 struct UartDevice *uartDevice = NULL; in AttachUartDevice() local
241 uartDevice = (struct UartDevice *)OsalMemCalloc(sizeof(struct UartDevice)); in AttachUartDevice()
242 if (uartDevice == NULL) { in AttachUartDevice()
246 ret = GetUartDeviceResource(uartDevice, device->property); in AttachUartDevice()
248 (void)OsalMemFree(uartDevice); in AttachUartDevice()
251 host->num = uartDevice->resource.num; in AttachUartDevice()
252 host->priv = uartDevice; in AttachUartDevice()
254 return InitUartDevice(uartDevice); in AttachUartDevice()
270 struct UartDevice *uartDevice = NULL; in DetachUartDevice() local
276 uartDevice = host->priv; in DetachUartDevice()
[all …]
Duart_dispatch_sample.c53 struct UartDevice *uartDevice = (struct UartDevice *)uartHost->priv; in SampleDispatch() local
54 if (uartDevice == NULL) { in SampleDispatch()
60 result = SampleDispatchWrite(uartDevice, data); in SampleDispatch()