Felix Fietkau
6743f2625b
gpio-button-hotplug: debounce the initial button state, the first reads at boot time might be wrong
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37702
11 years ago
Felix Fietkau
18e37d8caf
gpio-button-hotplug: cleanup, fix compiler warning
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37665
11 years ago
Felix Fietkau
4281026dda
gpio-button-hotplug: fix active_low handling, possibly broken in r37643
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37664
11 years ago
John Crispin
1eabf431df
gpio-button-hotplug: use gpio_button_get_value() to initialize last_state.
...
TL-WR720N-v3 has a slider switch composed of 2 GPIO buttons which can be
used to swtich between 3 positions. At leat 1 button is in pressed state
in any of those positions. Initialize 'last_state' as 0 (released) will
cause the device to automatically enter failsafe mode on every bootup.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 37643
11 years ago
John Crispin
ef96422920
gpio-button-hotplug: use gpio_button_get_value() to fetch state.
...
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 37642
11 years ago
John Crispin
2c19af6ac5
gpio-button-hotplug: add inline function gpio_button_get_value().
...
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 37641
11 years ago
Luka Perkov
6988613f7a
gpio-button-hotplug: add support for EV_SW
...
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 37130
12 years ago
Felix Fietkau
0f6e9c9fcc
gpio-button-hotplug: improve gpio button debouncing, verify state changes over multiple polls. fixes spurious failsafe triggers ( #13784 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37090
12 years ago
John Crispin
4ebf19b48f
packages: clean up the package folder
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37007
12 years ago