summaryrefslogtreecommitdiffstats
path: root/nuttx/arch/arm/src/lm3s/chip.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2010-08-13 03:45:51 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2010-08-13 03:45:51 +0000
commitd3314097249bfb8bcbd1d469891fb1523d737f85 (patch)
treec7119885c17b02835113a4fc83f433047fc0f014 /nuttx/arch/arm/src/lm3s/chip.h
parentc07990f2502f8378317cf0c1aea36a656ccb20dc (diff)
Fix limitation in number of GPIO ports that can be supported
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@2846 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/chip.h')
-rw-r--r--nuttx/arch/arm/src/lm3s/chip.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lm3s/chip.h b/nuttx/arch/arm/src/lm3s/chip.h
index 071d35ca76..511b2e3780 100644
--- a/nuttx/arch/arm/src/lm3s/chip.h
+++ b/nuttx/arch/arm/src/lm3s/chip.h
@@ -58,7 +58,7 @@
# define LM3S_NADC 1 /* One ADC module */
# define LM2S_NPWM 0 /* No PWM generator modules */
# define LM3S_NQEI 0 /* No quadrature encoders */
-# define LC3S_NGPIOS 38 /* 5-38 GPIOs, depending on configuration */
+# define LM3S_NPORTS 8 /* 8 Ports (GPIOA-H) 5-38 GPIOs */
#elif defined(CONFIG_ARCH_CHIP_LM3S6965)
# define LM3S_NTIMERS 4 /* Four general purpose timers */
# define LM3S_NETHCONTROLLERS 1 /* One Ethernet controller */
@@ -69,7 +69,7 @@
# define LM3S_NADC 1 /* One ADC module */
# define LM2S_NPWM 3 /* Three PWM generator modules */
# define LM3S_NQEI 2 /* Two quadrature encoders */
-# define LC3S_NGPIOS 42 /* 0-42 GPIOs */
+# define LM3S_NPORTS 7 /* 7 Ports (GPIOA-G), 0-42 GPIOs */
#elif defined(CONFIG_ARCH_CHIP_LM3S9B96)
# define LM3S_NTIMERS 4 /* Four general purpose timers */
# define LM3S_NETHCONTROLLERS 1 /* One Ethernet controller */
@@ -81,7 +81,7 @@
# define LM3S_CAN 2 /* Two CAN module */
# define LM3S_NPWM 4 /* Four PWM generator modules */
# define LM3S_NQEI 2 /* Two quadrature encoders */
-# define LC3S_NGPIOS 65 /* 0-65 GPIOs */
+# define LM3S_NPORTS 9 /* 9 Ports (GPIOA-H,J) 0-65 GPIOs */
#else
# error "Capabilities not specified for this LM3S chip"
#endif