From e25c1c6e43aafbbe6de077f142776da2e00c75cd Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 11 Nov 2008 14:46:13 +0000 Subject: Add more driver stubs to make the Fuze and e200v2 main builds compile; Correct the memory definition for the Fuze (8MB) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19090 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/si4700.h | 36 ++++++++++++++++++++++++++++++++++++ firmware/export/tuner.h | 5 +++++ firmware/export/usb.h | 1 + 3 files changed, 42 insertions(+) create mode 100644 firmware/export/si4700.h (limited to 'firmware/export') diff --git a/firmware/export/si4700.h b/firmware/export/si4700.h new file mode 100644 index 0000000000..a740ae03ab --- /dev/null +++ b/firmware/export/si4700.h @@ -0,0 +1,36 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * + * $Id$ + * + * Tuner header for the Silicon Labs SI4700 + * + * Copyright (C) 2008 Dave Chapman + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + +#ifndef _SI4700_H_ +#define _SI4700_H_ + +int si4700_set(int setting, int value); +int si4700_get(int setting); + +#ifndef CONFIG_TUNER_MULTI +#define tuner_set si4700_set +#define tuner_get si4700_get +#endif + +#endif /* _SI4700_H_ */ diff --git a/firmware/export/tuner.h b/firmware/export/tuner.h index a081472fa1..8f1839a7bb 100644 --- a/firmware/export/tuner.h +++ b/firmware/export/tuner.h @@ -102,6 +102,11 @@ extern int (*tuner_get)(int setting); #include "tea5767.h" #endif +/* Silicon Labs 4700 */ +#if (CONFIG_TUNER & SI4700) +#include "si4700.h" +#endif + #endif /* SIMULATOR */ /* Additional messages that get enumerated after tuner driver headers */ diff --git a/firmware/export/usb.h b/firmware/export/usb.h index 4275fa9c6a..00517b2475 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h @@ -64,6 +64,7 @@ enum { #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ (CONFIG_KEYPAD == SANSA_C200_PAD) || \ (CONFIG_KEYPAD == SANSA_CLIP_PAD) || \ + (CONFIG_KEYPAD == SANSA_FUZE_PAD) || \ (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) #define USBPOWER_BUTTON BUTTON_SELECT #define USBPOWER_BTN_IGNORE BUTTON_POWER -- cgit v1.2.3