|
|
|
@ -346,7 +346,6 @@ int physToWpi[64] =
|
|
|
|
|
12, 13, //21, 22
|
|
|
|
|
14, 15, //23, 24
|
|
|
|
|
-1, 16, //25, 26
|
|
|
|
|
|
|
|
|
|
17, 18, //27, 28
|
|
|
|
|
19, -1, //29, 30
|
|
|
|
|
20, 21, //31, 32
|
|
|
|
@ -355,6 +354,7 @@ int physToWpi[64] =
|
|
|
|
|
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
|
|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|