mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Clipv2: fix button reading on some models
We neet to setup the XPD to work as GPIO storage unaffected Tested on working-already Clipv2 and on a 'brickable' clipv2 Change-Id: Idcbdfb6bd50d51b7f6f7e00b21df24fac9b3a6d8
This commit is contained in:
parent
e7892c9851
commit
d1b47c2eeb
4 changed files with 15 additions and 7 deletions
|
|
@ -52,6 +52,7 @@ static const int rows[3] = {
|
|||
void button_init_device(void)
|
||||
{
|
||||
GPIOA_DIR &= ~((1<<7) | (1<<3));
|
||||
CCU_IO &= ~(3<<2);
|
||||
IN_DIR &= ~((1<<2) | (1<<1) | (1<<0));
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue