From 18cfe431d7556f8cd7047018febe191073c26a1f Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Sun, 20 Aug 2006 23:05:47 +0000 Subject: Fix errors when building H10 Normal build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10668 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/iriver/h10/adc-h10.c | 41 ++++++++++++++++++++++++++++++++ firmware/target/arm/iriver/h10/lcd-h10.c | 16 +++++++++++-- 2 files changed, 55 insertions(+), 2 deletions(-) create mode 100755 firmware/target/arm/iriver/h10/adc-h10.c (limited to 'firmware/target/arm/iriver/h10') diff --git a/firmware/target/arm/iriver/h10/adc-h10.c b/firmware/target/arm/iriver/h10/adc-h10.c new file mode 100755 index 0000000000..0e17ae4f91 --- /dev/null +++ b/firmware/target/arm/iriver/h10/adc-h10.c @@ -0,0 +1,41 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2006 by Barry Wardell + * + * 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. + * + ****************************************************************************/ +#include "config.h" +#include "cpu.h" +#include "system.h" +#include "kernel.h" +#include "thread.h" +#include "adc.h" + +/* TODO: implement adc functionality */ +unsigned short adc_scan(int channel) +{ + (void)channel; + return 0; +} + +unsigned short adc_read(int channel) +{ + (void)channel; + return 0; +} + +void adc_init(void) +{ +} diff --git a/firmware/target/arm/iriver/h10/lcd-h10.c b/firmware/target/arm/iriver/h10/lcd-h10.c index 022dc22208..7367bdc09b 100644 --- a/firmware/target/arm/iriver/h10/lcd-h10.c +++ b/firmware/target/arm/iriver/h10/lcd-h10.c @@ -155,14 +155,26 @@ void lcd_blit(const fb_data* data, int x, int by, int width, (void)stride; } - +void lcd_yuv_blit(unsigned char * const src[3], + int src_x, int src_y, int stride, + int x, int y, int width, int height) +{ + (void)src; + (void)src_x; + (void)src_y; + (void)stride; + (void)x; + (void)y; + (void)width; + (void)height; +} /* Update a fraction of the display. */ void lcd_update_rect(int x, int y, int width, int height) { int y0, x0, y1, x1; - int newx,newwidth; + /*int newx,newwidth;*/ unsigned long *addr = (unsigned long *)lcd_framebuffer; -- cgit v1.2.3