diff options
author | Cástor Muñoz <cmvidal@gmail.com> | 2012-02-11 23:41:54 +0100 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2012-02-11 23:46:35 +0100 |
commit | e29619b4d23ae100379f64d83e3e2858a042bbf8 (patch) | |
tree | 639219a8ddf8be07c5864ca298a786aaa48244df /firmware/target/arm/s5l8702/ipod6g/piezo.h | |
parent | 6162d813e7bf29d53d040547dc6fd826ca0270df (diff) | |
download | rockbox-e29619b4d23ae100379f64d83e3e2858a042bbf8.tar.gz rockbox-e29619b4d23ae100379f64d83e3e2858a042bbf8.zip |
FS#12524 - iPod Classic/6G: hardware click support
Based on the piezo driver for the nano2g.
Signed-off-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'firmware/target/arm/s5l8702/ipod6g/piezo.h')
-rw-r--r-- | firmware/target/arm/s5l8702/ipod6g/piezo.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/firmware/target/arm/s5l8702/ipod6g/piezo.h b/firmware/target/arm/s5l8702/ipod6g/piezo.h new file mode 100644 index 0000000000..987d4ffdda --- /dev/null +++ b/firmware/target/arm/s5l8702/ipod6g/piezo.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2006-2007 Robert Keevil | ||
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 | void piezo_init(void); | ||
23 | void piezo_stop(void); | ||
24 | void piezo_clear(void); | ||
25 | bool piezo_busy(void); | ||
26 | void piezo_button_beep(bool beep, bool force); | ||