|
|
|
@ -332,38 +332,38 @@ int physToWpi [64] =
|
|
|
|
|
#ifdef CONFIG_ORANGEPI_H3 |
|
|
|
|
int physToWpi[64] = |
|
|
|
|
{ |
|
|
|
|
-1, // 0
|
|
|
|
|
-1, -1, // 1, 2
|
|
|
|
|
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
|
|
|
|
|
-1, //0
|
|
|
|
|
-1, -1, // 1, 2
|
|
|
|
|
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
|
|
|
|
|
-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
|
|
|
|
|
28, 29, //41, 42
|
|
|
|
|
|
|
|
|
|
// Padding:
|
|
|
|
|
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 56
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, // ... 63
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 56
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, // ... 63
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
char *physNames[64] = |
|
|
|
|
{ |
|
|
|
|
NULL, |
|
|
|
|
NULL, |
|
|
|
|
|
|
|
|
|
" 3.3V", "5V ", |
|
|
|
|
" SDA.0", "5V ", |
|
|
|
@ -386,15 +386,20 @@ char *physNames[64] =
|
|
|
|
|
" PA20", "TXD.1 ", |
|
|
|
|
" GND", "RXD.1 ", |
|
|
|
|
" PA04", "PA05 ", |
|
|
|
|
|
|
|
|
|
NULL, NULL, |
|
|
|
|
NULL, NULL, |
|
|
|
|
NULL, NULL, |
|
|
|
|
NULL, NULL, |
|
|
|
|
NULL, NULL, |
|
|
|
|
NULL, NULL, |
|
|
|
|
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, |
|
|
|
|
NULL, NULL, |
|
|
|
|
NULL, NULL,
|
|
|
|
|
NULL, NULL, |
|
|
|
|
NULL, NULL, |
|
|
|
|
NULL, |
|
|
|
|
}; |
|
|
|
|
#endif |
|
|
|
|
#endif /* H3 */ |
|
|
|
|
|
|
|
|
|
#if CONFIG_ORANGEPI_ZEROPLUS2_H3 || CONFIG_ORANGEPI_ZEROPLUS2_H5 |
|
|
|
|
int physToWpi [64] = //return wiringPI pin
|
|
|
|
@ -855,6 +860,7 @@ void OrangePiReadAll(void)
|
|
|
|
|
int pin; |
|
|
|
|
int tmp = wiringPiDebug; |
|
|
|
|
wiringPiDebug = FALSE; |
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_ORANGEPI_PC2 |
|
|
|
|
printf (" +------+-----+----------+------+---+ OPi PC2 +---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_PRIME |
|
|
|
@ -864,23 +870,23 @@ void OrangePiReadAll(void)
|
|
|
|
|
#elif CONFIG_ORANGEPI_ZEROPLUS2_H5 |
|
|
|
|
printf (" +------+-----+----------+------+---+ZEROPLUS 2+---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_2G_IOT |
|
|
|
|
printf (" +-----+-----+----------+------+---+OrangePi 2G-IOT+---+---+------+---------+-----+--+\n"); |
|
|
|
|
printf (" +------+-----+----------+------+---+ 2G-IOT +---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_H3 |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePiH3+---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_ZEROPLUS2_H3 |
|
|
|
|
printf (" +------+-----+----------+------+---+ZEROPLUS 2+---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_ZERO |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePi Zero+---+---+------+---------+-----+--+\n"); |
|
|
|
|
printf (" +------+-----+----------+------+---+ OPi Zero +---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_A64 |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePi Win/Win+ +---+---+------+---------+-----+--+\n"); |
|
|
|
|
printf (" +------+-----+----------+------+---+ OPi Win +---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_LITE2 || CONFIG_ORANGEPI_3 |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePiH6+---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_RK3399 |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePi RK3399---+---+------+---------+-----+--+\n"); |
|
|
|
|
printf (" +------+-----+----------+------+---+OPi RK3399+---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_4 |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePi 4---+---+------+---------+-----+--+\n"); |
|
|
|
|
|
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePi 4+---+---+--+----------+-----+------+\n"); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
printf (" | GPIO | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | GPIO |\n"); |
|
|
|
|
printf (" +------+-----+----------+------+---+----++----+---+------+----------+-----+------+\n"); |
|
|
|
|
|
|
|
|
@ -894,6 +900,7 @@ void OrangePiReadAll(void)
|
|
|
|
|
|
|
|
|
|
printf (" +------+-----+----------+------+---+----++----+---+------+----------+-----+------+\n"); |
|
|
|
|
printf (" | GPIO | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | GPIO |\n"); |
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_ORANGEPI_PC2 |
|
|
|
|
printf (" +------+-----+----------+------+---+ OPi PC2 +---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_PRIME |
|
|
|
@ -903,22 +910,22 @@ void OrangePiReadAll(void)
|
|
|
|
|
#elif CONFIG_ORANGEPI_ZEROPLUS2_H5 |
|
|
|
|
printf (" +------+-----+----------+------+---+ZEROPLUS 2+---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_2G_IOT |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePi 2G-IOT+---+------+----------+-----+-----+\n"); |
|
|
|
|
printf (" +------+-----+----------+------+---+ 2G-IOT +---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_H3 |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePiH3+---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_ZEROPLUS2_H3 |
|
|
|
|
printf (" +------+-----+----------+------+---+ZEROPLUS 2+---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_ZERO |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePi Zero+---+------+----------+-----+-----+\n"); |
|
|
|
|
printf (" +------+-----+----------+------+---+ OPi Zero +---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_A64 |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePi Win/Win+ +---+------+----------+-----+-----+\n"); |
|
|
|
|
printf (" +------+-----+----------+------+---+ OPi Win +---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_LITE2 || CONFIG_ORANGEPI_3 |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePiH6+---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_RK3399 |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePi RK3399---+---+------+---------+-----+--+\n"); |
|
|
|
|
printf (" +------+-----+----------+------+---+OPi RK3399+---+------+----------+-----+------+\n"); |
|
|
|
|
#elif CONFIG_ORANGEPI_4 |
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePi 4---+---+------+---------+-----+--+\n"); |
|
|
|
|
|
|
|
|
|
printf (" +------+-----+----------+------+---+OrangePi 4+---+---+--+----------+-----+------+\n"); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
wiringPiDebug = tmp; |
|
|
|
|
} |
|
|
|
|