mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
add gpio_is_valid(); ifxmips, mmc_gpio was not building correctly
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12704 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
58b9e416fd
commit
f5fd4e3367
@ -86,5 +86,9 @@ static inline void gpio_set_value_cansleep(unsigned gpio, int value) {
|
||||
gpio_set_value(gpio, value);
|
||||
}
|
||||
|
||||
#endif
|
||||
static inline int gpio_is_valid(int number)
|
||||
{
|
||||
return ((unsigned)number) < 8;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user