mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 13:55:15 +00:00
espressif/spi: fix missing SPI setup
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
parent
3636495f39
commit
e2e0706009
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue