Searched refs:sm_config (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/drivers/serial/ |
D | uart_rpi_pico_pio.c | 59 pio_sm_config sm_config; in pio_uart_tx_init() local 66 sm_config = pio_get_default_sm_config(); in pio_uart_tx_init() 68 sm_config_set_sideset(&sm_config, SIDESET_BIT_COUNT, true, false); in pio_uart_tx_init() 69 sm_config_set_out_shift(&sm_config, true, false, 0); in pio_uart_tx_init() 70 sm_config_set_out_pins(&sm_config, tx_pin, 1); in pio_uart_tx_init() 71 sm_config_set_sideset_pins(&sm_config, tx_pin); in pio_uart_tx_init() 72 sm_config_set_fifo_join(&sm_config, PIO_FIFO_JOIN_TX); in pio_uart_tx_init() 73 sm_config_set_clkdiv(&sm_config, div); in pio_uart_tx_init() 74 sm_config_set_wrap(&sm_config, in pio_uart_tx_init() 80 pio_sm_init(pio, sm, offset, &sm_config); in pio_uart_tx_init() [all …]
|
/Zephyr-latest/drivers/led_strip/ |
D | ws2812_rpi_pico_pio.c | 45 pio_sm_config sm_config = pio_get_default_sm_config(); in ws2812_led_strip_sm_init() local 56 sm_config_set_sideset(&sm_config, 1, false, false); in ws2812_led_strip_sm_init() 57 sm_config_set_sideset_pins(&sm_config, config->gpio_pin); in ws2812_led_strip_sm_init() 58 sm_config_set_out_shift(&sm_config, false, true, (config->num_colors == 4 ? 32 : 24)); in ws2812_led_strip_sm_init() 59 sm_config_set_fifo_join(&sm_config, PIO_FIFO_JOIN_TX); in ws2812_led_strip_sm_init() 60 sm_config_set_clkdiv(&sm_config, clkdiv); in ws2812_led_strip_sm_init() 62 pio_sm_init(pio, sm, -1, &sm_config); in ws2812_led_strip_sm_init()
|
/Zephyr-latest/drivers/spi/ |
D | spi_rpi_pico_pio.c | 203 pio_sm_config sm_config; in spi_pico_pio_configure() local 319 sm_config = pio_get_default_sm_config(); in spi_pico_pio_configure() 321 sm_config_set_clkdiv(&sm_config, clock_div); in spi_pico_pio_configure() 322 sm_config_set_in_pins(&sm_config, sio->pin); in spi_pico_pio_configure() 323 sm_config_set_in_shift(&sm_config, lsb, true, data->bits); in spi_pico_pio_configure() 324 sm_config_set_out_pins(&sm_config, sio->pin, 1); in spi_pico_pio_configure() 325 sm_config_set_out_shift(&sm_config, lsb, false, data->bits); in spi_pico_pio_configure() 328 sm_config_set_sideset_pins(&sm_config, clk->pin); in spi_pico_pio_configure() 329 sm_config_set_sideset(&sm_config, 1, false, false); in spi_pico_pio_configure() 331 &sm_config, in spi_pico_pio_configure() [all …]
|