9
0
Fork 0

Fix problem in access PIOB and C

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@2533 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2010-01-31 01:42:04 +00:00
parent bc82f41de8
commit e870c5b1f2
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);
}
/****************************************************************************