[rtems commit] bsp/stm32f4: Bugfix for io-initialisation.

Sebastian Huber sebh at rtems.org
Thu Oct 24 14:23:38 UTC 2013


Module:    rtems
Branch:    master
Commit:    bb3f3491b5e72edb9517cb68c1c86b8b0f901c5f
Changeset: http://git.rtems.org/rtems/commit/?id=bb3f3491b5e72edb9517cb68c1c86b8b0f901c5f

Author:    Christian Mauderer <Christian.Mauderer at embedded-brains.de>
Date:      Thu Oct 24 16:27:00 2013 +0200

bsp/stm32f4: Bugfix for io-initialisation.

---

 c/src/lib/libbsp/arm/stm32f4/startup/io.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/arm/stm32f4/startup/io.c b/c/src/lib/libbsp/arm/stm32f4/startup/io.c
index b067823..33ada13 100644
--- a/c/src/lib/libbsp/arm/stm32f4/startup/io.c
+++ b/c/src/lib/libbsp/arm/stm32f4/startup/io.c
@@ -191,7 +191,7 @@ static void set_config(unsigned pin, const stm32f4_gpio_config *config)
 #endif /* STM32F4_FAMILY_F4XXXX */
 #ifdef STM32F4_FAMILY_F10XXX
   unsigned cr_reg = index >> 3;
-  unsigned cr_index = index & 3;
+  unsigned cr_index = index & 0x7;
 
   rtems_interrupt_disable(level);
   gpio->bsrr = 1U << (index + set_or_clear_offset);




More information about the vc mailing list