Some simulator corrections

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2919 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-12-03 22:49:48 +00:00
parent b43dba8760
commit 4a66327583
3 changed files with 16 additions and 2 deletions

View file

@ -179,6 +179,17 @@ void mpeg_set_pitch(int pitch)
(void)pitch;
}
static int sleeptime;
void set_sleep_timer(int seconds)
{
sleeptime = seconds;
}
int get_sleep_timer(void)
{
return sleeptime;
}
#ifdef HAVE_LCD_CHARCELLS
void lcd_clearrect (int x, int y, int nx, int ny)
{

View file

@ -90,7 +90,7 @@ FIRMSRCS = $(LCDSRSC) sprintf.c id3.c debug.c usb.c mpeg.c power.c\
APPS = main.c tree.c menu.c credits.c main_menu.c language.c\
playlist.c wps.c wps-display.c settings.c status.c icons.c\
screens.c peakmeter.c viewer.c
screens.c peakmeter.c viewer.c sleeptimer.c
MENUS = games_menu.c demo_menu.c settings_menu.c sound_menu.c
@ -215,6 +215,9 @@ $(OBJDIR)/main.o: $(APPDIR)/main.c
$(OBJDIR)/wps.o: $(APPDIR)/wps.c
$(CC) $(APPCFLAGS) -c $< -o $@
$(OBJDIR)/sleeptimer.o: $(APPDIR)/sleeptimer.c
$(CC) $(APPCFLAGS) -c $< -o $@
$(OBJDIR)/viewer.o: $(APPDIR)/viewer.c
$(CC) $(APPCFLAGS) -c $< -o $@