feat(driver_spi): support using SPI_DEVICE_STD_TIMING to adjust master rx in standard timing

This commit is contained in:
wanckl
2024-12-25 22:10:57 +08:00
parent cb1cf073ae
commit caf0d04a31
17 changed files with 240 additions and 12 deletions

View File

@@ -37,6 +37,7 @@ void spi_hal_setup_device(spi_hal_context_t *hal, const spi_hal_dev_config_t *de
#endif
spi_ll_master_set_pos_cs(hw, dev->cs_pin_id, dev->positive_cs);
spi_ll_master_set_clock_by_reg(hw, &dev->timing_conf.clock_reg);
spi_ll_master_set_rx_timing_mode(hw, dev->timing_conf.rx_sample_point);
spi_ll_set_clk_source(hw, dev->timing_conf.clock_source);
//Configure bit order
spi_ll_set_rx_lsbfirst(hw, dev->rx_lsbfirst);