diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-14 18:55:22 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-14 18:55:22 +0000 |
commit | ee00fd9d222a61ca9a36197a0bd618f4ac36e7fd (patch) | |
tree | 65cf0925abffaf13aa9d17f2406092aa8f90578e /nuttx/arch/arm/src/lm3s/lm3s_syscontrol.h | |
parent | 2fc7c368483da2c5a2310734447dcf299915aff9 (diff) | |
download | px4-nuttx-ee00fd9d222a61ca9a36197a0bd618f4ac36e7fd.tar.gz px4-nuttx-ee00fd9d222a61ca9a36197a0bd618f4ac36e7fd.tar.bz2 px4-nuttx-ee00fd9d222a61ca9a36197a0bd618f4ac36e7fd.zip |
Add basic lm3s6918 gpio support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1778 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/lm3s_syscontrol.h')
-rw-r--r-- | nuttx/arch/arm/src/lm3s/lm3s_syscontrol.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_syscontrol.h b/nuttx/arch/arm/src/lm3s/lm3s_syscontrol.h index 5fe7ffd37..3a9a83f62 100644 --- a/nuttx/arch/arm/src/lm3s/lm3s_syscontrol.h +++ b/nuttx/arch/arm/src/lm3s/lm3s_syscontrol.h @@ -210,6 +210,7 @@ /* Device Capabilities 4 (DC4), offset 0x01c */ +#define SYSCON_DC4_GPIO(n) (1 << (n)) #define SYSCON_DC4_GPIOA (1 << 0) /* Bit 0: GPIO Port A Present */ #define SYSCON_DC4_GPIOB (1 << 1) /* Bit 1: GPIO Port B Present */ #define SYSCON_DC4_GPIOC (1 << 2) /* Bit 2: GPIO Port C Present */ @@ -264,6 +265,7 @@ /* Software Reset Control 2 (SRCR2), offset 0x048 */ +#define SYSCON_SRCR2_GPIO(n) (1 << (n)) #define SYSCON_SRCR2_GPIOA (1 << 0) /* Bit 0: Port A Reset Control */ #define SYSCON_SRCR2_GPIOB (1 << 1) /* Bit 1: Port B Reset Control */ #define SYSCON_SRCR2_GPIOC (1 << 2) /* Bit 2: Port C Reset Control */ @@ -382,6 +384,7 @@ /* Run Mode Clock Gating Control Register 2 (RCGC2), offset 0x108 */ +#define SYSCON_RCGC2_GPIO(n) (1 << (n)) #define SYSCON_RCGC2_GPIOA (1 << 0) /* Bit 0: Port A Clock Gating Control */ #define SYSCON_RCGC2_GPIOB (1 << 1) /* Bit 1: Port B Clock Gating Control */ #define SYSCON_RCGC2_GPIOC (1 << 2) /* Bit 2: Port C Clock Gating Control */ @@ -418,6 +421,7 @@ /* Sleep Mode Clock Gating Control Register 2 (SCGC2), offset 0x118 */ +#define SYSCON_SCGC2_GPIO(n) (1 << (n)) #define SYSCON_SCGC2_GPIOA (1 << 0) /* Bit 0: Port A Clock Gating Control */ #define SYSCON_SCGC2_GPIOB (1 << 1) /* Bit 1: Port B Clock Gating Control */ #define SYSCON_SCGC2_GPIOC (1 << 2) /* Bit 2: Port C Clock Gating Control */ @@ -454,6 +458,7 @@ /* Deep Sleep Mode Clock Gating Control Register 2 (DCGC2), offset 0x128 */ +#define SYSCON_DCGC2_GPIO(n) (1 << (n)) #define SYSCON_DCGC2_GPIOA (1 << 0) /* Bit 0: Port A Clock Gating Control */ #define SYSCON_DCGC2_GPIOB (1 << 1) /* Bit 1: Port B Clock Gating Control */ #define SYSCON_DCGC2_GPIOC (1 << 2) /* Bit 2: Port C Clock Gating Control */ |