summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorCástor Muñoz <cmvidal@gmail.com>2015-12-17 00:22:41 +0100
committerCástor Muñoz <cmvidal@gmail.com>2015-12-17 10:26:51 +0100
commit348bfc5c8f6633d40d3708e826aa7e9b0360729f (patch)
tree0202c2b9cbafd8ed322d8d4f18599c38609466e3 /apps
parentead38dbc9df3f63bd4f870ff2365ba48876d5b46 (diff)
downloadrockbox-348bfc5c8f6633d40d3708e826aa7e9b0360729f.tar.gz
rockbox-348bfc5c8f6633d40d3708e826aa7e9b0360729f.zip
iPod Classic: clickwheel fixes
Uses GPIO.E2 (Request To Send) to detect the holdswitch status, it is a temporal workaround that seems to work on all models. Holdswitch status must be detected to drive low GPIO.E2 (RTS) and GPIO.E4 (Data Out) when the holdswitch is locked, otherwise battery life decreases about 25%. Holdswitch unlock action is detected by reading the HELLO message that the external wheel controller sends when it is powered on, this allows to quickly capture clickwheel activity after unlock. GPIO.E2 is also used in case the HELLO message is missed because the holdswitch was unlocked before Rockbox/bootloader starts. These 2 lines (RTS and DOUT) can not be used to transmit messages to the external clickwheel controller, not a problem, actually no messages are sent while normal operation, only at initialization stage. Change-Id: I415fe54bfcbc2086d0f56d7affe6f789ce81a6db
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions