Home
last modified time | relevance | path

Searched refs:uart (Results 1 – 17 of 17) sorted by relevance

/hal_rpi_pico-latest/src/rp2_common/hardware_uart/include/hardware/
Duart.h98 #define PICO_DEFAULT_UART_INSTANCE() (__CONCAT(uart,PICO_DEFAULT_UART))
122 #define UART_NUM(uart) ((uart) == uart1) argument
152 #define UART_DREQ_NUM(uart, is_tx) ({ \ argument
153 DREQ_UART0_TX + UART_NUM(uart) * 2 + !(is_tx); \
166 #define UART_CLOCK_NUM(uart) clk_peri argument
179 #define UART_FUNCSEL_NUM(uart, gpio) GPIO_FUNC_UART argument
181 #define UART_FUNCSEL_NUM(uart, gpio) ((gpio) & 0x2 ? GPIO_FUNC_UART_AUX : GPIO_FUNC_UART) argument
196 #define UART_IRQ_NUM(uart) (UART0_IRQ + UART_NUM(uart)) argument
209 #define UART_RESET_NUM(uart) (uart_get_index(uart) ? RESET_UART1 : RESET_UART0) argument
218 static inline uint uart_get_index(uart_inst_t *uart) { in uart_get_index() argument
[all …]
/hal_rpi_pico-latest/src/rp2_common/hardware_uart/
Duart.c32 static inline void uart_reset(uart_inst_t *uart) { in uart_reset() argument
33 reset_block_num(uart_get_reset_num(uart)); in uart_reset()
36 static inline void uart_unreset(uart_inst_t *uart) { in uart_unreset() argument
37 unreset_block_num_wait_blocking(uart_get_reset_num(uart)); in uart_unreset()
42 uint uart_init(uart_inst_t *uart, uint baudrate) { in uart_init() argument
43 invalid_params_if(HARDWARE_UART, uart != uart0 && uart != uart1); in uart_init()
45 if (uart_clock_get_hz(uart) == 0) { in uart_init()
49 uart_reset(uart); in uart_init()
50 uart_unreset(uart); in uart_init()
53 uart_set_translate_crlf(uart, PICO_UART_DEFAULT_CRLF); in uart_init()
[all …]
DBUILD.bazel14 srcs = ["uart.c"],
15 hdrs = ["include/hardware/uart.h"],
DCMakeLists.txt1 pico_simple_hardware_target(uart)
/hal_rpi_pico-latest/src/host/hardware_uart/include/hardware/
Duart.h42 uint uart_init(uart_inst_t *uart, uint baudrate);
46 void uart_deinit(uart_inst_t *uart);
49 uint uart_set_baudrate(uart_inst_t *uart, uint baudrate);
53 void uart_set_hw_flow(uart_inst_t *uart, bool cts, bool rts);
56 void uart_set_format(uart_inst_t *uart, uint data_bits, uint stop_bits, uart_parity_t parity);
59 void uart_set_irqs_enabled(uart_inst_t *uart, bool rx_has_data, bool tx_needs_data);
66 bool uart_is_writable(uart_inst_t *uart);
70 bool uart_is_readable(uart_inst_t *uart);
73 void uart_write_blocking(uart_inst_t *uart, const uint8_t *src, size_t len);
76 void uart_read_blocking(uart_inst_t *uart, uint8_t *dst, size_t len);
[all …]
/hal_rpi_pico-latest/src/host/hardware_uart/
Duart.c75 uint uart_init(uart_inst_t *uart, uint baud_rate) { in uart_init() argument
80 bool uart_is_writable(uart_inst_t *uart) { in uart_is_writable() argument
86 bool uart_is_readable(uart_inst_t *uart) { in uart_is_readable() argument
91 void uart_write_blocking(uart_inst_t *uart, const uint8_t *src, size_t len) { in uart_write_blocking() argument
93 uart_putc(uart, src[i]); in uart_write_blocking()
98 void uart_read_blocking(uart_inst_t *uart, uint8_t *dst, size_t len) { in uart_read_blocking() argument
100 dst[i] = uart_getc(uart); in uart_read_blocking()
107 void uart_putc(uart_inst_t *uart, char c) { in uart_putc() argument
111 void uart_putc_raw(uart_inst_t *uart, char c) { in uart_putc_raw() argument
115 void uart_puts(uart_inst_t *uart, const char *s) { in uart_puts() argument
[all …]
DBUILD.bazel5 srcs = ["uart.c"],
6 hdrs = ["include/hardware/uart.h"],
DCMakeLists.txt1 pico_simple_hardware_target(uart)
/hal_rpi_pico-latest/src/rp2_common/pico_stdio_uart/
Dstdio_uart.c93 void stdio_uart_init_full(struct uart_inst *uart, uint baud_rate, int tx_pin, int rx_pin) { in stdio_uart_init_full() argument
94 uart_instance = uart; in stdio_uart_init_full()
95 if (tx_pin >= 0) gpio_set_function((uint)tx_pin, UART_FUNCSEL_NUM(uart, tx_pin)); in stdio_uart_init_full()
96 if (rx_pin >= 0) gpio_set_function((uint)rx_pin, UART_FUNCSEL_NUM(uart, rx_pin)); in stdio_uart_init_full()
127 void stdio_uart_deinit_full(struct uart_inst *uart, int tx_pin, int rx_pin) { in stdio_uart_deinit_full() argument
128 uart_instance = uart; in stdio_uart_deinit_full()
/hal_rpi_pico-latest/src/rp2_common/pico_stdio_uart/include/pico/
Dstdio_uart.h69 void stdio_uart_init_full(uart_inst_t *uart, uint baud_rate, int tx_pin, int rx_pin);
102 void stdio_uart_deinit_full(uart_inst_t *uart, int tx_pin, int rx_pin);
/hal_rpi_pico-latest/src/rp2350/hardware_structs/include/hardware/structs/
Daccessctrl.h308 io_rw_32 uart[2];
/hal_rpi_pico-latest/src/rp2040/hardware_regs/
DBUILD.bazel50 "include/hardware/regs/uart.h",
/hal_rpi_pico-latest/src/rp2040/hardware_structs/
DBUILD.bazel48 "include/hardware/structs/uart.h",
/hal_rpi_pico-latest/test/pico_divider_test/
Dpico_divider_nesting_test.c253 #warning test/pico_divider requires a default uart in main()
Dpico_divider_test.c342 #warning test/pico_divider requires a default uart in main()
/hal_rpi_pico-latest/src/rp2350/hardware_structs/
DBUILD.bazel61 "include/hardware/structs/uart.h",
/hal_rpi_pico-latest/src/rp2350/hardware_regs/
DBUILD.bazel84 "include/hardware/regs/uart.h",