forked from len0rd/rockbox
Commit FS#9467 - initial work on port to Sansa Clip by Rafaël Carré and François Dinel. A few cosmetic changes were made by me prior to committing: 1) TAB policing in button-clip.c; 2) Add François Dinel to CREDITS; 3) Add François Dinel as (C) holder in button-target.h (it was previously blank); 4) Add Rockbox header to bootloader/sansa_as3525.c with Rafaël Carré as (C) holder; 5) Change target_id to 50 (next available number) in tools/configure and fixed indentation; 6) Change MODEL_NUMBER in config-clip.h to 50 (next available number); 7) Remove unused in/out macros from system-target.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18782 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0f933f6210
commit
da8bff107e
20 changed files with 1372 additions and 3 deletions
|
|
@ -39,4 +39,7 @@ meizu_m3.c
|
|||
ondavx747.c
|
||||
#elif defined(CREATIVE_ZVx)
|
||||
creativezvm.c
|
||||
#elif defined(HAVE_AS3525)
|
||||
sansa_as3525.c
|
||||
show_logo.c
|
||||
#endif
|
||||
|
|
|
|||
58
bootloader/sansa_as3525.c
Normal file
58
bootloader/sansa_as3525.c
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
/***************************************************************************
|
||||
* __________ __ ___.
|
||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
* \/ \/ \/ \/ \/
|
||||
* $Id:$
|
||||
*
|
||||
* Copyright (C) 2008 by Rafaël Carré
|
||||
*
|
||||
* Based on Rockbox iriver bootloader by Linus Nielsen Feltzing
|
||||
* and the ipodlinux bootloader by Daniel Palffy and Bernard Leach
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
* KIND, either express or implied.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <system.h>
|
||||
#include <inttypes.h>
|
||||
#include "lcd.h"
|
||||
#include "common.h"
|
||||
#include "config.h"
|
||||
|
||||
int show_logo(void);
|
||||
void main(void)
|
||||
{
|
||||
lcd_init_device();
|
||||
lcd_clear_display();
|
||||
|
||||
lcd_update();
|
||||
|
||||
lcd_enable(true);
|
||||
|
||||
show_logo();
|
||||
|
||||
#ifdef SANSA_CLIP
|
||||
/* Use hardware scrolling */
|
||||
|
||||
lcd_write_command(0x26); /* scroll setup */
|
||||
lcd_write_command(0x01); /* columns scrolled per step */
|
||||
lcd_write_command(0x00); /* start page */
|
||||
lcd_write_command(0x00); /* steps freqency */
|
||||
lcd_write_command(0x07); /* end page (including) */
|
||||
|
||||
lcd_write_command(0x2F); /* start horizontal scrolling */
|
||||
#endif
|
||||
|
||||
/* never returns */
|
||||
while(1) ;
|
||||
}
|
||||
|
|
@ -29,8 +29,12 @@
|
|||
int show_logo( void )
|
||||
{
|
||||
char boot_version[32];
|
||||
|
||||
|
||||
#if LCD_WIDTH <= 128
|
||||
snprintf(boot_version, sizeof(boot_version), "Boot %s", APPSVERSION);
|
||||
#else
|
||||
snprintf(boot_version, sizeof(boot_version), "Boot Ver. %s", APPSVERSION);
|
||||
#endif
|
||||
|
||||
lcd_clear_display();
|
||||
lcd_bitmap(rockboxlogo, 0, 10, BMPWIDTH_rockboxlogo, BMPHEIGHT_rockboxlogo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue