Basically if VBUS is present, we enable USB and we don't go to sleep to make sure we react in time. Also add skeleton to read and handle button press events. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This is the state that was used for the battery testing, so import as-is to keep a record of changes. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>