fix previous commit

implement button_init_device for ondio
include button.h to get prototypes

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31621 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2012-01-08 00:18:43 +00:00
parent 95cf63b294
commit 7c547be19d
4 changed files with 6 additions and 4 deletions

View file

@ -25,7 +25,7 @@
#include "timer.h"
#if INCREASED_SCROLLWHEEL_POLLING
#include "button-target.h"
#include "button.h"
/* The scrollwheel is polled every 5 ms (the tick tasks only every 10) */
static int poll_scrollwheel = 0;

View file

@ -32,7 +32,7 @@
#include "i2c-imx233.h"
#include "lcd.h"
#include "backlight-target.h"
#include "button-target.h"
#include "button.h"
#define default_interrupt(name) \
extern __attribute__((weak, alias("UIRQ"))) void name(void)

View file

@ -37,6 +37,10 @@
ON/OFF: AN3, low active (assigned as OFF)
*/
void button_init_device(void)
{
}
int button_read_device(void)
{
int btn = BUTTON_NONE;

View file

@ -22,8 +22,6 @@
#ifndef _BUTTON_TARGET_H_
#define _BUTTON_TARGET_H_
#define button_init_device()
#define BUTTON_OFF 0x00000001
#define BUTTON_MENU 0x00000002