From 6e992abf36b1719cba18c9f4d519a02b187c8bca Mon Sep 17 00:00:00 2001 From: Tomasz Malesinski Date: Thu, 9 Nov 2006 22:58:35 +0000 Subject: Target tree support for Iriver iFP. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11485 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/adc.h | 9 --------- firmware/export/button.h | 22 ---------------------- firmware/export/config-ifp7xx.h | 6 ++++++ 3 files changed, 6 insertions(+), 31 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/adc.h b/firmware/export/adc.h index 4dced55f09..d8e3b7078f 100644 --- a/firmware/export/adc.h +++ b/firmware/export/adc.h @@ -24,15 +24,6 @@ #ifdef TARGET_TREE #include "adc-target.h" -#elif defined(IRIVER_IFP7XX) - -#define NUM_ADC_CHANNELS 5 - -#define ADC_BUTTONS 0 -#define ADC_BATTERY 1 -#define ADC_BUTTON_PLAY 2 -#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */ - #else #define NUM_ADC_CHANNELS 8 diff --git a/firmware/export/button.h b/firmware/export/button.h index d702b50fcd..240ec08d9b 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h @@ -26,8 +26,6 @@ (CONFIG_KEYPAD == IRIVER_H300_PAD) #define HAS_BUTTON_HOLD #define HAS_REMOTE_BUTTON_HOLD -#elif (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD) -#define HAS_BUTTON_HOLD #endif extern struct event_queue button_queue; @@ -173,26 +171,6 @@ void wheel_send_events(bool send); #define BUTTON_REMOTE 0 -#elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD - -/* iriver IFP7XX specific button codes */ - -#define BUTTON_PLAY 0x00000001 -#define BUTTON_SELECT 0x00000002 - -#define BUTTON_LEFT 0x00000004 -#define BUTTON_RIGHT 0x00000008 -#define BUTTON_UP 0x00000010 -#define BUTTON_DOWN 0x00000020 - -#define BUTTON_MODE 0x00000040 -#define BUTTON_EQ 0x00000080 - -#define BUTTON_MAIN (BUTTON_PLAY|BUTTON_SELECT\ - |BUTTON_LEFT|BUTTON_RIGHT|BUTTON_UP|BUTTON_DOWN\ - |BUTTON_MODE|BUTTON_EQ) - -#define BUTTON_REMOTE 0 #elif 0 diff --git a/firmware/export/config-ifp7xx.h b/firmware/export/config-ifp7xx.h index b0724f6e83..637a754f2a 100644 --- a/firmware/export/config-ifp7xx.h +++ b/firmware/export/config-ifp7xx.h @@ -1,6 +1,8 @@ /* * This config file is for iriver iFP-799 */ +#define TARGET_TREE + #define IRIVER_IFP7XX_SERIES 1 /* For Rolo and boot loader */ @@ -91,6 +93,10 @@ /* Virtual LED (icon) */ #define CONFIG_LED LED_VIRTUAL +#define MIN_CONTRAST_SETTING 5 +#define MAX_CONTRAST_SETTING 63 +#define DEFAULT_CONTRAST_SETTING 40 + /* Define this if you have adjustable CPU frequency */ //#define HAVE_ADJUSTABLE_CPU_FREQ -- cgit v1.2.3