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:
parent
ea2fde1dd9
commit
76b0595e2d
@ -1054,3 +1054,6 @@
|
|||||||
|
|
||||||
5.2 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
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)
|
||||||
|
@ -1685,6 +1685,10 @@ buildroot-1.8 2009-12-21 <spudmonkey@racsa.co.cr>
|
|||||||
<ul><pre>
|
<ul><pre>
|
||||||
nuttx-5.2 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
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>
|
pascal-2.1 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
|
|
||||||
buildroot-1.9 2010-xx-xx <spudmonkey@racsa.co.cr>
|
buildroot-1.9 2010-xx-xx <spudmonkey@racsa.co.cr>
|
||||||
|
@ -80,7 +80,7 @@
|
|||||||
static inline uintptr_t sam3u_gpiobase(uint16_t cfgset)
|
static inline uintptr_t sam3u_gpiobase(uint16_t cfgset)
|
||||||
{
|
{
|
||||||
int port = (cfgset & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT;
|
int port = (cfgset & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT;
|
||||||
return SAM3U_PION_BASE(port >> GPIO_PORT_SHIFT);
|
return SAM3U_PION_BASE(port);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user