diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-05-19 13:48:43 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-05-19 16:10:52 +0200 |
commit | b422be9bd0ddf517c6e7b804cb161f843939b1e0 (patch) | |
tree | 0cbf796f6e2f69a3792a9057655389686bdeb2e6 /firmware/export/stfm1000.h | |
parent | deb61e0622f58b58b6f61d1822054df04cf09456 (diff) | |
download | rockbox-b422be9bd0ddf517c6e7b804cb161f843939b1e0.tar.gz rockbox-b422be9bd0ddf517c6e7b804cb161f843939b1e0.zip |
Add stub STFM1000 tuner driver
Change-Id: I7f82f7b8971de75c92f84d12aaddccc50f3e47b1
Diffstat (limited to 'firmware/export/stfm1000.h')
-rw-r--r-- | firmware/export/stfm1000.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/firmware/export/stfm1000.h b/firmware/export/stfm1000.h new file mode 100644 index 0000000000..2143a81ad4 --- /dev/null +++ b/firmware/export/stfm1000.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * $Id$ | ||
10 | * | ||
11 | * Tuner header for the STFM1000 | ||
12 | * | ||
13 | * Copyright (C) 2012 Amaury Pouly | ||
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 __STFM1000__ | ||
26 | #define __STFM1000__ | ||
27 | #include <stdint.h> | ||
28 | |||
29 | #define HAVE_RADIO_REGION | ||
30 | #define HAVE_RADIO_RSSI | ||
31 | |||
32 | bool stfm1000_detect(void); | ||
33 | void stfm1000_init(void); | ||
34 | int stfm1000_set(int setting, int value); | ||
35 | int stfm1000_get(int setting); | ||
36 | |||
37 | #ifndef CONFIG_TUNER_MULTI | ||
38 | #define tuner_set stfm1000_set | ||
39 | #define tuner_get stfm1000_get | ||
40 | #endif | ||
41 | |||
42 | #endif /* __STFM1000__ */ | ||