Created
October 3, 2012 07:04
-
-
Save imrehg/3825492 to your computer and use it in GitHub Desktop.
Enabling PIC32-T795 in pinguino
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/p32/include/pinguino/core/digitalw.c b/p32/include/pinguino/core/digitalw.c | |
index dee0ffe..e10b1c0 100755 | |
--- a/p32/include/pinguino/core/digitalw.c | |
+++ b/p32/include/pinguino/core/digitalw.c | |
@@ -89,17 +89,20 @@ const u32 pinmask[]={_2,_3,_0,_5,_6,_7,_8,_11, // 0-7 | |
#ifdef PIC32_PINGUINO_T795 | |
const u32 portmask[]= | |
- {pD,pD,pD,pD,pD,pD,pD,pD, // 0-7 | |
- pB,pB,pG,pG,pG,pG,pB,pB, // 8-15 | |
- pB,pB,pD,pD,pB,pB,pE,pE, // 16-23 | |
- pE,pE,pE,pE,pE,pE,pD,pF, // 24-31 | |
- pF}; // 32 | |
+ {pB,pB,pB,pB,pB,pB,pD,pG, // 1-8 | |
+ pD,pD,pE,pE,pE,pE,pE,pE, // 9-16 | |
+ pE,pE,pB,pB,pF,pD,pD,pD, // 17-24 | |
+ pD,pD,pD,pD,pD,pF,pF,pF, // 25-32 | |
+ pF,pB,pB,pB,pB,pG,pG,pG, // 33-40 | |
+ pG,pB,pB,pB,pB}; // 41-45 | |
+ | |
+const u32 pinmask[]={_3,_4,_6,_7,_9,_10,_11,_9, // 1-8 | |
+ _2,_1,_0,_1,_2,_3,_4,_5, // 8-15 | |
+ _6,_7,_11,_12,_3,_8,_9,_10, // 16-24 | |
+ _0,_4,_5,_6,_7,_0,_1,_4, // 25-32 | |
+ _4,_8,_14,_13,_15,_6,_7,_8, // 33-40 | |
+ _9,_5,_2,_1,_0}; // 41-45 | |
-const u32 pinmask[]={_2,_3,_0,_5,_6,_7,_8,_11, // 0-7 | |
- _13,_14,_9,_8,_7,_6,_1,_2, // 8-15 | |
- _3,_4,_9,_10,_11,_10,_0,_1, // 16-23 | |
- _2,_3,_4,_5,_6,_7,_1,_1, // 24-31 | |
- _0}; // 32 | |
#endif | |
//---------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment