diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-08-21 17:22:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-08-21 17:22:11 +0000 |
commit | 6b8cf08b6de5ba0e76f32d47d045874dfed17bee (patch) | |
tree | 0fb6bf985e5e34d25fc5fdb558d6db870c76c436 /firmware | |
parent | e1fbb12aaf25ea001a9ed419c8e61b8a61d9b75f (diff) | |
download | rockbox-6b8cf08b6de5ba0e76f32d47d045874dfed17bee.tar.gz rockbox-6b8cf08b6de5ba0e76f32d47d045874dfed17bee.zip |
Magnus Öman's rocking USB logo is now being put to use.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1891 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/usb.c | 71 |
1 files changed, 57 insertions, 14 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index e78f8aead1..624c2c6c1e 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -294,19 +294,6 @@ void usb_start_monitoring(void) | |||
294 | usb_monitor_enabled = true; | 294 | usb_monitor_enabled = true; |
295 | } | 295 | } |
296 | 296 | ||
297 | void usb_display_info(void) | ||
298 | { | ||
299 | lcd_stop_scroll(); | ||
300 | lcd_clear_display(); | ||
301 | |||
302 | #ifdef HAVE_LCD_BITMAP | ||
303 | lcd_puts(4, 3, "[USB Mode]"); | ||
304 | lcd_update(); | ||
305 | #else | ||
306 | lcd_puts(0, 0, "[USB Mode]"); | ||
307 | #endif | ||
308 | } | ||
309 | |||
310 | #else | 297 | #else |
311 | 298 | ||
312 | /* Dummy simulator functions */ | 299 | /* Dummy simulator functions */ |
@@ -323,8 +310,64 @@ void usb_start_monitoring(void) | |||
323 | { | 310 | { |
324 | } | 311 | } |
325 | 312 | ||
313 | #endif | ||
314 | |||
315 | #ifdef HAVE_LCD_BITMAP | ||
316 | #define BMPHEIGHT_usb_logo 32 | ||
317 | #define BMPWIDTH_usb_logo 100 | ||
318 | static unsigned char usb_logo[] = { | ||
319 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
320 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
321 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x20, 0x10, 0x08, | ||
322 | 0x04, 0x04, 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||
323 | 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x81, 0x81, 0x81, 0x81, | ||
324 | 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, | ||
325 | 0x01, 0x01, 0x01, 0x01, 0xf1, 0x4f, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, | ||
326 | 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0xc0, | ||
327 | 0x00, 0x00, 0xe0, 0x1c, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, | ||
328 | 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, | ||
329 | 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x06, 0x81, 0xc0, 0xe0, 0xe0, 0xe0, 0xe0, | ||
330 | 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0xc0, 0xe0, 0x70, 0x38, 0x1c, 0x1c, | ||
331 | 0x0c, 0x0e, 0x0e, 0x06, 0x06, 0x06, 0x06, 0x06, 0x0f, 0x1f, 0x1f, 0x1f, 0x1f, | ||
332 | 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xc0, 0xc0, 0x80, 0x80, 0x00, 0x00, | ||
333 | 0x00, 0x00, 0xe0, 0x1f, 0x00, 0xf8, 0x06, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, | ||
334 | 0x02, 0x02, 0x02, 0x82, 0x7e, 0x00, 0xc0, 0x3e, 0x01, | ||
335 | 0x70, 0x4f, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, | ||
336 | 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, | ||
337 | 0x40, 0x40, 0x40, 0x40, 0x40, 0x80, 0x00, 0x07, 0x0f, 0x1f, 0x1f, 0x1f, 0x1f, | ||
338 | 0x0f, 0x07, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x07, 0x0f, | ||
339 | 0x1f, 0x3f, 0x7b, 0xf3, 0xe3, 0xc3, 0x83, 0x83, 0x83, 0x83, 0xe3, 0xe3, 0xe3, | ||
340 | 0xe3, 0xe3, 0xe3, 0x03, 0x03, 0x03, 0x3f, 0x1f, 0x1f, 0x0f, 0x0f, 0x07, 0x02, | ||
341 | 0xc0, 0x3e, 0x01, 0xe0, 0x9f, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, | ||
342 | 0x80, 0x80, 0xf0, 0x0f, 0x80, 0x78, 0x07, 0x00, 0x00, | ||
343 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
344 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
345 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0c, 0x10, 0x20, 0x40, 0x40, 0x80, 0x80, | ||
346 | 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, | ||
347 | 0x80, 0x80, 0x80, 0x80, 0x80, 0x81, 0x81, 0x81, 0x81, 0x81, 0x87, 0x87, 0x87, | ||
348 | 0x87, 0x87, 0x87, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xf0, | ||
349 | 0x0f, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, | ||
350 | 0x04, 0x04, 0x04, 0x04, 0x07, 0x00, 0x00, 0x00, 0x00, | ||
351 | }; | ||
352 | |||
353 | #endif | ||
326 | void usb_display_info(void) | 354 | void usb_display_info(void) |
327 | { | 355 | { |
328 | } | 356 | lcd_stop_scroll(); |
357 | lcd_clear_display(); | ||
329 | 358 | ||
359 | #ifdef HAVE_LCD_BITMAP | ||
360 | /* lcd_bitmap() only supports 16 pixels height! */ | ||
361 | lcd_bitmap(usb_logo, 6, 16, | ||
362 | BMPWIDTH_usb_logo, 8, false); | ||
363 | lcd_bitmap(usb_logo+BMPWIDTH_usb_logo, 6, 24, | ||
364 | BMPWIDTH_usb_logo, 8, false); | ||
365 | lcd_bitmap(usb_logo+BMPWIDTH_usb_logo*2, 6, 32, | ||
366 | BMPWIDTH_usb_logo, 8, false); | ||
367 | lcd_bitmap(usb_logo+BMPWIDTH_usb_logo*3, 6, 40, | ||
368 | BMPWIDTH_usb_logo, 8, false); | ||
369 | lcd_update(); | ||
370 | #else | ||
371 | lcd_puts(0, 0, "[USB Mode]"); | ||
330 | #endif | 372 | #endif |
373 | } | ||