spi_flash: fix the issue that ext flash hold is not controlled properly

This commit is contained in:
Cao Sen Miao
2021-02-04 14:37:07 +08:00
parent cc1c6c30be
commit e38326d715
2 changed files with 5 additions and 5 deletions

View File

@@ -148,6 +148,7 @@ static inline void gpspi_flash_ll_set_buffer_data(spi_dev_t *dev, const void *bu
*/
static inline void gpspi_flash_ll_user_start(spi_dev_t *dev)
{
dev->ctrl.hold_pol = 1;
dev->cmd.update = 1;
while (dev->cmd.update);
dev->cmd.usr = 1;