diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-02 16:45:04 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-02 16:45:04 +0000 |
commit | c25624bb52317ce91a488a4e86cfa9984dcb406d (patch) | |
tree | 8abecc32e9bf05dc6c173de957835f66468674cd /nuttx/configs/teensy/src | |
parent | cdd11552fc1366a0280fe01bfef875344a967b1c (diff) | |
download | px4-nuttx-c25624bb52317ce91a488a4e86cfa9984dcb406d.tar.gz px4-nuttx-c25624bb52317ce91a488a4e86cfa9984dcb406d.tar.bz2 px4-nuttx-c25624bb52317ce91a488a4e86cfa9984dcb406d.zip |
Fix SPI SD card detect logic; Fix AVR USB device interrupt initialization
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3740 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/teensy/src')
-rwxr-xr-x | nuttx/configs/teensy/src/up_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/configs/teensy/src/up_spi.c b/nuttx/configs/teensy/src/up_spi.c index 8baacc05f..2ef0908f2 100755 --- a/nuttx/configs/teensy/src/up_spi.c +++ b/nuttx/configs/teensy/src/up_spi.c @@ -179,7 +179,7 @@ void avr_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool select uint8_t avr_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
{
uint8_t ret = 0;
- uint8_t regval = PORTB;
+ uint8_t regval = PINB;
/* Both the CD and WP pins are pull high by the AT90USB and will be
* grounded it a card is inserted or write protected.
|