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
This commit is contained in:
patacongo 2010-01-31 01:42:04 +00:00
parent ea2fde1dd9
commit 76b0595e2d
3 changed files with 8 additions and 1 deletions

View File

@ -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)

View File

@ -1685,6 +1685,10 @@ buildroot-1.8 2009-12-21 &lt;spudmonkey@racsa.co.cr&gt;
<ul><pre>
nuttx-5.2 2010-xx-xx Gregory Nutt &lt;spudmonkey@racsa.co.cr&gt;
* 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 &lt;spudmonkey@racsa.co.cr&gt;
buildroot-1.9 2010-xx-xx <spudmonkey@racsa.co.cr>

View File

@ -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);
}
/****************************************************************************