mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Still debugging AT45DB and SPI
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2944 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -261,7 +261,7 @@ static void at45db_lock(struct at45db_dev_s *priv)
|
||||
* state.
|
||||
*/
|
||||
|
||||
SPI_SETMODE(priv->spi, SPIDEV_MODE3);
|
||||
SPI_SETMODE(priv->spi, SPIDEV_MODE0);
|
||||
SPI_SETBITS(priv->spi, 8);
|
||||
(void)SPI_SETFREQUENCY(priv->spi, CONFIG_AT45DB_FREQUENCY);
|
||||
}
|
||||
@@ -275,7 +275,6 @@ static inline void at45db_unlock(struct at45db_dev_s *priv)
|
||||
(void)SPI_LOCK(priv->spi, false);
|
||||
}
|
||||
|
||||
|
||||
/************************************************************************************
|
||||
* Name: at45db_pwrdown
|
||||
************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user