mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
button-target.h : move prototypes to button.h
no need to define BUTTON_REMOTE anymore git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31620 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
63ead774d5
commit
95cf63b294
68 changed files with 27 additions and 502 deletions
|
|
@ -21,23 +21,12 @@
|
|||
#ifndef _BUTTON_TARGET_H_
|
||||
#define _BUTTON_TARGET_H_
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "config.h"
|
||||
|
||||
void button_init_device(void);
|
||||
int button_read_device(void);
|
||||
|
||||
|
||||
#define BUTTON_UP 0x00000001
|
||||
#define BUTTON_DOWN 0x00000004
|
||||
#define BUTTON_LEFT 0x00000008
|
||||
#define BUTTON_RIGHT 0x00000010
|
||||
#define BUTTON_PLAY 0x00000020
|
||||
|
||||
|
||||
#define BUTTON_REMOTE 0
|
||||
|
||||
|
||||
#define POWEROFF_BUTTON 0x02
|
||||
#define POWEROFF_COUNT 30
|
||||
|
||||
|
|
|
|||
|
|
@ -21,13 +21,6 @@
|
|||
#ifndef _BUTTON_TARGET_H_
|
||||
#define _BUTTON_TARGET_H_
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "config.h"
|
||||
|
||||
void button_init_device(void);
|
||||
int button_read_device(void);
|
||||
|
||||
|
||||
#define BUTTON_UP 0x00000001
|
||||
#define BUTTON_DOWN 0x00000004
|
||||
#define BUTTON_LEFT 0x00000008
|
||||
|
|
@ -37,10 +30,6 @@ int button_read_device(void);
|
|||
#define BUTTON_PREV 0x00000080
|
||||
#define BUTTON_PLAY 0x00000100
|
||||
|
||||
|
||||
#define BUTTON_REMOTE 0
|
||||
|
||||
|
||||
#define POWEROFF_BUTTON 0x02
|
||||
#define POWEROFF_COUNT 30
|
||||
|
||||
|
|
|
|||
|
|
@ -21,12 +21,6 @@
|
|||
#ifndef _BUTTON_TARGET_H_
|
||||
#define _BUTTON_TARGET_H_
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "config.h"
|
||||
|
||||
void button_init_device(void);
|
||||
int button_read_device(void);
|
||||
|
||||
/* Main unit's buttons */
|
||||
/* values assigned corespond to GPIOs numbers */
|
||||
#define BUTTON_PLAY 0x00000002
|
||||
|
|
@ -40,8 +34,6 @@ int button_read_device(void);
|
|||
#define BUTTON_RIGHT BUTTON_FF
|
||||
#define BUTTON_ON BUTTON_PLAY
|
||||
|
||||
#define BUTTON_REMOTE 0
|
||||
|
||||
#define BUTTON_MAIN (BUTTON_PLAY|BUTTON_REW|BUTTON_FF|\
|
||||
BUTTON_VOL|BUTTON_M)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue