mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Clip+: remove button_hold() : we use software hold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25428 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2831acd538
commit
eef7f343c2
2 changed files with 0 additions and 12 deletions
|
|
@ -33,21 +33,10 @@ void button_init_device(void)
|
||||||
GPIOB_DIR |= (1<<0); /* Pin B0 set output */
|
GPIOB_DIR |= (1<<0); /* Pin B0 set output */
|
||||||
}
|
}
|
||||||
|
|
||||||
bool button_hold(void)
|
|
||||||
{
|
|
||||||
/* TODO OF uses long home(A1) press. Just return false for now */
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
int button_read_device(void)
|
int button_read_device(void)
|
||||||
{
|
{
|
||||||
int buttons = 0;
|
int buttons = 0;
|
||||||
|
|
||||||
/* TODO No hold button Hold toggled by long home(A1) press in OF */
|
|
||||||
if(button_hold())
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
/* Buttons do not appear to need reset */
|
/* Buttons do not appear to need reset */
|
||||||
/* D6 needs special handling though */
|
/* D6 needs special handling though */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@
|
||||||
|
|
||||||
void button_init_device(void);
|
void button_init_device(void);
|
||||||
int button_read_device(void);
|
int button_read_device(void);
|
||||||
bool button_hold(void);
|
|
||||||
|
|
||||||
/* Main unit's buttons */
|
/* Main unit's buttons */
|
||||||
#define BUTTON_HOME 0x00000001
|
#define BUTTON_HOME 0x00000001
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue