diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-09-12 16:38:02 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-09-12 16:38:02 +0000 |
commit | a6e1246c64f2ae761fb7ee0454bd7f4ff38cfa1a (patch) | |
tree | 59ced97c5a10676e36a0a01d48fe7a5025f6ff45 /nuttx/drivers/mtd/at45db.c | |
parent | bcce5d2a1a51cafc0dad764e0f84781eee930a5d (diff) | |
download | px4-nuttx-a6e1246c64f2ae761fb7ee0454bd7f4ff38cfa1a.tar.gz px4-nuttx-a6e1246c64f2ae761fb7ee0454bd7f4ff38cfa1a.tar.bz2 px4-nuttx-a6e1246c64f2ae761fb7ee0454bd7f4ff38cfa1a.zip |
Still debugging AT45DB and SPI
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2944 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/mtd/at45db.c')
-rw-r--r-- | nuttx/drivers/mtd/at45db.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nuttx/drivers/mtd/at45db.c b/nuttx/drivers/mtd/at45db.c index d090a1b85..28f9abc74 100644 --- a/nuttx/drivers/mtd/at45db.c +++ b/nuttx/drivers/mtd/at45db.c @@ -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 ************************************************************************************/ |