summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lm3s/lm3s_gpio.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-08-12 01:49:25 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-08-12 01:49:25 +0000
commit1a5be88b91218994ccd12cf8bd2f2f676812f174 (patch)
treefe5106398d76d0e36b52bc563b8ea6c337652cf9 /nuttx/arch/arm/src/lm3s/lm3s_gpio.c
parenta7f03d85cf63e824cdb0a4bc928c4a13eb69a3fd (diff)
downloadpx4-nuttx-1a5be88b91218994ccd12cf8bd2f2f676812f174.tar.gz
px4-nuttx-1a5be88b91218994ccd12cf8bd2f2f676812f174.tar.bz2
px4-nuttx-1a5be88b91218994ccd12cf8bd2f2f676812f174.zip
Add changes for LM3S9B96
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2841 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/lm3s_gpio.c')
-rw-r--r--nuttx/arch/arm/src/lm3s/lm3s_gpio.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_gpio.c b/nuttx/arch/arm/src/lm3s/lm3s_gpio.c
index cc1f77c35..5614b54f9 100644
--- a/nuttx/arch/arm/src/lm3s/lm3s_gpio.c
+++ b/nuttx/arch/arm/src/lm3s/lm3s_gpio.c
@@ -56,6 +56,17 @@
* Pre-processor Definitions
****************************************************************************/
+/* This current implementation can only support, at most, 8 GPIO ports. Some
+ * newer chips (such as the LM3S9B96) have 9 GPIO ports. It will require
+ * some restructuring of the definitions in lm3s_internal.h and to the size
+ * of the g_gpiobase[] table and the lm3s_gpiobaseaddress() function in this
+ * file to access GPIOs in ports above GPIOH.
+ */
+
+#if LC3S_NGPIOS > 64
+# warning "This design must be extended to access ports above GPIOH"
+#endif
+
/* These definitions are part of the implementation of the GPIO pad
* configuration of Table 9-1 in the LM3S6918 data sheet.
*/