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
This commit is contained in:
parent
f69f1e709d
commit
f206cfd442
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user