summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/si4700.h36
-rw-r--r--firmware/export/tuner.h5
-rw-r--r--firmware/export/usb.h1
3 files changed, 42 insertions, 0 deletions
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 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * $Id$
10 *
11 * Tuner header for the Silicon Labs SI4700
12 *
13 * Copyright (C) 2008 Dave Chapman
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 ****************************************************************************/
24
25#ifndef _SI4700_H_
26#define _SI4700_H_
27
28int si4700_set(int setting, int value);
29int si4700_get(int setting);
30
31#ifndef CONFIG_TUNER_MULTI
32#define tuner_set si4700_set
33#define tuner_get si4700_get
34#endif
35
36#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);
102#include "tea5767.h" 102#include "tea5767.h"
103#endif 103#endif
104 104
105/* Silicon Labs 4700 */
106#if (CONFIG_TUNER & SI4700)
107#include "si4700.h"
108#endif
109
105#endif /* SIMULATOR */ 110#endif /* SIMULATOR */
106 111
107/* Additional messages that get enumerated after tuner driver headers */ 112/* 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 {
64#elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ 64#elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \
65 (CONFIG_KEYPAD == SANSA_C200_PAD) || \ 65 (CONFIG_KEYPAD == SANSA_C200_PAD) || \
66 (CONFIG_KEYPAD == SANSA_CLIP_PAD) || \ 66 (CONFIG_KEYPAD == SANSA_CLIP_PAD) || \
67 (CONFIG_KEYPAD == SANSA_FUZE_PAD) || \
67 (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) 68 (CONFIG_KEYPAD == PHILIPS_SA9200_PAD)
68#define USBPOWER_BUTTON BUTTON_SELECT 69#define USBPOWER_BUTTON BUTTON_SELECT
69#define USBPOWER_BTN_IGNORE BUTTON_POWER 70#define USBPOWER_BTN_IGNORE BUTTON_POWER