mirror of
https://github.com/apache/nuttx.git
synced 2026-10-18 11:39:00 +00:00
SST25 driver: Added one more use of sst25_cmd. From David Sidrane
This commit is contained in:
parent
fd7126771f
commit
bfdee0f0c7
1 changed files with 1 additions and 8 deletions
|
|
@ -561,17 +561,10 @@ static inline int sst25_chiperase(struct sst25_dev_s *priv)
|
|||
|
||||
sst25_wren(priv);
|
||||
|
||||
/* Select this FLASH part */
|
||||
|
||||
SPI_SELECT(priv->dev, SPIDEV_FLASH, true);
|
||||
|
||||
/* Send the "Chip Erase (CE)" instruction */
|
||||
|
||||
(void)SPI_SEND(priv->dev, SST25_CE);
|
||||
sst25_cmd(priv, SST25_CE);
|
||||
|
||||
/* Deselect the FLASH */
|
||||
|
||||
SPI_SELECT(priv->dev, SPIDEV_FLASH, false);
|
||||
fvdbg("Return: OK\n");
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue