forked from len0rd/rockbox
HD200 - small cleanup in button_init_device()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26766 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
71c9521a87
commit
b45a2d433b
1 changed files with 3 additions and 3 deletions
|
@ -28,9 +28,9 @@
|
||||||
|
|
||||||
void button_init_device(void)
|
void button_init_device(void)
|
||||||
{
|
{
|
||||||
/* Set GPIO36, GPIO56 as general purpose inputs */
|
/* Set GPIO56 (main PLAY) as general purpose inputs */
|
||||||
or_l((1<<4)|(1<<24),&GPIO1_FUNCTION);
|
or_l((1<<24),&GPIO1_FUNCTION);
|
||||||
and_l(~((1<<4)|(1<<24)),&GPIO1_ENABLE);
|
and_l(~(1<<24),&GPIO1_ENABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool button_hold(void)
|
bool button_hold(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue