diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-13 03:45:51 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-13 03:45:51 +0000 |
commit | f39263af14175dd1414423d6c6d4fdf4f20461c8 (patch) | |
tree | c7119885c17b02835113a4fc83f433047fc0f014 /nuttx/arch/arm/src/lm3s/chip.h | |
parent | c3aabdfc763f00eace106a180c7f0c52cf7fc8d7 (diff) | |
download | px4-nuttx-f39263af14175dd1414423d6c6d4fdf4f20461c8.tar.gz px4-nuttx-f39263af14175dd1414423d6c6d4fdf4f20461c8.tar.bz2 px4-nuttx-f39263af14175dd1414423d6c6d4fdf4f20461c8.zip |
Fix limitation in number of GPIO ports that can be supported
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2846 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/chip.h')
-rw-r--r-- | nuttx/arch/arm/src/lm3s/chip.h | 6 |
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 071d35ca7..511b2e378 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 |