Home
last modified time | relevance | path

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

/hal_rpi_pico-latest/src/rp2_common/hardware_uart/
Duart.c68 hw_set_bits(&uart_get_hw(uart)->lcr_h, UART_UARTLCR_H_FEN_BITS); in uart_init()
73 hw_write_masked(&uart_get_hw(uart)->lcr_h, in uart_init()
85 uart_get_hw(uart)->cr = UART_UARTCR_UARTEN_BITS | UART_UARTCR_TXE_BITS | UART_UARTCR_RXE_BITS; in uart_init()
88 uart_get_hw(uart)->dmacr = UART_UARTDMACR_TXDMAE_BITS | UART_UARTDMACR_RXDMAE_BITS; in uart_init()
121 uint32_t cr_save = uart_get_hw(uart)->cr; in uart_disable_before_lcr_write()
124 hw_clear_bits(&uart_get_hw(uart)->cr, in uart_disable_before_lcr_write()
127 uint32_t current_ibrd = uart_get_hw(uart)->ibrd; in uart_disable_before_lcr_write()
128 uint32_t current_fbrd = uart_get_hw(uart)->fbrd; in uart_disable_before_lcr_write()
149 hw_write_masked(&uart_get_hw(uart)->lcr_h, values, write_mask); in uart_write_lcr_bits_masked()
151 uart_get_hw(uart)->cr = cr_save; in uart_write_lcr_bits_masked()
[all …]
/hal_rpi_pico-latest/src/rp2_common/hardware_uart/include/hardware/
Duart.h243 static inline uart_hw_t *uart_get_hw(uart_inst_t *uart) { in uart_get_hw() function
322 hw_write_masked(&uart_get_hw(uart)->cr, in uart_set_hw_flow()
365 uart_get_hw(uart)->imsc = (bool_to_bit(tx_needs_data) << UART_UARTIMSC_TXIM_LSB) | in uart_set_irqs_enabled()
370 hw_write_masked(&uart_get_hw(uart)->ifls, 0 << UART_UARTIFLS_RXIFLSEL_LSB, in uart_set_irqs_enabled()
375 hw_write_masked(&uart_get_hw(uart)->ifls, 0 << UART_UARTIFLS_TXIFLSEL_LSB, in uart_set_irqs_enabled()
392 return uart_get_hw(uart)->cr & UART_UARTCR_UARTEN_BITS; in uart_is_enabled()
423 return !(uart_get_hw(uart)->fr & UART_UARTFR_TXFF_BITS); in uart_is_writable()
432 while (uart_get_hw(uart)->fr & UART_UARTFR_BUSY_BITS) tight_loop_contents(); in uart_tx_wait_blocking()
444 return !(uart_get_hw(uart)->fr & UART_UARTFR_RXFE_BITS); in uart_is_readable()
463 uart_get_hw(uart)->dr = *src++; in uart_write_blocking()
[all …]