From ca99f8efa49fbc053ea3a264c5cc23bda3b2a50c Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 12 Oct 2008 22:10:22 +0000 Subject: 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 --- flash/bootbox/main.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'flash/bootbox') diff --git a/flash/bootbox/main.c b/flash/bootbox/main.c index 7170867..2bd3fea 100644 --- a/flash/bootbox/main.c +++ b/flash/bootbox/main.c @@ -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(); -- cgit v1.1