diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-24 16:03:08 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-24 16:03:08 +0000 |
commit | 9b2ed5ff44f02983b6ed3ca810ab6a951b838b17 (patch) | |
tree | fae5b37ef40f6c0e17eb7a2d18dbc8bef7e48159 /nuttx/arch/arm/src/lm3s/lm3s_gpio.c | |
parent | e2a24a1500e26a3c53a64238bd249f512ca736f1 (diff) | |
download | px4-nuttx-9b2ed5ff44f02983b6ed3ca810ab6a951b838b17.tar.gz px4-nuttx-9b2ed5ff44f02983b6ed3ca810ab6a951b838b17.tar.bz2 px4-nuttx-9b2ed5ff44f02983b6ed3ca810ab6a951b838b17.zip |
Fixe LM3S GPIO output settings; fix Eagle-100 LEDs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1823 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_gpio.c b/nuttx/arch/arm/src/lm3s/lm3s_gpio.c index 891a2fdb0..d289022a9 100644 --- a/nuttx/arch/arm/src/lm3s/lm3s_gpio.c +++ b/nuttx/arch/arm/src/lm3s/lm3s_gpio.c @@ -789,7 +789,7 @@ void lm3s_gpiowrite(uint32 pinset, boolean value) * "... All bits are cleared by a reset." */ - putreg32((uint32)value << pinno, base + LM3S_GPIO_DATA_OFFSET + (pinno << 2)); + putreg32((uint32)value << pinno, base + LM3S_GPIO_DATA_OFFSET + (1 << (pinno + 2))); } /**************************************************************************** @@ -828,5 +828,5 @@ boolean lm3s_gpioread(uint32 pinset, boolean value) * are cleared by a reset." */ - return (getreg32(base + LM3S_GPIO_DATA_OFFSET + (pinno << 2)) != 0); + return (getreg32(base + LM3S_GPIO_DATA_OFFSET + (1 << (pinno + 2))) != 0); }
\ No newline at end of file |