Properly initialize Port A button input pins (player coldstart)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5471 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a5a6fa930c
commit
bbc5931280
1 changed files with 5 additions and 1 deletions
|
@ -480,8 +480,12 @@ static int button_read(void)
|
|||
|
||||
void button_init(void)
|
||||
{
|
||||
/* set port pins as input */
|
||||
#ifndef SIMULATOR
|
||||
/* set PA5 and PA11 as input */
|
||||
PACR1 &= 0xff3f; /* PA11MD = 00 */
|
||||
PACR2 &= 0xfbff; /* PA5MD = 0 */
|
||||
PAIOR &= ~0x820;
|
||||
#endif
|
||||
queue_init(&button_queue);
|
||||
lastbtn = 0;
|
||||
tick_add_task(button_tick);
|
||||
|
|
Loading…
Reference in a new issue