diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-11 20:50:10 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-11 20:50:10 +0000 |
commit | ebebf7f4acbae1c917962c14d21e86a5cf0484c2 (patch) | |
tree | 9e719b791f2addbec3b4cab37c3ed166c4f2b952 /nuttx/arch/mips/src/pic32mx/pic32mx-ioport.h | |
parent | 7155446ba1a312a61d55d0c6dab9cc621112d743 (diff) | |
download | px4-nuttx-ebebf7f4acbae1c917962c14d21e86a5cf0484c2.tar.gz px4-nuttx-ebebf7f4acbae1c917962c14d21e86a5cf0484c2.tar.bz2 px4-nuttx-ebebf7f4acbae1c917962c14d21e86a5cf0484c2.zip |
Add PIC32MX GPIO handling; add button/LED support for the Sure PIC32MX
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4040 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/mips/src/pic32mx/pic32mx-ioport.h')
-rw-r--r-- | nuttx/arch/mips/src/pic32mx/pic32mx-ioport.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-ioport.h b/nuttx/arch/mips/src/pic32mx/pic32mx-ioport.h index 186136345..46b01db4b 100644 --- a/nuttx/arch/mips/src/pic32mx/pic32mx-ioport.h +++ b/nuttx/arch/mips/src/pic32mx/pic32mx-ioport.h @@ -42,6 +42,7 @@ #include <nuttx/config.h>
+#include "chip.h"
#include "pic32mx-memorymap.h"
/********************************************************************************************
@@ -265,6 +266,14 @@ #define IOPORT_CNPUE(n) (1 << (n)) /* Bits 0-18/21: Port pin pull-up enabled */
+#if defined(CHIP_PIC32MX3) || defined(CHIP_PIC32MX4)
+# define IOPORT_CN_ALL 0x0007ffff /* Bits 0-18 */
+# define IOPORT_NUMCN 19
+#elif defined(CHIP_PIC32MX5) || defined(CHIP_PIC32MX6) || defined(CHIP_PIC32MX7)
+# define IOPORT_CN_ALL 0x003fffff /* Bits 0-21 */
+# define IOPORT_NUMCN 22
+#endif
+
/********************************************************************************************
* Public Types
********************************************************************************************/
|