diff options
author | Lorenzo Miori <memoryS60@gmail.com> | 2013-09-16 00:02:28 +0200 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2013-09-29 14:15:48 +0200 |
commit | 9a8ed6ba35959f049ec85d8be6ec498fdbb67bb6 (patch) | |
tree | 68eb6b6cf52826ffb279b382f2cf389a7466a798 /firmware/export | |
parent | d13e5b964e56fb15dcc3990d2e424f4ffdd3db8b (diff) | |
download | rockbox-9a8ed6ba35959f049ec85d8be6ec498fdbb67bb6.tar.gz rockbox-9a8ed6ba35959f049ec85d8be6ec498fdbb67bb6.zip |
Simulator for Samsung YP-R0
Enable simulator for the target ypr0 to
be built and used.
Change-Id: I1b080f07ab90f5c4856881d08ad70e1053bbb0c0
Reviewed-on: http://gerrit.rockbox.org/618
Reviewed-by: Frank Gevaerts <frank@gevaerts.be>
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config/samsungypr0.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/firmware/export/config/samsungypr0.h b/firmware/export/config/samsungypr0.h index 970879772f..c1266f4732 100644 --- a/firmware/export/config/samsungypr0.h +++ b/firmware/export/config/samsungypr0.h | |||
@@ -5,16 +5,15 @@ | |||
5 | 5 | ||
6 | /* We don't run on hardware directly */ | 6 | /* We don't run on hardware directly */ |
7 | /* YP-R0 need it too of course */ | 7 | /* YP-R0 need it too of course */ |
8 | #ifndef SIMULATOR | ||
8 | #define CONFIG_PLATFORM (PLATFORM_HOSTED) | 9 | #define CONFIG_PLATFORM (PLATFORM_HOSTED) |
10 | #endif | ||
9 | 11 | ||
10 | /* For Rolo and boot loader */ | 12 | /* For Rolo and boot loader */ |
11 | #define MODEL_NUMBER 100 | 13 | #define MODEL_NUMBER 100 |
12 | 14 | ||
13 | #define MODEL_NAME "Samsung YP-R0" | 15 | #define MODEL_NAME "Samsung YP-R0" |
14 | 16 | ||
15 | /*TODO: implement USB data transfer management -> see safe mode script and think a way to implemtent it in the code */ | ||
16 | #define USB_NONE | ||
17 | |||
18 | /* define this if you have a bitmap LCD display */ | 17 | /* define this if you have a bitmap LCD display */ |
19 | #define HAVE_LCD_BITMAP | 18 | #define HAVE_LCD_BITMAP |
20 | 19 | ||
@@ -90,6 +89,12 @@ | |||
90 | #define CONFIG_KEYPAD SAMSUNG_YPR0_PAD | 89 | #define CONFIG_KEYPAD SAMSUNG_YPR0_PAD |
91 | #define BUTTON_DRIVER_CLOSE | 90 | #define BUTTON_DRIVER_CLOSE |
92 | 91 | ||
92 | /** Non-simulator section **/ | ||
93 | #ifndef SIMULATOR | ||
94 | |||
95 | /*TODO: implement USB data transfer management -> see safe mode script and think a way to implemtent it in the code */ | ||
96 | #define USB_NONE | ||
97 | |||
93 | /* The YPR0 has a as3534 codec */ | 98 | /* The YPR0 has a as3534 codec */ |
94 | #define HAVE_AS3514 | 99 | #define HAVE_AS3514 |
95 | #define HAVE_AS3543 | 100 | #define HAVE_AS3543 |
@@ -109,6 +114,12 @@ | |||
109 | /* We have a GPIO pin that detects this */ | 114 | /* We have a GPIO pin that detects this */ |
110 | #define HAVE_HEADPHONE_DETECTION | 115 | #define HAVE_HEADPHONE_DETECTION |
111 | 116 | ||
117 | /* Define current usage levels. */ | ||
118 | #define CURRENT_NORMAL 24 /* ~25h, on 600mAh that's about 24mA */ | ||
119 | #define CURRENT_BACKLIGHT 62 /* ~6,5h -> 92mA. Minus 24mA normal that gives us 68mA */ | ||
120 | |||
121 | #endif /* SIMULATOR */ | ||
122 | |||
112 | /* FIXME | 123 | /* FIXME |
113 | * Lot of people reports bad battery life and funny charging times. | 124 | * Lot of people reports bad battery life and funny charging times. |
114 | * Check what's going on... | 125 | * Check what's going on... |
@@ -120,10 +131,6 @@ | |||
120 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | 131 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ |
121 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | 132 | #define BATTERY_TYPES_COUNT 1 /* only one type */ |
122 | 133 | ||
123 | /* Define current usage levels. */ | ||
124 | #define CURRENT_NORMAL 24 /* ~25h, on 600mAh that's about 24mA */ | ||
125 | #define CURRENT_BACKLIGHT 62 /* ~6,5h -> 92mA. Minus 24mA normal that gives us 68mA */ | ||
126 | |||
127 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE | 134 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE |
128 | 135 | ||
129 | /* Linux controlls charging, we can monitor */ | 136 | /* Linux controlls charging, we can monitor */ |