diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuze')
-rw-r--r-- | firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c | 33 | ||||
-rw-r--r-- | firmware/target/arm/as3525/sansa-fuze/system-target.h | 2 |
2 files changed, 34 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c index 36006beffb..dd6d4552e0 100644 --- a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c +++ b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c | |||
@@ -199,8 +199,9 @@ static void _display_on(void) | |||
199 | } | 199 | } |
200 | 200 | ||
201 | /* I'm guessing this function is lcd_enable, but it may not be... */ | 201 | /* I'm guessing this function is lcd_enable, but it may not be... */ |
202 | void lcd_enable(int r0) | 202 | void lcd_enable(bool on) |
203 | { | 203 | { |
204 | int r0 = on; | ||
204 | #if 0 | 205 | #if 0 |
205 | r4 = 0x1db12; | 206 | r4 = 0x1db12; |
206 | [r4] = 1; | 207 | [r4] = 1; |
@@ -249,6 +250,36 @@ void lcd_enable(int r0) | |||
249 | #endif | 250 | #endif |
250 | } | 251 | } |
251 | 252 | ||
253 | bool lcd_enabled(void) | ||
254 | { | ||
255 | return display_on; | ||
256 | } | ||
257 | |||
258 | void lcd_sleep(void) | ||
259 | { | ||
260 | /* TODO */ | ||
261 | } | ||
262 | |||
263 | /*** update functions ***/ | ||
264 | |||
265 | /* Performance function to blit a YUV bitmap directly to the LCD | ||
266 | * src_x, src_y, width and height should be even | ||
267 | * x, y, width and height have to be within LCD bounds | ||
268 | */ | ||
269 | void lcd_blit_yuv(unsigned char * const src[3], | ||
270 | int src_x, int src_y, int stride, | ||
271 | int x, int y, int width, int height) | ||
272 | { | ||
273 | (void)src; | ||
274 | (void)src_x; | ||
275 | (void)src_y; | ||
276 | (void)stride; | ||
277 | (void)x; | ||
278 | (void)y; | ||
279 | (void)width; | ||
280 | (void)height; | ||
281 | } | ||
282 | |||
252 | void lcd_init_device() | 283 | void lcd_init_device() |
253 | { | 284 | { |
254 | as3525_dbop_init(); | 285 | as3525_dbop_init(); |
diff --git a/firmware/target/arm/as3525/sansa-fuze/system-target.h b/firmware/target/arm/as3525/sansa-fuze/system-target.h index b712d1c124..553ce90846 100644 --- a/firmware/target/arm/as3525/sansa-fuze/system-target.h +++ b/firmware/target/arm/as3525/sansa-fuze/system-target.h | |||
@@ -24,5 +24,7 @@ | |||
24 | #include "system-arm.h" | 24 | #include "system-arm.h" |
25 | 25 | ||
26 | #define CPUFREQ_MAX 250000000 | 26 | #define CPUFREQ_MAX 250000000 |
27 | #define CPUFREQ_DEFAULT 250000000 | ||
28 | #define CPUFREQ_NORMAL 250000000 | ||
27 | 29 | ||
28 | #endif /* SYSTEM_TARGET_H */ | 30 | #endif /* SYSTEM_TARGET_H */ |