Home
last modified time | relevance | path

Searched refs:uart_dev (Results 1 – 12 of 12) sorted by relevance

/trusted-firmware-m-3.4.0/platform/ext/target/arm/rss/common/cmsis_drivers/
DDriver_USART.c82 static int32_t ARM_USARTx_Initialize(UARTx_Resources* uart_dev) in ARM_USARTx_Initialize() argument
85 uart_pl011_init(uart_dev->dev, PeripheralClock); in ARM_USARTx_Initialize()
87 uart_pl011_enable(uart_dev->dev); in ARM_USARTx_Initialize()
92 static int32_t ARM_USARTx_Uninitialize(UARTx_Resources* uart_dev) in ARM_USARTx_Uninitialize() argument
95 uart_pl011_uninit(uart_dev->dev); in ARM_USARTx_Uninitialize()
100 static int32_t ARM_USARTx_PowerControl(UARTx_Resources* uart_dev, in ARM_USARTx_PowerControl() argument
103 ARG_UNUSED(uart_dev); in ARM_USARTx_PowerControl()
117 static int32_t ARM_USARTx_Send(UARTx_Resources* uart_dev, const void *data, in ARM_USARTx_Send() argument
128 uart_dev->tx_nbr_bytes = 0; in ARM_USARTx_Send()
130 while(uart_dev->tx_nbr_bytes != num) { in ARM_USARTx_Send()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/corstone1000/CMSIS_Driver/
DDriver_USART.c82 static int32_t ARM_USARTx_Initialize(UARTx_Resources* uart_dev) in ARM_USARTx_Initialize() argument
85 uart_pl011_init(uart_dev->dev, PeripheralClock); in ARM_USARTx_Initialize()
87 uart_pl011_enable(uart_dev->dev); in ARM_USARTx_Initialize()
92 static int32_t ARM_USARTx_Uninitialize(UARTx_Resources* uart_dev) in ARM_USARTx_Uninitialize() argument
95 uart_pl011_uninit(uart_dev->dev); in ARM_USARTx_Uninitialize()
100 static int32_t ARM_USARTx_PowerControl(UARTx_Resources* uart_dev, in ARM_USARTx_PowerControl() argument
103 ARG_UNUSED(uart_dev); in ARM_USARTx_PowerControl()
117 static int32_t ARM_USARTx_Send(UARTx_Resources* uart_dev, const void *data, in ARM_USARTx_Send() argument
128 uart_dev->tx_nbr_bytes = 0; in ARM_USARTx_Send()
130 while(uart_dev->tx_nbr_bytes != num) { in ARM_USARTx_Send()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_s1/CMSIS_Driver/
DDriver_USART.c78 static int32_t ARM_USARTx_Initialize(UARTx_Resources* uart_dev) in ARM_USARTx_Initialize() argument
81 uart_pl011_init(uart_dev->dev, PeripheralClock); in ARM_USARTx_Initialize()
83 uart_pl011_enable(uart_dev->dev); in ARM_USARTx_Initialize()
88 static int32_t ARM_USARTx_Uninitialize(UARTx_Resources* uart_dev) in ARM_USARTx_Uninitialize() argument
91 uart_pl011_uninit(uart_dev->dev); in ARM_USARTx_Uninitialize()
96 static int32_t ARM_USARTx_PowerControl(UARTx_Resources* uart_dev, in ARM_USARTx_PowerControl() argument
99 ARG_UNUSED(uart_dev); in ARM_USARTx_PowerControl()
113 static int32_t ARM_USARTx_Send(UARTx_Resources* uart_dev, const void *data, in ARM_USARTx_Send() argument
124 uart_dev->tx_nbr_bytes = 0; in ARM_USARTx_Send()
126 while(uart_dev->tx_nbr_bytes != num) { in ARM_USARTx_Send()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_b1/CMSIS_Driver/
DDriver_USART.c82 static int32_t ARM_USARTx_Initialize(UARTx_Resources* uart_dev) in ARM_USARTx_Initialize() argument
85 uart_pl011_init(uart_dev->dev, PeripheralClock); in ARM_USARTx_Initialize()
87 uart_pl011_enable(uart_dev->dev); in ARM_USARTx_Initialize()
92 static int32_t ARM_USARTx_Uninitialize(UARTx_Resources* uart_dev) in ARM_USARTx_Uninitialize() argument
95 uart_pl011_uninit(uart_dev->dev); in ARM_USARTx_Uninitialize()
100 static int32_t ARM_USARTx_PowerControl(UARTx_Resources* uart_dev, in ARM_USARTx_PowerControl() argument
103 ARG_UNUSED(uart_dev); in ARM_USARTx_PowerControl()
117 static int32_t ARM_USARTx_Send(UARTx_Resources* uart_dev, const void *data, in ARM_USARTx_Send() argument
128 uart_dev->tx_nbr_bytes = 0; in ARM_USARTx_Send()
130 while(uart_dev->tx_nbr_bytes != num) { in ARM_USARTx_Send()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/common/cmsis_drivers/
DDriver_USART.c84 static int32_t ARM_USARTx_Initialize(UARTx_Resources* uart_dev) in ARM_USARTx_Initialize() argument
91 static int32_t ARM_USARTx_PowerControl(UARTx_Resources* uart_dev, in ARM_USARTx_PowerControl() argument
94 ARG_UNUSED(uart_dev); in ARM_USARTx_PowerControl()
110 static int32_t ARM_USARTx_Send(UARTx_Resources* uart_dev, const void *data, in ARM_USARTx_Send() argument
122 uart_dev->tx_nbr_bytes = 0; in ARM_USARTx_Send()
124 while(uart_dev->tx_nbr_bytes != num) in ARM_USARTx_Send()
127 while(uart_dev->dev->FIFOSTS & UART_FIFOSTS_TXFULL_Msk); in ARM_USARTx_Send()
131 uart_dev->dev->DAT = *p_data; in ARM_USARTx_Send()
133 uart_dev->tx_nbr_bytes++; in ARM_USARTx_Send()
138 while((uart_dev->dev->FIFOSTS & UART_FIFOSTS_TXEMPTY_Msk) == 0); in ARM_USARTx_Send()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/cypress/psoc64/CMSIS_Driver/
DDriver_USART.c102 static int32_t ARM_USARTx_Initialize(UARTx_Resources* uart_dev) in ARM_USARTx_Initialize() argument
110 retval = Cy_SCB_UART_Init(uart_dev->base, &config, NULL); in ARM_USARTx_Initialize()
112 Cy_SCB_UART_ClearRxFifo(uart_dev->base); in ARM_USARTx_Initialize()
113 Cy_SCB_UART_ClearTxFifo(uart_dev->base); in ARM_USARTx_Initialize()
116 Cy_SCB_UART_Enable(uart_dev->base); in ARM_USARTx_Initialize()
125 static uint32_t ARM_USARTx_Uninitialize(UARTx_Resources* uart_dev) in ARM_USARTx_Uninitialize() argument
127 Cy_SCB_UART_Disable(uart_dev->base, NULL); in ARM_USARTx_Uninitialize()
129 Cy_SCB_UART_DeInit(uart_dev->base); in ARM_USARTx_Uninitialize()
135 static int32_t ARM_USARTx_PowerControl(UARTx_Resources* uart_dev, in ARM_USARTx_PowerControl() argument
138 ARG_UNUSED(uart_dev); in ARM_USARTx_PowerControl()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/an552/cmsis_drivers/
DDriver_USART.c80 static int32_t ARM_USARTx_Initialize(UARTx_Resources *uart_dev) in ARM_USARTx_Initialize() argument
83 uart_cmsdk_init(uart_dev->dev, PeripheralClock); in ARM_USARTx_Initialize()
88 static int32_t ARM_USARTx_PowerControl(UARTx_Resources *uart_dev, in ARM_USARTx_PowerControl() argument
91 ARG_UNUSED(uart_dev); in ARM_USARTx_PowerControl()
106 static int32_t ARM_USARTx_Send(UARTx_Resources *uart_dev, const void *data, in ARM_USARTx_Send() argument
117 uart_dev->tx_nbr_bytes = 0; in ARM_USARTx_Send()
119 while (uart_dev->tx_nbr_bytes != num) { in ARM_USARTx_Send()
121 while (!uart_cmsdk_tx_ready(uart_dev->dev)) { in ARM_USARTx_Send()
126 (void)uart_cmsdk_write(uart_dev->dev, *p_data); in ARM_USARTx_Send()
128 uart_dev->tx_nbr_bytes++; in ARM_USARTx_Send()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/corstone310/common/cmsis_drivers/
DDriver_USART.c87 static int32_t ARM_USARTx_Initialize(UARTx_Resources *uart_dev) in ARM_USARTx_Initialize() argument
90 uart_cmsdk_init(uart_dev->dev, PeripheralClock); in ARM_USARTx_Initialize()
95 static int32_t ARM_USARTx_PowerControl(UARTx_Resources *uart_dev, in ARM_USARTx_PowerControl() argument
98 ARG_UNUSED(uart_dev); in ARM_USARTx_PowerControl()
113 static int32_t ARM_USARTx_Send(UARTx_Resources *uart_dev, const void *data, in ARM_USARTx_Send() argument
124 uart_dev->tx_nbr_bytes = 0; in ARM_USARTx_Send()
126 while (uart_dev->tx_nbr_bytes != num) { in ARM_USARTx_Send()
128 while (!uart_cmsdk_tx_ready(uart_dev->dev)) { in ARM_USARTx_Send()
133 (void)uart_cmsdk_write(uart_dev->dev, *p_data); in ARM_USARTx_Send()
135 uart_dev->tx_nbr_bytes++; in ARM_USARTx_Send()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps2/an521/cmsis_drivers/
DDriver_USART.c81 static int32_t ARM_USARTx_Initialize(UARTx_Resources* uart_dev) in ARM_USARTx_Initialize() argument
84 arm_uart_init(uart_dev->dev, PeripheralClock); in ARM_USARTx_Initialize()
89 static int32_t ARM_USARTx_PowerControl(UARTx_Resources* uart_dev, in ARM_USARTx_PowerControl() argument
92 ARG_UNUSED(uart_dev); in ARM_USARTx_PowerControl()
107 static int32_t ARM_USARTx_Send(UARTx_Resources* uart_dev, const void *data, in ARM_USARTx_Send() argument
118 uart_dev->tx_nbr_bytes = 0; in ARM_USARTx_Send()
120 while(uart_dev->tx_nbr_bytes != num) { in ARM_USARTx_Send()
122 while(!arm_uart_tx_ready(uart_dev->dev)) {}; in ARM_USARTx_Send()
126 (void)arm_uart_write(uart_dev->dev, *p_data); in ARM_USARTx_Send()
128 uart_dev->tx_nbr_bytes++; in ARM_USARTx_Send()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps2/an519/cmsis_drivers/
DDriver_USART.c81 static int32_t ARM_USARTx_Initialize(UARTx_Resources* uart_dev) in ARM_USARTx_Initialize() argument
84 arm_uart_init(uart_dev->dev, PeripheralClock); in ARM_USARTx_Initialize()
89 static int32_t ARM_USARTx_PowerControl(UARTx_Resources* uart_dev, in ARM_USARTx_PowerControl() argument
92 ARG_UNUSED(uart_dev); in ARM_USARTx_PowerControl()
107 static int32_t ARM_USARTx_Send(UARTx_Resources* uart_dev, const void *data, in ARM_USARTx_Send() argument
118 uart_dev->tx_nbr_bytes = 0; in ARM_USARTx_Send()
120 while(uart_dev->tx_nbr_bytes != num) { in ARM_USARTx_Send()
122 while(!arm_uart_tx_ready(uart_dev->dev)) {}; in ARM_USARTx_Send()
126 (void)arm_uart_write(uart_dev->dev, *p_data); in ARM_USARTx_Send()
128 uart_dev->tx_nbr_bytes++; in ARM_USARTx_Send()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/an547/cmsis_drivers/
DDriver_USART.c80 static int32_t ARM_USARTx_Initialize(UARTx_Resources *uart_dev) in ARM_USARTx_Initialize() argument
83 uart_cmsdk_init(uart_dev->dev, PeripheralClock); in ARM_USARTx_Initialize()
88 static int32_t ARM_USARTx_PowerControl(UARTx_Resources *uart_dev, in ARM_USARTx_PowerControl() argument
91 ARG_UNUSED(uart_dev); in ARM_USARTx_PowerControl()
106 static int32_t ARM_USARTx_Send(UARTx_Resources *uart_dev, const void *data, in ARM_USARTx_Send() argument
117 uart_dev->tx_nbr_bytes = 0; in ARM_USARTx_Send()
119 while (uart_dev->tx_nbr_bytes != num) { in ARM_USARTx_Send()
121 while (!uart_cmsdk_tx_ready(uart_dev->dev)) { in ARM_USARTx_Send()
126 (void)uart_cmsdk_write(uart_dev->dev, *p_data); in ARM_USARTx_Send()
128 uart_dev->tx_nbr_bytes++; in ARM_USARTx_Send()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/an524/cmsis_drivers/
DDriver_USART.c80 static int32_t ARM_USARTx_Initialize(UARTx_Resources *uart_dev) in ARM_USARTx_Initialize() argument
83 uart_cmsdk_init(uart_dev->dev, PeripheralClock); in ARM_USARTx_Initialize()
88 static int32_t ARM_USARTx_PowerControl(UARTx_Resources *uart_dev, in ARM_USARTx_PowerControl() argument
91 ARG_UNUSED(uart_dev); in ARM_USARTx_PowerControl()
106 static int32_t ARM_USARTx_Send(UARTx_Resources *uart_dev, const void *data, in ARM_USARTx_Send() argument
117 uart_dev->tx_nbr_bytes = 0; in ARM_USARTx_Send()
119 while (uart_dev->tx_nbr_bytes != num) { in ARM_USARTx_Send()
121 while (!uart_cmsdk_tx_ready(uart_dev->dev)) { in ARM_USARTx_Send()
126 (void)uart_cmsdk_write(uart_dev->dev, *p_data); in ARM_USARTx_Send()
128 uart_dev->tx_nbr_bytes++; in ARM_USARTx_Send()
[all …]