diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-01-31 01:42:04 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-01-31 01:42:04 +0000 |
commit | c309c43a802db5981970ea679fb7fb86c456ee69 (patch) | |
tree | 10d115a5a29196175c4824006c1ae501bb79bca9 | |
parent | 078f4c40fc5e90e5b072fbffcbcc54d1996f0cbd (diff) | |
download | nuttx-c309c43a802db5981970ea679fb7fb86c456ee69.tar.gz nuttx-c309c43a802db5981970ea679fb7fb86c456ee69.tar.bz2 nuttx-c309c43a802db5981970ea679fb7fb86c456ee69.zip |
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
-rw-r--r-- | nuttx/ChangeLog | 3 | ||||
-rw-r--r-- | nuttx/Documentation/NuttX.html | 4 | ||||
-rwxr-xr-x | nuttx/arch/arm/src/sam3u/sam3u_pio.c | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 5ce05b55f..52298e06d 100644 --- a/nuttx/ChangeLog +++ b/nuttx/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/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html index f98b74338..2e3127e68 100644 --- a/nuttx/Documentation/NuttX.html +++ b/nuttx/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/nuttx/arch/arm/src/sam3u/sam3u_pio.c b/nuttx/arch/arm/src/sam3u/sam3u_pio.c index ab3d746ba..29eb5e833 100755 --- a/nuttx/arch/arm/src/sam3u/sam3u_pio.c +++ b/nuttx/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); } /**************************************************************************** |