From 2370998a873f8be85825c8a3b0ccca5a9913c20e Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Mon, 12 Mar 2007 22:12:20 +0000 Subject: Disable bootloader messages in the H10 and Sansa bootloaders unless the PLAY (on H10) or RIGHT (on Sansa) button is being held. Messages are still displayed if an error occurs. This has already been implemented for iPod bootloaders, but still needs implementing for the other bootloaders. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12742 a1c6a512-1295-4272-9138-f99709370657 --- firmware/kernel.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/kernel.c') diff --git a/firmware/kernel.c b/firmware/kernel.c index c304e45..e794fed 100644 --- a/firmware/kernel.c +++ b/firmware/kernel.c @@ -72,6 +72,10 @@ void sleep(int ticks) counter = TCNTO4; } while(counter > 0); +#elif defined(CPU_PP) && defined(BOOTLOADER) + unsigned stop = USEC_TIMER + ticks * (1000000/HZ); + while (TIME_BEFORE(USEC_TIMER, stop)) + switch_thread(true,NULL); #else sleep_thread(ticks); #endif -- cgit v1.1