summaryrefslogtreecommitdiff
path: root/nuttx/configs/lm3s6965-ek/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-05-09 16:36:07 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-05-09 16:36:07 +0000
commit80450be87458da980b3f32c734a1c7f1287da8ad (patch)
treeb7a4e7e951cd1de1bc8e7c2d3a8858983d427e75 /nuttx/configs/lm3s6965-ek/src
parent95bc39c643cb8e671248b9fee6941e729889ca74 (diff)
downloadpx4-nuttx-80450be87458da980b3f32c734a1c7f1287da8ad.tar.gz
px4-nuttx-80450be87458da980b3f32c734a1c7f1287da8ad.tar.bz2
px4-nuttx-80450be87458da980b3f32c734a1c7f1287da8ad.zip
Add LM3S6965 NSH configuration + Prep for 5.5 releasenuttx-5.5
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2659 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/lm3s6965-ek/src')
-rwxr-xr-xnuttx/configs/lm3s6965-ek/src/lm3s6965ek_internal.h25
-rwxr-xr-xnuttx/configs/lm3s6965-ek/src/up_ssi.c1
2 files changed, 21 insertions, 5 deletions
diff --git a/nuttx/configs/lm3s6965-ek/src/lm3s6965ek_internal.h b/nuttx/configs/lm3s6965-ek/src/lm3s6965ek_internal.h
index d83a6228d..2b7514c21 100755
--- a/nuttx/configs/lm3s6965-ek/src/lm3s6965ek_internal.h
+++ b/nuttx/configs/lm3s6965-ek/src/lm3s6965ek_internal.h
@@ -87,11 +87,28 @@
* 23 PC6/CCP3 Enable +15 V
*/
- /* GPIO for microSD card chip select */
+/* GPIO for microSD card chip select:
+ * - PD0: SD card chip select (CARDCSn)
+ */
+
+#define SDCCS_GPIO (GPIO_FUNC_OUTPUT | GPIO_PADTYPE_STDWPU | GPIO_STRENGTH_4MA | \
+ GPIO_VALUE_ONE | GPIO_PORTD | 0)
+
+/* GPIO for single LED:
+ * - PF0: User LED
+ */
+
+#define LED_GPIO (GPIO_FUNC_OUTPUT | GPIO_VALUE_ONE | GPIO_PORTF | 0)
+
+/* GPIOs for OLED:
+ * - PC7: OLED display data/control select (D/Cn)
+ * - PA3: OLED display chip select (CSn)
+ */
-#define SDCCS_GPIO (GPIO_FUNC_OUTPUT | GPIO_PADTYPE_STDWPU | GPIO_STRENGTH_4MA | \
- GPIO_VALUE_ONE | GPIO_PORTD | 0)
-#define LED_GPIO (GPIO_FUNC_OUTPUT | GPIO_VALUE_ONE | GPIO_PORTF | 0)
+#define OLEDDC_GPIO (GPIO_FUNC_OUTPUT | GPIO_PADTYPE_STDWPU | GPIO_STRENGTH_4MA | \
+ GPIO_VALUE_ONE | GPIO_PORTC | 7)
+#define OLEDCS_GPIO (GPIO_FUNC_OUTPUT | GPIO_PADTYPE_STDWPU | GPIO_STRENGTH_4MA | \
+ GPIO_VALUE_ONE | GPIO_PORTA | 3)
/************************************************************************************
* Public Functions
diff --git a/nuttx/configs/lm3s6965-ek/src/up_ssi.c b/nuttx/configs/lm3s6965-ek/src/up_ssi.c
index 2939067a8..c7e2c8f1c 100755
--- a/nuttx/configs/lm3s6965-ek/src/up_ssi.c
+++ b/nuttx/configs/lm3s6965-ek/src/up_ssi.c
@@ -145,7 +145,6 @@ void lm3s_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool select
uint8_t lm3s_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
{
-#warning "Need to check schematic"
ssidbg("Returning SPI_STATUS_PRESENT\n");
return SPI_STATUS_PRESENT;
}