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 c285f5ca3f
commit 4f054874ff

View File

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