mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Added stub for battery_level()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1365 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
761cd95f23
commit
1812eae051
3 changed files with 39 additions and 13 deletions
33
uisimulator/common/stubs.c
Normal file
33
uisimulator/common/stubs.c
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
/***************************************************************************
|
||||||
|
* __________ __ ___.
|
||||||
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||||
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||||
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||||
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||||
|
* \/ \/ \/ \/ \/
|
||||||
|
* $Id$
|
||||||
|
*
|
||||||
|
* Copyright (C) 2002 by Björn Stenberg <bjorn@haxx.se>
|
||||||
|
*
|
||||||
|
* All files in this archive are subject to the GNU General Public License.
|
||||||
|
* See the file COPYING in the source tree root for full license agreement.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
void backlight_on(void)
|
||||||
|
{
|
||||||
|
/* we could do something better here! */
|
||||||
|
}
|
||||||
|
|
||||||
|
void backlight_time(int dummy)
|
||||||
|
{
|
||||||
|
(void)dummy;
|
||||||
|
}
|
||||||
|
|
||||||
|
int battery_level(void)
|
||||||
|
{
|
||||||
|
return 73;
|
||||||
|
}
|
||||||
|
|
@ -42,7 +42,7 @@ DISPLAY = -DHAVE_LCD_BITMAP
|
||||||
KEYPAD = -DHAVE_RECORDER_KEYPAD
|
KEYPAD = -DHAVE_RECORDER_KEYPAD
|
||||||
|
|
||||||
DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \
|
DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \
|
||||||
$(KEYPAD) $(DISPLAY)
|
$(KEYPAD) $(DISPLAY) -DLCD_PROPFONTS
|
||||||
|
|
||||||
LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl
|
LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl
|
||||||
|
|
||||||
|
|
@ -84,7 +84,7 @@ ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP)
|
||||||
APPS += tetris.c sokoban.c bounce.c boxes.c icons.c bmp.c
|
APPS += tetris.c sokoban.c bounce.c boxes.c icons.c bmp.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SRCS = screenhack.c uibasic.c resources.c visual.c lcd-x11.c \
|
SRCS = screenhack.c uibasic.c resources.c visual.c lcd-x11.c stubs.c \
|
||||||
button-x11.c io.c thread.c $(APPS) $(MENUS) $(FIRMSRCS)
|
button-x11.c io.c thread.c $(APPS) $(MENUS) $(FIRMSRCS)
|
||||||
|
|
||||||
ifdef MPEG_PLAY
|
ifdef MPEG_PLAY
|
||||||
|
|
@ -221,6 +221,9 @@ $(OBJDIR)/sprintf.o: $(COMMON)/sprintf.c
|
||||||
$(OBJDIR)/usb.o: $(FIRMWAREDIR)/usb.c
|
$(OBJDIR)/usb.o: $(FIRMWAREDIR)/usb.c
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
$(OBJDIR)/stubs.o: ../common/stubs.c
|
||||||
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
|
||||||
# these ones are simulator-specific
|
# these ones are simulator-specific
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -109,13 +109,3 @@ void lcd_update (void)
|
||||||
/* Logf("lcd_update: Draws %d pixels, clears %d pixels", p, cp);*/
|
/* Logf("lcd_update: Draws %d pixels, clears %d pixels", p, cp);*/
|
||||||
XSync(dpy,False);
|
XSync(dpy,False);
|
||||||
}
|
}
|
||||||
|
|
||||||
void backlight_on(void)
|
|
||||||
{
|
|
||||||
/* we could do something better here! */
|
|
||||||
}
|
|
||||||
|
|
||||||
void backlight_time(int dummy)
|
|
||||||
{
|
|
||||||
(void)dummy;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue