From 76b0595e2da35f94ff248a1898ee7b2dfca2c66a Mon Sep 17 00:00:00 2001 From: patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> Date: Sun, 31 Jan 2010 01:42:04 +0000 Subject: [PATCH] Fix problem in access PIOB and C git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2533 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 3 +++ Documentation/NuttX.html | 4 ++++ arch/arm/src/sam3u/sam3u_pio.c | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5ce05b55f3..52298e06d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1054,3 +1054,6 @@ 5.2 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> + * arch/arm/src/sam3u/sam3u_pio.c - Fix an address calculation error + that caused ports B & C to get mapped to the PIOA base address. + This is an important bugfix! (a patch is available) diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index f98b743380..2e3127e685 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -1685,6 +1685,10 @@ buildroot-1.8 2009-12-21 <spudmonkey@racsa.co.cr> <ul><pre> nuttx-5.2 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> + * arch/arm/src/sam3u/sam3u_pio.c - Fix an address calculation error + that caused ports B & C to get mapped to the PIOA base address. + This is an important bugfix! (a patch is available) + pascal-2.1 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> buildroot-1.9 2010-xx-xx <spudmonkey@racsa.co.cr> diff --git a/arch/arm/src/sam3u/sam3u_pio.c b/arch/arm/src/sam3u/sam3u_pio.c index ab3d746ba3..29eb5e833b 100755 --- a/arch/arm/src/sam3u/sam3u_pio.c +++ b/arch/arm/src/sam3u/sam3u_pio.c @@ -80,7 +80,7 @@ static inline uintptr_t sam3u_gpiobase(uint16_t cfgset) { int port = (cfgset & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT; - return SAM3U_PION_BASE(port >> GPIO_PORT_SHIFT); + return SAM3U_PION_BASE(port); } /**************************************************************************** -- GitLab