Searched refs:uart_get_hw (Results 1 – 2 of 2) sorted by relevance
111 static inline uart_hw_t *uart_get_hw(uart_inst_t *uart) { in uart_get_hw() function190 hw_write_masked(&uart_get_hw(uart)->cr, in uart_set_hw_flow()233 uart_get_hw(uart)->imsc = (bool_to_bit(tx_needs_data) << UART_UARTIMSC_TXIM_LSB) | in uart_set_irq_enables()238 hw_write_masked(&uart_get_hw(uart)->ifls, 0 << UART_UARTIFLS_RXIFLSEL_LSB, in uart_set_irq_enables()243 hw_write_masked(&uart_get_hw(uart)->ifls, 0 << UART_UARTIFLS_TXIFLSEL_LSB, in uart_set_irq_enables()255 return !!(uart_get_hw(uart)->cr & UART_UARTCR_UARTEN_BITS); in uart_is_enabled()286 return !(uart_get_hw(uart)->fr & UART_UARTFR_TXFF_BITS); in uart_is_writable()295 while (uart_get_hw(uart)->fr & UART_UARTFR_BUSY_BITS) tight_loop_contents(); in uart_tx_wait_blocking()307 return !(uart_get_hw(uart)->fr & UART_UARTFR_RXFE_BITS); in uart_is_readable()323 uart_get_hw(uart)->dr = *src++; in uart_write_blocking()[all …]
58 hw_set_bits(&uart_get_hw(uart)->lcr_h, UART_UARTLCR_H_FEN_BITS); in uart_init()60 uart_get_hw(uart)->cr = UART_UARTCR_UARTEN_BITS | UART_UARTCR_TXE_BITS | UART_UARTCR_RXE_BITS; in uart_init()62 uart_get_hw(uart)->dmacr = UART_UARTDMACR_TXDMAE_BITS | UART_UARTDMACR_RXDMAE_BITS; in uart_init()94 uint32_t cr_save = uart_get_hw(uart)->cr; in uart_disable_before_lcr_write()97 hw_clear_bits(&uart_get_hw(uart)->cr, in uart_disable_before_lcr_write()100 uint32_t current_ibrd = uart_get_hw(uart)->ibrd; in uart_disable_before_lcr_write()101 uint32_t current_fbrd = uart_get_hw(uart)->fbrd; in uart_disable_before_lcr_write()122 hw_write_masked(&uart_get_hw(uart)->lcr_h, values, write_mask); in uart_write_lcr_bits_masked()124 uart_get_hw(uart)->cr = cr_save; in uart_write_lcr_bits_masked()144 uart_get_hw(uart)->ibrd = baud_ibrd; in uart_set_baudrate()[all …]
Completed in 6 milliseconds