Quellcode durchsuchen

Commentary updates

pull/158/head
Jim Parziale vor 2 Jahren
Ursprung
Commit
6438187910
4 geänderte Dateien mit 15 neuen und 14 gelöschten Zeilen
  1. +11
    -11
      gpio/gpio.c
  2. +1
    -1
      gpio/readall.c
  3. +2
    -1
      wiringPi/wiringPi.c
  4. +1
    -1
      wiringPi/wiringPi.h

+ 11
- 11
gpio/gpio.c Datei anzeigen

@@ -5,7 +5,7 @@
* Copyright (c) 2012-2018 Gordon Henderson
***********************************************************************
* This file is part of wiringPi:
* https://github.com/WiringPi/WiringPi/
* https://github.com/nuncio-bitis/WiringPi/
*
* wiringPi is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -52,19 +52,19 @@ extern void doQmode (int argc, char *argv[]);
# define FALSE (1==2)
#endif

#define PI_USB_POWER_CONTROL 38
#define I2CDETECT "i2cdetect"
#define MODPROBE "modprobe"
#define RMMOD "rmmod"
#define PI_USB_POWER_CONTROL 38
#define I2CDETECT "i2cdetect"
#define MODPROBE "modprobe"
#define RMMOD "rmmod"

// Intentionally global; also used in readall.c
int wpMode;

char *usage = "Usage: gpio -v Show version info\n"
" gpio -h Show Help\n"
// " gpio -V Show gpio layout version (1.x)\n"
" gpio[-b|-p|-w] ... Use bcm-gpio/physical/WiringPi pin numbering scheme.\n"
" If none specified, BCM GPIO numbering is used by default.\n"
" [-x extension:params][[ -x ...]] ...\n"
char *usage = "Usage: gpio -v Show version info\n"
" gpio -h Show Help\n"
" gpio[-b|-p|-w] ... Use bcm-gpio/physical/WiringPi pin numbering scheme.\n"
" If none specified, BCM GPIO numbering is used by default.\n"
" [-x extension:params][[ -x ...]] ...\n"
" gpio <mode/read/write/aread/awritewb/pwm/pwmTone/clock> ...\n"
" gpio <toggle/blink> <pin>\n"
" gpio readall/allreadall\n"


+ 1
- 1
gpio/readall.c Datei anzeigen

@@ -4,7 +4,7 @@
* Copyright (c) 2012-2018 Gordon Henderson
***********************************************************************
* This file is part of wiringPi:
* https://github.com/WiringPi/WiringPi/
* https://github.com/nuncio-bitis/WiringPi/
*
* wiringPi is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by


+ 2
- 1
wiringPi/wiringPi.c Datei anzeigen

@@ -9,7 +9,7 @@
* the clock section /grr/mutter/
***********************************************************************
* This file is part of wiringPi:
* https://github.com/WiringPi/WiringPi
* https://github.com/nuncio-bitis/WiringPi
*
* wiringPi is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
@@ -296,6 +296,7 @@ static volatile int pinPass = -1;
static pthread_mutex_t pinMutex;

// Debugging & Return codes
// Intentionally global; also used in gpio.c
int wiringPiDebug = FALSE;
int wiringPiReturnCodes = TRUE;



+ 1
- 1
wiringPi/wiringPi.h Datei anzeigen

@@ -4,7 +4,7 @@
* Copyright (c) 2012-2017 Gordon Henderson
***********************************************************************
* This file is part of wiringPi:
* https://github.com/WiringPi/WiringPi/
* https://github.com/nuncio-bitis/WiringPi/
*
* wiringPi is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by


Laden…
Abbrechen
Speichern