wok-current annotate wiringpi/stuff/gpio-decodePin.patch @ rev 17151
Add proxytunnel
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 11 13:24:02 2014 +0200 (2014-09-11) |
parents | |
children |
rev | line source |
---|---|
pankso@16466 | 1 --- gpio.c |
pankso@16466 | 2 +++ gpio.slitaz.c |
pankso@16466 | 3 @@ -74,26 +74,6 @@ |
pankso@16466 | 4 " gpio gbr <channel>\n" |
pankso@16466 | 5 " gpio gbw <channel> <value>" ; // No trailing newline needed here. |
pankso@16466 | 6 |
pankso@16466 | 7 - |
pankso@16466 | 8 -/* |
pankso@16466 | 9 - * decodePin: |
pankso@16466 | 10 - * Decode a pin "number" which can actually be a pin name to represent |
pankso@16466 | 11 - * one of the Pi's on-board pins. |
pankso@16466 | 12 - ********************************************************************************* |
pankso@16466 | 13 - */ |
pankso@16466 | 14 - |
pankso@16466 | 15 -static int decodePin (const char *str) |
pankso@16466 | 16 -{ |
pankso@16466 | 17 - |
pankso@16466 | 18 -// The first case - see if it's a number: |
pankso@16466 | 19 - |
pankso@16466 | 20 - if (isdigit (str [0])) |
pankso@16466 | 21 - return atoi (str) ; |
pankso@16466 | 22 - |
pankso@16466 | 23 - return 0 ; |
pankso@16466 | 24 -} |
pankso@16466 | 25 - |
pankso@16466 | 26 - |
pankso@16466 | 27 /* |
pankso@16466 | 28 * changeOwner: |
pankso@16466 | 29 * Change the ownership of the file to the real userId of the calling |