Home
last modified time | relevance | path

Searched refs:baudrate (Results 1 – 7 of 7) sorted by relevance

/hal_rpi_pico-3.4.0/src/rp2_common/hardware_uart/
Duart.c39 uint uart_init(uart_inst_t *uart, uint baudrate) { in uart_init() argument
53 uint baud = uart_set_baudrate(uart, baudrate); in uart_init()
73 uint uart_set_baudrate(uart_inst_t *uart, uint baudrate) { in uart_set_baudrate() argument
74 invalid_params_if(UART, baudrate == 0); in uart_set_baudrate()
75 uint32_t baud_rate_div = (8 * clock_get_hz(clk_peri) / baudrate); in uart_set_baudrate()
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_spi/
Dspi.c21 uint spi_init(spi_inst_t *spi, uint baudrate) { in spi_init() argument
25 uint baud = spi_set_baudrate(spi, baudrate); in spi_init()
41 uint spi_set_baudrate(spi_inst_t *spi, uint baudrate) { in spi_set_baudrate() argument
44 invalid_params_if(SPI, baudrate > freq_in); in spi_set_baudrate()
49 if (freq_in < (prescale + 2) * 256 * (uint64_t) baudrate) in spi_set_baudrate()
57 if (freq_in / (prescale * (postdiv - 1)) > baudrate) in spi_set_baudrate()
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_i2c/
Di2c.c34 uint i2c_init(i2c_inst_t *i2c, uint baudrate) { in i2c_init() argument
57 return i2c_set_baudrate(i2c, baudrate); in i2c_init()
64 uint i2c_set_baudrate(i2c_inst_t *i2c, uint baudrate) { in i2c_set_baudrate() argument
65 invalid_params_if(I2C, baudrate == 0); in i2c_set_baudrate()
70 uint period = (freq_in + baudrate / 2) / baudrate; in i2c_set_baudrate()
84 if (baudrate < 1000000) { in i2c_set_baudrate()
/hal_rpi_pico-3.4.0/src/host/hardware_uart/include/hardware/
Duart.h37 uint uart_init(uart_inst_t *uart, uint baudrate);
44 uint uart_set_baudrate(uart_inst_t *uart, uint baudrate);
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_spi/include/hardware/
Dspi.h112 uint spi_init(spi_inst_t *spi, uint baudrate);
133 uint spi_set_baudrate(spi_inst_t *spi, uint baudrate);
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_i2c/include/hardware/
Di2c.h98 uint i2c_init(i2c_inst_t *i2c, uint baudrate);
121 uint i2c_set_baudrate(i2c_inst_t *i2c, uint baudrate);
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_uart/include/hardware/
Duart.h141 uint uart_init(uart_inst_t *uart, uint baudrate);
162 uint uart_set_baudrate(uart_inst_t *uart, uint baudrate);