1
0
Fork 0
forked from len0rd/rockbox

Archos flash loader: compile with -Os and make all internal functions static to save space. main() and _main() must not be static or they wouldn't end up in IRAM for execution. * Also make some bootbox functions static, and drop the useless return value from charging_screen().

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18791 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2008-10-12 22:10:22 +00:00
parent 142ac2a35a
commit ca99f8efa4
4 changed files with 33 additions and 40 deletions

View file

@ -44,7 +44,7 @@
#include "usb.h"
#include "powermgmt.h"
void usb_screen(void)
static void usb_screen(void)
{
lcd_clear_display();
lcd_puts(0, 0, "USB mode");
@ -55,7 +55,7 @@ void usb_screen(void)
}
}
void show_logo(void)
static void show_logo(void)
{
lcd_clear_display();
lcd_puts(0, 0, "Rockbox");
@ -64,13 +64,7 @@ void show_logo(void)
}
#if CONFIG_CHARGING
/*
bool backlight_get_on_when_charging(void)
{
return false;
}
*/
void charging_screen(void)
static void charging_screen(void)
{
unsigned int button;
const char* msg;
@ -123,7 +117,7 @@ void charging_screen(void)
#endif /* CONFIG_CHARGING */
/* prompt user to plug USB and fix a problem */
void prompt_usb(const char* msg1, const char* msg2)
static void prompt_usb(const char* msg1, const char* msg2)
{
int button;
lcd_clear_display();