2 Commits

Author SHA1 Message Date
Phil Howard b6501213f0 Remove duplicate content 2020-11-26 16:41:19 +00:00
Philip Howard 6b2edc5b4e Update README.md 2020-09-18 22:43:01 +01:00
10 changed files with 18 additions and 47 deletions
-16
View File
@@ -1,16 +0,0 @@
name: Build
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run build
run: |
./build
+2 -6
View File
@@ -23,11 +23,7 @@ To un-install wiringPi:
./build uninstall
For help and support see:
Gordon Henderson
* https://github.com/WiringPi/WiringPi/issues
* https://discord.gg/SM4WUVG
wiringPi originally created by Gordon Henderson
projects@drogon.net
https://projects.drogon.net/
+2 -2
View File
@@ -36,8 +36,8 @@ check_make_ok() {
echo ""
echo "Make Failed..."
echo "Please check the messages and fix any problems. If you're still stuck,"
echo "then raise a GitHub issue with the output and as many details as you can"
echo " https://github.com/WiringPi/WiringPi/issues"
echo "then please email all the output and as many details as you can to"
echo " projects@drogon.net"
echo ""
exit 1
fi
+1 -1
View File
@@ -337,7 +337,7 @@ Gordon Henderson
.SH "REPORTING BUGS"
Please report bugs to https://github.com/WiringPi/WiringPi/issues
Please report bugs to <projects@drogon.net>
.SH COPYRIGHT
+3 -5
View File
@@ -311,8 +311,6 @@ static void plus2header (int model)
printf (" +-----+-----+---------+------+---+---Pi 3A+-+---+------+---------+-----+-----+\n") ;
else if (model == PI_MODEL_4B)
printf (" +-----+-----+---------+------+---+---Pi 4B--+---+------+---------+-----+-----+\n") ;
else if (model == PI_MODEL_400)
printf (" +-----+-----+---------+------+---+---Pi 400-+---+------+---------+-----+-----+\n") ;
else
printf (" +-----+-----+---------+------+---+---Pi ?---+---+------+---------+-----+-----+\n") ;
}
@@ -360,10 +358,10 @@ void doReadall (void)
(model == PI_MODEL_2) ||
(model == PI_MODEL_3AP) ||
(model == PI_MODEL_3B) || (model == PI_MODEL_3BP) ||
(model == PI_MODEL_4B) || (model == PI_MODEL_400) ||
(model == PI_MODEL_ZERO) || (model == PI_MODEL_ZERO_W) || (model == PI_MODEL_CM4))
(model == PI_MODEL_4B) ||
(model == PI_MODEL_ZERO) || (model == PI_MODEL_ZERO_W))
piPlusReadall (model) ;
else if ((model == PI_MODEL_CM) || (model == PI_MODEL_CM3) || (model == PI_MODEL_CM3P) )
else if ((model == PI_MODEL_CM) || (model == PI_MODEL_CM3) || ((model == PI_MODEL_CM3P)))
allReadall () ;
else
printf ("Oops - unable to determine board type... model: %d\n", model) ;
+1 -1
View File
@@ -75,7 +75,7 @@ static:
$(DYNAMIC): $(OBJ)
$Q echo "[Link (Dynamic)]"
$Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) $(OBJ) $(LIBS)
$Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) $(LIBS) $(OBJ)
.c.o:
$Q echo [Compile] $<
-3
View File
@@ -153,9 +153,6 @@ int softPwmCreate (int pin, int initialValue, int pwmRange)
newPin = pin ;
res = pthread_create (&myThread, NULL, softPwmThread, (void *)passPin) ;
if (res != 0)
return res ;
while (newPin != -1)
delay (1) ;
+6 -9
View File
@@ -219,7 +219,7 @@ volatile unsigned int *_wiringPiTimerIrqRaw ;
static volatile unsigned int piGpioBase = 0 ;
const char *piModelNames [21] =
const char *piModelNames [20] =
{
"Model A", // 0
"Model B", // 1
@@ -240,8 +240,7 @@ const char *piModelNames [21] =
"CM3+", // 16
"Pi 4B", // 17
"Unknown18", // 18
"Pi 400", // 19
"CM4", // 20
"Unknown19", // 19
} ;
const char *piRevisionNames [16] =
@@ -291,7 +290,7 @@ const int piMemorySize [8] =
1024, // 2
2048, // 3
4096, // 4
8192, // 5
0, // 5
0, // 6
0, // 7
} ;
@@ -1324,8 +1323,8 @@ struct wiringPiNodeStruct *wiringPiFindNode (int pin)
static void pinModeDummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int mode) { return ; }
static void pullUpDnControlDummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int pud) { return ; }
//static unsigned int digitalRead8Dummy (UNU struct wiringPiNodeStruct *node, UNU int UNU pin) { return 0 ; }
//static void digitalWrite8Dummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int value) { return ; }
static unsigned int digitalRead8Dummy (UNU struct wiringPiNodeStruct *node, UNU int UNU pin) { return 0 ; }
static void digitalWrite8Dummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int value) { return ; }
static int digitalReadDummy (UNU struct wiringPiNodeStruct *node, UNU int UNU pin) { return LOW ; }
static void digitalWriteDummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int value) { return ; }
static void pwmWriteDummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int value) { return ; }
@@ -2049,7 +2048,7 @@ int wiringPiISR (int pin, int mode, void (*function)(void))
return wiringPiFailure (WPI_FATAL, "wiringPiISR: Can't find gpio program\n") ;
}
else // Parent, wait
waitpid (pid, NULL, 0) ;
wait (NULL) ;
}
// Now pre-open the /sys/class node - but it may already be open if
@@ -2313,8 +2312,6 @@ int wiringPiSetup (void)
break ;
case PI_MODEL_4B:
case PI_MODEL_400:
case PI_MODEL_CM4:
piGpioBase = GPIO_PERI_BASE_2711 ;
piGpioPupOffset = GPPUPPDN0 ;
break ;
+1 -3
View File
@@ -103,8 +103,6 @@
#define PI_MODEL_3AP 14
#define PI_MODEL_CM3P 16
#define PI_MODEL_4B 17
#define PI_MODEL_400 19
#define PI_MODEL_CM4 20
#define PI_VERSION_1 0
#define PI_VERSION_1_1 1
@@ -116,7 +114,7 @@
#define PI_MAKER_EMBEST 2
#define PI_MAKER_UNKNOWN 3
extern const char *piModelNames [21] ;
extern const char *piModelNames [20] ;
extern const char *piRevisionNames [16] ;
extern const char *piMakerNames [16] ;
extern const int piMemorySize [ 8] ;
+2 -1
View File
@@ -40,4 +40,5 @@ struct drcNetComStruct
uint32_t pin ;
uint32_t cmd ;
uint32_t data ;
};
} comDat ;