Home
last modified time | relevance | path

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

/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_s1/Native_Driver/
Duart_pl011_drv.c168 static void _uart_pl011_enable(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_enable() argument
170 p_uart->uartcr |= UART_PL011_UARTCR_EN_MASK; in _uart_pl011_enable()
173 static void _uart_pl011_disable(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_disable() argument
175 p_uart->uartcr &= ~UART_PL011_UARTCR_EN_MASK; in _uart_pl011_disable()
178 static bool _uart_pl011_is_enabled(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_is_enabled() argument
180 return (bool)(p_uart->uartcr & UART_PL011_UARTCR_EN_MASK); in _uart_pl011_is_enabled()
183 static void _uart_pl011_enable_fifo(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_enable_fifo() argument
185 p_uart->uartlcr_h |= UART_PL011_UARTLCR_H_FEN_MASK; in _uart_pl011_enable_fifo()
188 static void _uart_pl011_disable_fifo(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_disable_fifo() argument
190 p_uart->uartlcr_h &= ~UART_PL011_UARTLCR_H_FEN_MASK; in _uart_pl011_disable_fifo()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/rss/common/native_drivers/
Duart_pl011_drv.c168 static void _uart_pl011_enable(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_enable() argument
170 p_uart->uartcr |= UART_PL011_UARTCR_EN_MASK; in _uart_pl011_enable()
173 static void _uart_pl011_disable(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_disable() argument
175 p_uart->uartcr &= ~UART_PL011_UARTCR_EN_MASK; in _uart_pl011_disable()
178 static bool _uart_pl011_is_enabled(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_is_enabled() argument
180 return (bool)(p_uart->uartcr & UART_PL011_UARTCR_EN_MASK); in _uart_pl011_is_enabled()
183 static void _uart_pl011_enable_fifo(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_enable_fifo() argument
185 p_uart->uartlcr_h |= UART_PL011_UARTLCR_H_FEN_MASK; in _uart_pl011_enable_fifo()
188 static void _uart_pl011_disable_fifo(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_disable_fifo() argument
190 p_uart->uartlcr_h &= ~UART_PL011_UARTLCR_H_FEN_MASK; in _uart_pl011_disable_fifo()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_b1/Native_Driver/
Duart_pl011_drv.c168 static void _uart_pl011_enable(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_enable() argument
170 p_uart->uartcr |= UART_PL011_UARTCR_EN_MASK; in _uart_pl011_enable()
173 static void _uart_pl011_disable(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_disable() argument
175 p_uart->uartcr &= ~UART_PL011_UARTCR_EN_MASK; in _uart_pl011_disable()
178 static bool _uart_pl011_is_enabled(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_is_enabled() argument
180 return (bool)(p_uart->uartcr & UART_PL011_UARTCR_EN_MASK); in _uart_pl011_is_enabled()
183 static void _uart_pl011_enable_fifo(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_enable_fifo() argument
185 p_uart->uartlcr_h |= UART_PL011_UARTLCR_H_FEN_MASK; in _uart_pl011_enable_fifo()
188 static void _uart_pl011_disable_fifo(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_disable_fifo() argument
190 p_uart->uartlcr_h &= ~UART_PL011_UARTLCR_H_FEN_MASK; in _uart_pl011_disable_fifo()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/corstone1000/Native_Driver/
Duart_pl011_drv.c168 static void _uart_pl011_enable(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_enable() argument
170 p_uart->uartcr |= UART_PL011_UARTCR_EN_MASK; in _uart_pl011_enable()
173 static void _uart_pl011_disable(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_disable() argument
175 p_uart->uartcr &= ~UART_PL011_UARTCR_EN_MASK; in _uart_pl011_disable()
178 static bool _uart_pl011_is_enabled(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_is_enabled() argument
180 return (bool)(p_uart->uartcr & UART_PL011_UARTCR_EN_MASK); in _uart_pl011_is_enabled()
183 static void _uart_pl011_enable_fifo(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_enable_fifo() argument
185 p_uart->uartlcr_h |= UART_PL011_UARTLCR_H_FEN_MASK; in _uart_pl011_enable_fifo()
188 static void _uart_pl011_disable_fifo(struct _uart_pl011_reg_map_t* p_uart) in _uart_pl011_disable_fifo() argument
190 p_uart->uartlcr_h &= ~UART_PL011_UARTLCR_H_FEN_MASK; in _uart_pl011_disable_fifo()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/corstone310/common/native_drivers/
Duart_cmsdk_drv.c42 struct uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_init() local
53 p_uart->bauddiv = (dev->data->system_clk / dev->cfg->default_baudrate); in uart_cmsdk_init()
56 p_uart->ctrl = UART_CMSDK_RX_EN | UART_CMSDK_TX_EN; in uart_cmsdk_init()
67 struct uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_set_baudrate() local
87 p_uart->bauddiv = bauddiv; in uart_cmsdk_set_baudrate()
100 struct uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_set_clock() local
115 p_uart->bauddiv = (dev->data->system_clk / dev->data->baudrate); in uart_cmsdk_set_clock()
124 struct uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_read() local
127 if(!(p_uart->state & UART_CMSDK_RX_BF)) { in uart_cmsdk_read()
132 *byte = (uint8_t)p_uart->data; in uart_cmsdk_read()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/an552/native_drivers/
Duart_cmsdk_drv.c59 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_init() local
70 p_uart->bauddiv = (dev->data->system_clk / dev->cfg->default_baudrate); in uart_cmsdk_init()
73 p_uart->ctrl = UART_CMSDK_RX_EN | UART_CMSDK_TX_EN; in uart_cmsdk_init()
84 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_set_baudrate() local
104 p_uart->bauddiv = bauddiv; in uart_cmsdk_set_baudrate()
117 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_set_clock() local
132 p_uart->bauddiv = (dev->data->system_clk / dev->data->baudrate); in uart_cmsdk_set_clock()
141 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_read() local
144 if(!(p_uart->state & UART_CMSDK_RX_BF)) { in uart_cmsdk_read()
149 *byte = (uint8_t)p_uart->data; in uart_cmsdk_read()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps2/an519/native_drivers/
Darm_uart_drv.c56 struct _arm_uart_reg_map_t* p_uart = in arm_uart_init() local
67 p_uart->bauddiv = (dev->data->system_clk / dev->cfg->default_baudrate); in arm_uart_init()
70 p_uart->ctrl = ARM_UART_RX_EN | ARM_UART_TX_EN; in arm_uart_init()
81 struct _arm_uart_reg_map_t* p_uart = in arm_uart_set_baudrate() local
101 p_uart->bauddiv = bauddiv; in arm_uart_set_baudrate()
114 struct _arm_uart_reg_map_t* p_uart = in arm_uart_set_clock() local
129 p_uart->bauddiv = (dev->data->system_clk / dev->data->baudrate); in arm_uart_set_clock()
137 struct _arm_uart_reg_map_t* p_uart = in arm_uart_read() local
140 if(!(p_uart->state & ARM_UART_RX_BF)) { in arm_uart_read()
145 *byte = (uint8_t)p_uart->data; in arm_uart_read()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps2/an521/native_drivers/
Darm_uart_drv.c56 struct _arm_uart_reg_map_t* p_uart = in arm_uart_init() local
67 p_uart->bauddiv = (dev->data->system_clk / dev->cfg->default_baudrate); in arm_uart_init()
70 p_uart->ctrl = ARM_UART_RX_EN | ARM_UART_TX_EN; in arm_uart_init()
81 struct _arm_uart_reg_map_t* p_uart = in arm_uart_set_baudrate() local
101 p_uart->bauddiv = bauddiv; in arm_uart_set_baudrate()
114 struct _arm_uart_reg_map_t* p_uart = in arm_uart_set_clock() local
129 p_uart->bauddiv = (dev->data->system_clk / dev->data->baudrate); in arm_uart_set_clock()
137 struct _arm_uart_reg_map_t* p_uart = in arm_uart_read() local
140 if(!(p_uart->state & ARM_UART_RX_BF)) { in arm_uart_read()
145 *byte = (uint8_t)p_uart->data; in arm_uart_read()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/an524/native_drivers/
Duart_cmsdk_drv.c59 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_init() local
70 p_uart->bauddiv = (dev->data->system_clk / dev->cfg->default_baudrate); in uart_cmsdk_init()
73 p_uart->ctrl = UART_CMSDK_RX_EN | UART_CMSDK_TX_EN; in uart_cmsdk_init()
84 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_set_baudrate() local
104 p_uart->bauddiv = bauddiv; in uart_cmsdk_set_baudrate()
117 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_set_clock() local
132 p_uart->bauddiv = (dev->data->system_clk / dev->data->baudrate); in uart_cmsdk_set_clock()
141 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_read() local
144 if(!(p_uart->state & UART_CMSDK_RX_BF)) { in uart_cmsdk_read()
149 *byte = (uint8_t)p_uart->data; in uart_cmsdk_read()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/an547/native_drivers/
Duart_cmsdk_drv.c59 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_init() local
70 p_uart->bauddiv = (dev->data->system_clk / dev->cfg->default_baudrate); in uart_cmsdk_init()
73 p_uart->ctrl = UART_CMSDK_RX_EN | UART_CMSDK_TX_EN; in uart_cmsdk_init()
84 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_set_baudrate() local
104 p_uart->bauddiv = bauddiv; in uart_cmsdk_set_baudrate()
117 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_set_clock() local
132 p_uart->bauddiv = (dev->data->system_clk / dev->data->baudrate); in uart_cmsdk_set_clock()
141 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_read() local
144 if(!(p_uart->state & UART_CMSDK_RX_BF)) { in uart_cmsdk_read()
149 *byte = (uint8_t)p_uart->data; in uart_cmsdk_read()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/common/native_drivers/
Darm_uart_drv.c56 struct _arm_uart_reg_map_t* p_uart = in arm_uart_init() local
67 p_uart->bauddiv = (dev->data->system_clk / dev->cfg->default_baudrate); in arm_uart_init()
70 p_uart->ctrl = ARM_UART_RX_EN | ARM_UART_TX_EN; in arm_uart_init()
81 struct _arm_uart_reg_map_t* p_uart = in arm_uart_set_baudrate() local
101 p_uart->bauddiv = bauddiv; in arm_uart_set_baudrate()
114 struct _arm_uart_reg_map_t* p_uart = in arm_uart_set_clock() local
129 p_uart->bauddiv = (dev->data->system_clk / dev->data->baudrate); in arm_uart_set_clock()
137 struct _arm_uart_reg_map_t* p_uart = in arm_uart_read() local
140 if(!(p_uart->state & ARM_UART_RX_BF)) { in arm_uart_read()
145 *byte = (uint8_t)p_uart->data; in arm_uart_read()
[all …]
Duart_cmsdk_drv.c59 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_init() local
70 p_uart->bauddiv = (dev->data->system_clk / dev->cfg->default_baudrate); in uart_cmsdk_init()
73 p_uart->ctrl = UART_CMSDK_RX_EN | UART_CMSDK_TX_EN; in uart_cmsdk_init()
84 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_set_baudrate() local
104 p_uart->bauddiv = bauddiv; in uart_cmsdk_set_baudrate()
117 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_set_clock() local
132 p_uart->bauddiv = (dev->data->system_clk / dev->data->baudrate); in uart_cmsdk_set_clock()
141 struct _uart_cmsdk_reg_map_t* p_uart = in uart_cmsdk_read() local
144 if(!(p_uart->state & UART_CMSDK_RX_BF)) { in uart_cmsdk_read()
149 *byte = (uint8_t)p_uart->data; in uart_cmsdk_read()
[all …]