mirror of
https://github.com/apache/nuttx.git
synced 2026-08-16 01:43:15 +00:00
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
c285f5ca3f
commit
4f054874ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue