diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-07-02 16:45:04 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-07-02 16:45:04 +0000 |
commit | 63a09012e2de6d905cce708c26d2e3f78e6715c2 (patch) | |
tree | 8abecc32e9bf05dc6c173de957835f66468674cd /nuttx/configs/teensy | |
parent | d45523ec1b419f36053f7b66f69543afce7ccbf1 (diff) |
Fix SPI SD card detect logic; Fix AVR USB device interrupt initialization
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3740 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/configs/teensy')
-rw-r--r-- | nuttx/configs/teensy/README.txt | 2 | ||||
-rwxr-xr-x | nuttx/configs/teensy/src/up_spi.c | 2 | ||||
-rwxr-xr-x | nuttx/configs/teensy/usbstorage/defconfig | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/configs/teensy/README.txt b/nuttx/configs/teensy/README.txt index 9a5fa3eed9..5b32e21b35 100644 --- a/nuttx/configs/teensy/README.txt +++ b/nuttx/configs/teensy/README.txt @@ -183,7 +183,7 @@ Teensy SPI Connection -- ---- -- ------------------------- ------- J2 NAME PIN NAME PAD -- ---- -- ------------------------- ------- - 1 VIN -- Connected to USB +RV + 1 VIN -- Connected to USB +5V 2 GND -- Connected to USB GND 3 3V3 -- Not used --- 4 NC -- Not used diff --git a/nuttx/configs/teensy/src/up_spi.c b/nuttx/configs/teensy/src/up_spi.c index 8baacc05fc..2ef0908f2a 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.
diff --git a/nuttx/configs/teensy/usbstorage/defconfig b/nuttx/configs/teensy/usbstorage/defconfig index 7034c66220..591eaf1913 100755 --- a/nuttx/configs/teensy/usbstorage/defconfig +++ b/nuttx/configs/teensy/usbstorage/defconfig @@ -268,9 +268,9 @@ CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 CONFIG_SCHED_INSTRUMENTATION=n CONFIG_TASK_NAME_SIZE=0 -CONFIG_START_YEAR=2010 -CONFIG_START_MONTH=6 -CONFIG_START_DAY=17 +CONFIG_START_YEAR=2011 +CONFIG_START_MONTH=7 +CONFIG_START_DAY=2 CONFIG_GREGORIAN_TIME=n CONFIG_JULIAN_TIME=n CONFIG_DEV_CONSOLE=y |