Bringing Android closer to the mainline
Bringing Android closer to the mainline
Posted Dec 20, 2011 22:28 UTC (Tue) by neilbrown (subscriber, #359)Parent article: Bringing Android closer to the mainline
"timed gpio" could easily be implemented with "leds" today.
Use the "leds-gpio" driver to provide a "/sys/class/leds" interface to the gpio, then:
# cd /sys/class/leds/NAME-OF-LED
# echo timer > trigger; echo 1000 > delay_on; echo 1000000000 > delay_off
and the GPIO will be asserted for one second, then de-asserted for approximately one fortnight - which should be long enough for user-space to turn it off properly.
So this seems to be unnecessary duplication.
