WiringPi: Remove files that seem won't be used or already have not been used

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I1189f950d0e51cbc4c569b1e7a1182dc5f8fe762
This commit is contained in:
Deokgyu Yang
2020-03-19 17:21:21 +09:00
parent b3a297e09b
commit 89cf23cbcd
161 changed files with 98 additions and 18766 deletions

28
gpio/readall.c Executable file → Normal file
View File

@@ -42,28 +42,6 @@ extern int wpMode ;
# define FALSE (1==2)
#endif
/*----------------------------------------------------------------------------*/
/*
* doReadallExternal:
* A relatively crude way to read the pins on an external device.
* We don't know the input/output mode of pins, but we can tell
* if it's an analog pin or a digital one...
*/
/*----------------------------------------------------------------------------*/
static void doReadallExternal (void)
{
int pin ;
printf ("+------+---------+--------+\n") ;
printf ("| Pin | Digital | Analog |\n") ;
printf ("+------+---------+--------+\n") ;
for (pin = wiringPiNodes->pinBase ; pin <= wiringPiNodes->pinMax ; ++pin)
printf ("| %4d | %4d | %4d |\n", pin, digitalRead (pin), analogRead (pin)) ;
printf ("+------+---------+--------+\n") ;
}
/*----------------------------------------------------------------------------*/
static const char *alts [] =
{
@@ -716,12 +694,6 @@ void doReadall(int argc, char *argv[]) {
int model, rev, mem, maker, overVolted, isAll;
char *headerName, *physNames;
// External readall
if (wiringPiNodes != NULL) {
doReadallExternal();
return;
}
if (argc <= 2) {
isAll = FALSE;
} else if (argc == 3 && (strcasecmp(argv[2], "-a") == 0 || strcasecmp(argv[2], "--all") == 0)) {