diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-02-02 21:45:26 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-02-02 21:45:26 +0000 |
| commit | 8bf5130ffde4f3c9ff3d4fc2d3f7998f4f527329 (patch) | |
| tree | 479e65141cf2f85f51fdef3d6689319d968df069 | |
| parent | 93a34f017a48ffe72f4dc2b3cba63e03de4720ac (diff) | |
| download | rockbox-8bf5130ffde4f3c9ff3d4fc2d3f7998f4f527329.zip rockbox-8bf5130ffde4f3c9ff3d4fc2d3f7998f4f527329.tar.gz rockbox-8bf5130ffde4f3c9ff3d4fc2d3f7998f4f527329.tar.bz2 rockbox-8bf5130ffde4f3c9ff3d4fc2d3f7998f4f527329.tar.xz | |
create and use a new config type for the i2c and the battery in the h100
and disable usb (for now)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5740 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/export/config-h100.h | 10 | ||||
| -rw-r--r-- | firmware/export/config.h | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h index f4ada14..01012cd 100644 --- a/firmware/export/config-h100.h +++ b/firmware/export/config-h100.h @@ -18,8 +18,12 @@ /* Define this if you have a Motorola SCF5249 */ #define CONFIG_CPU MCF5249 -/* Type of mobile power, FIXME: probably different, make new type */ -#define CONFIG_BATTERY BATT_LIION2200 +#define CONFIG_I2C I2C_H100 + +/* Type of mobile power */ +#define CONFIG_BATTERY BATT_IRIVER + +#define BATTERY_SCALE_FACTOR 6465 /* FIX: this value is picked at random */ /* Define this if the platform can charge batteries */ #define HAVE_CHARGING 1 @@ -44,4 +48,6 @@ /* Offset ( in the firmware file's header ) to the real data */ #define FIRMWARE_OFFSET_FILE_DATA 8 +#define USB_NONE /* FIX: USB temorarily disabled */ + #endif diff --git a/firmware/export/config.h b/firmware/export/config.h index 64694af..5528f93 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -48,6 +48,7 @@ #define BATT_LIION2200 2200 /* FM/V2 recorder type */ #define BATT_4AA_NIMH 1500 #define BATT_3AAA 1000 /* Ondio */ +#define BATT_IRIVER 2 /* the type used in iRiver h1x0 models */ /* CONFIG_LCD */ #define LCD_GMINI100 0 @@ -65,6 +66,7 @@ #define I2C_PLAYREC 0 /* Archos Player/Recorder style */ #define I2C_ONDIO 1 /* Ondio style */ #define I2C_GMINI 2 /* Gmini style */ +#define I2C_H100 3 /* iRiver h100 style */ /* now go and pick yours */ #if defined(ARCHOS_PLAYER) |