|
|
|
@ -119,22 +119,23 @@ int ORANGEPI_PIN_MASK[4][32] = //[BANK] [INDEX]
|
|
|
|
|
#ifdef CONFIG_ORANGEPI_PC2 |
|
|
|
|
int pinToGpioOrangePi[64] = |
|
|
|
|
{ |
|
|
|
|
1,110, // 0, 1
|
|
|
|
|
0, 3, // 2, 3
|
|
|
|
|
68, 71, // 4 5
|
|
|
|
|
2, 6, // 6, 7
|
|
|
|
|
12, 11, // 8, 9
|
|
|
|
|
13, 21, //10,11
|
|
|
|
|
15, 16, //12,13
|
|
|
|
|
14, 69, //14,15
|
|
|
|
|
70, -1, //16,17
|
|
|
|
|
-1, -1, //18,19
|
|
|
|
|
-1, 7, //20,21
|
|
|
|
|
8, 9, //22,23
|
|
|
|
|
10,107, //24,25
|
|
|
|
|
200,201, //26,27
|
|
|
|
|
198,199, //28,29
|
|
|
|
|
19, 18, //30,31
|
|
|
|
|
12, 11, // 0, 1
|
|
|
|
|
6, 69, // 2, 3
|
|
|
|
|
70, 1, // 4 5
|
|
|
|
|
110,0, // 6, 7
|
|
|
|
|
3, 68, // 8, 9
|
|
|
|
|
71, 15, //10,11
|
|
|
|
|
16, 2, //12,13
|
|
|
|
|
14, 13, //14,15
|
|
|
|
|
21, 19, //16,17
|
|
|
|
|
18, 7, //18,19
|
|
|
|
|
8, 200, //20,21
|
|
|
|
|
9, 10, //22,23
|
|
|
|
|
107,201, //24,25
|
|
|
|
|
198, 199, //26,27
|
|
|
|
|
|
|
|
|
|
-1, -1, //28, 29
|
|
|
|
|
-1, -1, //30,31
|
|
|
|
|
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 47
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,// ... 63
|
|
|
|
@ -171,26 +172,25 @@ int physToPinOrangePi[64] = //return wiringPI pin
|
|
|
|
|
{ |
|
|
|
|
-1, // 0
|
|
|
|
|
-1, -1, // 1, 2
|
|
|
|
|
8, -1, //3, 4
|
|
|
|
|
9, -1, //5, 6
|
|
|
|
|
7, 15, //7, 8
|
|
|
|
|
-1, 16, //9,10
|
|
|
|
|
0, 1, //11,12
|
|
|
|
|
2, -1, //13,14
|
|
|
|
|
3, 4, //15,16
|
|
|
|
|
-1, 5, //17,18
|
|
|
|
|
12, -1, //19,20
|
|
|
|
|
13, 6, //21,22
|
|
|
|
|
14, 10, //23, 24
|
|
|
|
|
-1, 11, // 25, 26
|
|
|
|
|
|
|
|
|
|
30, 31, //27, 28
|
|
|
|
|
21, -1, //29, 30
|
|
|
|
|
22, 26, //31, 32
|
|
|
|
|
23, -1, //33, 34
|
|
|
|
|
24, 27, //35, 36
|
|
|
|
|
25, 28, //37, 38
|
|
|
|
|
-1, 29, //39, 40
|
|
|
|
|
0, -1, //3, 4
|
|
|
|
|
1, -1, //5, 6
|
|
|
|
|
2, 3, //7, 8
|
|
|
|
|
-1, 4, //9,10
|
|
|
|
|
5, 6, //11,12
|
|
|
|
|
7, -1, //13,14
|
|
|
|
|
8, 9, //15,16
|
|
|
|
|
-1, 10, //17,18
|
|
|
|
|
11, -1, //19,20
|
|
|
|
|
12, 13, //21,22
|
|
|
|
|
14, 15, //23, 24
|
|
|
|
|
-1, 16, // 25, 26
|
|
|
|
|
17, 18, //27, 28
|
|
|
|
|
19, -1, //29, 30
|
|
|
|
|
20, 21, //31, 32
|
|
|
|
|
22, -1, //33, 34
|
|
|
|
|
23, 24, //35, 36
|
|
|
|
|
25, 26, //37, 38
|
|
|
|
|
-1, 27, //39, 40
|
|
|
|
|
// Padding:
|
|
|
|
|
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 56
|
|
|
|
@ -199,9 +199,9 @@ int physToPinOrangePi[64] = //return wiringPI pin
|
|
|
|
|
|
|
|
|
|
int ORANGEPI_PIN_MASK[9][32] = //[BANK] [INDEX]
|
|
|
|
|
{ |
|
|
|
|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