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:
Rafaël Carré 2012-01-30 00:10:21 -05:00
parent e7892c9851
commit d1b47c2eeb
4 changed files with 15 additions and 7 deletions

View file

@ -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++) {