This is essential for ethernet to work as the majority of boards are
using RMII mode.

Signed-off-by: Paul Fertser <[email protected]>
---
 lib/stm32/f1/gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/stm32/f1/gpio.c b/lib/stm32/f1/gpio.c
index 76cbd5b..959d224 100644
--- a/lib/stm32/f1/gpio.c
+++ b/lib/stm32/f1/gpio.c
@@ -168,7 +168,7 @@ only @ref afio_remap_cld are also available.
 */
 void gpio_primary_remap(uint32_t swjdisable, uint32_t maps)
 {
-       AFIO_MAPR |= (swjdisable & AFIO_MAPR_SWJ_MASK) | (maps & 0x1FFFFF);
+       AFIO_MAPR |= (swjdisable & AFIO_MAPR_SWJ_MASK) | (maps & 0xFFFFFF);
 }
 
 /*---------------------------------------------------------------------------*/
-- 
2.0.5


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
libopencm3-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Reply via email to