espressif/spi: fix missing SPI setup
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
parent
3636495f39
commit
e2e0706009
|
@ -752,6 +752,7 @@ static uint32_t esp_spi_poll_send(struct esp_spi_priv_s *priv, uint32_t wd)
|
|||
|
||||
spi_ll_set_mosi_bitlen(priv->ctx->hw, priv->nbits);
|
||||
spi_hal_prepare_data(priv->ctx, priv->dev_cfg, &trans);
|
||||
spi_hal_setup_trans(priv->ctx, priv->dev_cfg, &trans);
|
||||
spi_hal_user_start(priv->ctx);
|
||||
|
||||
while (!spi_hal_usr_is_done(priv->ctx));
|
||||
|
|
Loading…
Reference in New Issue