From 4f054874fff176a6bb93931617efe30ec9efb2ca Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 31 Jan 2010 01:42:04 +0000 Subject: [PATCH] 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 --- arch/arm/src/sam3u/sam3u_pio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/sam3u/sam3u_pio.c b/arch/arm/src/sam3u/sam3u_pio.c index ab3d746ba31..29eb5e833b1 100755 --- a/arch/arm/src/sam3u/sam3u_pio.c +++ b/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); } /****************************************************************************