summaryrefslogtreecommitdiffstats
path: root/flash/bootbox
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-10-12 22:10:22 +0000
committerJens Arnold <amiconn@rockbox.org>2008-10-12 22:10:22 +0000
commitca99f8efa49fbc053ea3a264c5cc23bda3b2a50c (patch)
treef0924d9866b1a6323ca58be4b5e67e42ea8c5753 /flash/bootbox
parent142ac2a35af99ddd80636b8973c5ee082550c215 (diff)
downloadrockbox-ca99f8efa49fbc053ea3a264c5cc23bda3b2a50c.tar.gz
rockbox-ca99f8efa49fbc053ea3a264c5cc23bda3b2a50c.tar.bz2
rockbox-ca99f8efa49fbc053ea3a264c5cc23bda3b2a50c.zip
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
Diffstat (limited to 'flash/bootbox')
-rw-r--r--flash/bootbox/main.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/flash/bootbox/main.c b/flash/bootbox/main.c
index 71708675f4..2bd3fea115 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();