Lines Matching refs:sm_config

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()
343 pio_sm_init(data->pio, data->pio_sm, data->pio_tx_offset, &sm_config); in spi_pico_pio_configure()
389 sm_config = pio_get_default_sm_config(); in spi_pico_pio_configure()
391 sm_config_set_clkdiv(&sm_config, clock_div); in spi_pico_pio_configure()
392 sm_config_set_in_pins(&sm_config, miso->pin); in spi_pico_pio_configure()
393 sm_config_set_in_shift(&sm_config, lsb, true, data->bits); in spi_pico_pio_configure()
394 sm_config_set_out_pins(&sm_config, mosi->pin, 1); in spi_pico_pio_configure()
395 sm_config_set_out_shift(&sm_config, lsb, true, data->bits); in spi_pico_pio_configure()
396 sm_config_set_sideset_pins(&sm_config, clk->pin); in spi_pico_pio_configure()
397 sm_config_set_sideset(&sm_config, 1, false, false); in spi_pico_pio_configure()
398 sm_config_set_wrap(&sm_config, data->pio_tx_offset + wrap_target, in spi_pico_pio_configure()
411 pio_sm_init(data->pio, data->pio_sm, data->pio_tx_offset, &sm_config); in spi_pico_pio_configure()