summaryrefslogtreecommitdiff
path: root/nuttx/configs/teensy/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-07-02 16:45:04 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-07-02 16:45:04 +0000
commitc25624bb52317ce91a488a4e86cfa9984dcb406d (patch)
tree8abecc32e9bf05dc6c173de957835f66468674cd /nuttx/configs/teensy/src
parentcdd11552fc1366a0280fe01bfef875344a967b1c (diff)
downloadpx4-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-xnuttx/configs/teensy/src/up_spi.c2
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.