diff options
Diffstat (limited to 'firmware/target/arm/s5l8702/ipod6g/adc-ipod6g.c')
-rw-r--r-- | firmware/target/arm/s5l8702/ipod6g/adc-ipod6g.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/firmware/target/arm/s5l8702/ipod6g/adc-ipod6g.c b/firmware/target/arm/s5l8702/ipod6g/adc-ipod6g.c new file mode 100644 index 0000000000..201af5ee00 --- /dev/null +++ b/firmware/target/arm/s5l8702/ipod6g/adc-ipod6g.c | |||
@@ -0,0 +1,39 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: adc-s5l8700.c 21775 2009-07-11 14:12:02Z bertrik $ | ||
9 | * | ||
10 | * Copyright (C) 2009 by Bertrik Sikken | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #include "config.h" | ||
23 | |||
24 | #include "inttypes.h" | ||
25 | #include "s5l8702.h" | ||
26 | #include "adc.h" | ||
27 | #include "adc-target.h" | ||
28 | #include "pmu-target.h" | ||
29 | #include "kernel.h" | ||
30 | |||
31 | unsigned short adc_read(int channel) | ||
32 | { | ||
33 | return pmu_read_adc(channel); | ||
34 | } | ||
35 | |||
36 | void adc_init(void) | ||
37 | { | ||
38 | } | ||
39 | |||