diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-06 19:31:28 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-06 19:31:28 +0000 |
commit | bb74385c98447b751f8f5f499f1e6392ad2874dd (patch) | |
tree | 919f33a9a06a8b96e9432e230952e220f31f51d4 /nuttx/arch/arm/src/stm32 | |
parent | c4bbb0d62607eb278111ea5fc13f4620b47d1965 (diff) | |
download | px4-nuttx-bb74385c98447b751f8f5f499f1e6392ad2874dd.tar.gz px4-nuttx-bb74385c98447b751f8f5f499f1e6392ad2874dd.tar.bz2 px4-nuttx-bb74385c98447b751f8f5f499f1e6392ad2874dd.zip |
Basic bring-up of the STM3240G-EVAL board is complete
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4138 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_gpio.c b/nuttx/arch/arm/src/stm32/stm32_gpio.c index a22d20883..309df3520 100644 --- a/nuttx/arch/arm/src/stm32/stm32_gpio.c +++ b/nuttx/arch/arm/src/stm32/stm32_gpio.c @@ -515,8 +515,8 @@ int stm32_configgpio(uint32_t cfgset) } regval = getreg32(base + STM32_GPIO_OSPEED_OFFSET); - regval &= ~GPIO_OSPEED_MASK(pos); - regval |= (setting << GPIO_OSPEED_SHIFT(pos)); + regval &= ~GPIO_OSPEED_MASK(pin); + regval |= (setting << GPIO_OSPEED_SHIFT(pin)); putreg32(regval, base + STM32_GPIO_OSPEED_OFFSET); /* Set push-pull/open-drain (Only outputs and alternate function pins) */ |