diff options
Diffstat (limited to 'firmware/export/config/ibassodx50.h')
-rw-r--r-- | firmware/export/config/ibassodx50.h | 82 |
1 files changed, 45 insertions, 37 deletions
diff --git a/firmware/export/config/ibassodx50.h b/firmware/export/config/ibassodx50.h index 5bbb515c1c..e26d43c4a7 100644 --- a/firmware/export/config/ibassodx50.h +++ b/firmware/export/config/ibassodx50.h | |||
@@ -1,14 +1,35 @@ | |||
1 | /* | 1 | /*************************************************************************** |
2 | * This config file is for Rockbox as an application on Android | 2 | * __________ __ ___ |
3 | */ | 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2014 by Ilia Sergachev: Initial Rockbox port to iBasso DX50 | ||
10 | * Copyright (C) 2014 by Mario Basister: iBasso DX90 port | ||
11 | * Copyright (C) 2014 by Simon Rothen: Initial Rockbox repository submission, additional features | ||
12 | * Copyright (C) 2014 by Udo Schläpfer: Code clean up, additional features | ||
13 | * | ||
14 | * This program is free software; you can redistribute it and/or | ||
15 | * modify it under the terms of the GNU General Public License | ||
16 | * as published by the Free Software Foundation; either version 2 | ||
17 | * of the License, or (at your option) any later version. | ||
18 | * | ||
19 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
20 | * KIND, either express or implied. | ||
21 | * | ||
22 | ****************************************************************************/ | ||
23 | |||
24 | /* This config file is for Rockbox as an application on Android without JVM. */ | ||
4 | 25 | ||
5 | /* We don't run on hardware directly */ | 26 | /* We don't run on hardware directly */ |
6 | #define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_ANDROID) | 27 | #define CONFIG_PLATFORM PLATFORM_HOSTED |
7 | 28 | ||
8 | /* For Rolo and boot loader */ | 29 | /* For Rolo and boot loader */ |
9 | #define MODEL_NUMBER 94 | 30 | #define MODEL_NUMBER 94 |
10 | 31 | ||
11 | #define MODEL_NAME "iBasso DX50" | 32 | #define MODEL_NAME "iBasso DX50" |
12 | 33 | ||
13 | #define USB_NONE | 34 | #define USB_NONE |
14 | 35 | ||
@@ -41,16 +62,15 @@ | |||
41 | #define LCD_PIXELFORMAT RGB565 | 62 | #define LCD_PIXELFORMAT RGB565 |
42 | 63 | ||
43 | #define HAVE_LCD_ENABLE | 64 | #define HAVE_LCD_ENABLE |
65 | #define HAVE_LCD_SLEEP | ||
66 | #define HAVE_LCD_SLEEP_SETTING | ||
67 | /*#define HAVE_LCD_FLIP*/ | ||
68 | #define HAVE_LCD_SHUTDOWN | ||
44 | 69 | ||
45 | /* define this to indicate your device's keypad */ | 70 | /* define this to indicate your device's keypad */ |
46 | #define HAVE_TOUCHSCREEN | 71 | #define HAVE_TOUCHSCREEN |
47 | #define HAVE_BUTTON_DATA | 72 | #define HAVE_BUTTON_DATA |
48 | 73 | #define HAS_BUTTON_HOLD | |
49 | /* define this if you have RTC RAM available for settings */ | ||
50 | //#define HAVE_RTC_RAM | ||
51 | |||
52 | /* define this if you have a real-time clock */ | ||
53 | //#define CONFIG_RTC APPLICATION | ||
54 | 74 | ||
55 | /* Define this if you have a software controlled poweroff */ | 75 | /* Define this if you have a software controlled poweroff */ |
56 | #define HAVE_SW_POWEROFF | 76 | #define HAVE_SW_POWEROFF |
@@ -77,6 +97,10 @@ | |||
77 | 97 | ||
78 | /* Define this if you do software codec */ | 98 | /* Define this if you do software codec */ |
79 | #define CONFIG_CODEC SWCODEC | 99 | #define CONFIG_CODEC SWCODEC |
100 | #define HAVE_SW_TONE_CONTROLS | ||
101 | #define HAVE_SW_VOLUME_CONTROL | ||
102 | #define HW_SAMPR_CAPS SAMPR_CAP_ALL | ||
103 | #define HAVE_PLAY_FREQ | ||
80 | 104 | ||
81 | //#define HAVE_MULTIMEDIA_KEYS | 105 | //#define HAVE_MULTIMEDIA_KEYS |
82 | #define CONFIG_KEYPAD DX50_PAD | 106 | #define CONFIG_KEYPAD DX50_PAD |
@@ -84,39 +108,26 @@ | |||
84 | /* define this if the target has volume keys which can be used in the lists */ | 108 | /* define this if the target has volume keys which can be used in the lists */ |
85 | #define HAVE_VOLUME_IN_LIST | 109 | #define HAVE_VOLUME_IN_LIST |
86 | 110 | ||
87 | /* define this if the host platform can change volume outside of rockbox */ | ||
88 | //#define PLATFORM_HAS_VOLUME_CHANGE | ||
89 | |||
90 | #define HAVE_SW_TONE_CONTROLS | ||
91 | |||
92 | #define HAVE_SW_VOLUME_CONTROL | ||
93 | |||
94 | #define BATTERY_CAPACITY_DEFAULT 2100 /* default battery capacity */ | 111 | #define BATTERY_CAPACITY_DEFAULT 2100 /* default battery capacity */ |
95 | #define BATTERY_CAPACITY_MIN 1700 /* min. capacity selectable */ | 112 | #define BATTERY_CAPACITY_MIN 1700 /* min. capacity selectable */ |
96 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | 113 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ |
97 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | 114 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ |
98 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | 115 | #define BATTERY_TYPES_COUNT 1 /* only one type */ |
99 | 116 | ||
100 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE | 117 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE |
118 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
101 | 119 | ||
102 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
103 | |||
104 | #define NO_LOW_BATTERY_SHUTDOWN | ||
105 | |||
106 | /* Define current usage levels. */ | ||
107 | #define CURRENT_NORMAL 210 /* 10 hours from a 2100 mAh battery */ | ||
108 | #define CURRENT_BACKLIGHT 30 /* TBD */ | ||
109 | #define CURRENT_RECORD 0 /* no recording */ | ||
110 | |||
111 | /* Define this to the CPU frequency */ | ||
112 | /* | 120 | /* |
113 | #define CPU_FREQ 48000000 | 121 | 10 hours from a 2100 mAh battery |
122 | Based on battery bench with stock Samsung battery. | ||
114 | */ | 123 | */ |
124 | #define CURRENT_NORMAL 210 | ||
125 | #define CURRENT_BACKLIGHT 30 /* TBD */ | ||
126 | #define CURRENT_RECORD 0 /* no recording */ | ||
115 | 127 | ||
116 | /* define this if the hardware can be powered off while charging */ | 128 | /* define this if the hardware can be powered off while charging */ |
117 | #define HAVE_POWEROFF_WHILE_CHARGING | 129 | #define HAVE_POWEROFF_WHILE_CHARGING |
118 | 130 | ||
119 | |||
120 | /* Offset ( in the firmware file's header ) to the file CRC */ | 131 | /* Offset ( in the firmware file's header ) to the file CRC */ |
121 | #define FIRMWARE_OFFSET_FILE_CRC 0 | 132 | #define FIRMWARE_OFFSET_FILE_CRC 0 |
122 | 133 | ||
@@ -128,9 +139,6 @@ | |||
128 | /* Define this if a programmable hotkey is mapped */ | 139 | /* Define this if a programmable hotkey is mapped */ |
129 | #define HAVE_HOTKEY | 140 | #define HAVE_HOTKEY |
130 | 141 | ||
131 | #define BOOTDIR "/.rockbox" | ||
132 | |||
133 | /* No special storage */ | 142 | /* No special storage */ |
134 | #define CONFIG_STORAGE STORAGE_HOSTFS | 143 | #define CONFIG_STORAGE STORAGE_HOSTFS |
135 | #define HAVE_STORAGE_FLUSH | 144 | #define HAVE_STORAGE_FLUSH |
136 | |||