fix(driver_spi): master set idle pin level for all data pin

This commit is contained in:
wanckl
2026-03-11 10:14:12 +08:00
committed by morris
parent 5213197284
commit 1a86c86702
13 changed files with 69 additions and 46 deletions
+2 -2
View File
@@ -39,11 +39,11 @@ void spi_hal_init(spi_hal_context_t *hal, uint32_t host_id)
spi_ll_apply_config(hw);
}
void spi_hal_config_io_default_level(spi_hal_context_t *hal, bool level)
void spi_hal_set_data_pin_idle_level(spi_hal_context_t *hal, bool level)
{
#if SPI_LL_MOSI_FREE_LEVEL
// Config default output data line level when don't have transaction
spi_ll_set_mosi_free_level(hal->hw, level);
spi_ll_set_data_pin_idle_level(hal->hw, level);
spi_ll_apply_config(hal->hw);
#endif
}