Home
last modified time | relevance | path

Searched refs:get_uart (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/drivers/serial/
Duart_pl011.c83 get_uart(dev)->cr |= PL011_CR_UARTEN; in pl011_enable()
88 get_uart(dev)->cr &= ~PL011_CR_UARTEN; in pl011_disable()
93 get_uart(dev)->lcr_h |= PL011_LCRH_FEN; in pl011_enable_fifo()
98 get_uart(dev)->lcr_h &= ~PL011_LCRH_FEN; in pl011_disable_fifo()
104 get_uart(dev)->cr |= PL011_CR_RTSEn; in pl011_set_flow_control()
106 get_uart(dev)->cr &= ~PL011_CR_RTSEn; in pl011_set_flow_control()
109 get_uart(dev)->cr |= PL011_CR_CTSEn; in pl011_set_flow_control()
111 get_uart(dev)->cr &= ~PL011_CR_CTSEn; in pl011_set_flow_control()
131 get_uart(dev)->ibrd = bauddiv >> PL011_FBRD_WIDTH; in pl011_set_baudrate()
132 get_uart(dev)->fbrd = bauddiv & ((1u << PL011_FBRD_WIDTH) - 1u); in pl011_set_baudrate()
[all …]
Duart_pl011_ambiq.h22 get_uart(dev)->cr |= PL011_CR_AMBIQ_CLKEN; in pl011_ambiq_enable_clk()
46 get_uart(dev)->cr |= FIELD_PREP(PL011_CR_AMBIQ_CLKSEL, clksel); in pl011_ambiq_clk_set()
79 uint32_t ui32Module = ((uint32_t)get_uart(dev) == UART0_BASE) ? 0 : 1; in uart_ambiq_pm_action()
124 while ((get_uart(dev)->fr & PL011_FR_BUSY) != 0) in uart_ambiq_pm_action()
Duart_pl011_registers.h40 volatile struct pl011_regs *get_uart(const struct device *dev) in get_uart() function