From be716c0be80e3f64a81a3f19b683db40489f47a1 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 16 Nov 2011 10:25:43 +0000 Subject: Finally commit FS#5111 - piezo clicker for ipods! Origional implementation by Robert Keevil with contributions from Frederik Vestre, Stoyan Stratev, Craig Elliott, Michael Sparmann, Thomas Schott, Rosso Maltese, and syncs from a bunch of other people! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30995 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/main.c') diff --git a/apps/main.c b/apps/main.c index 38de780c8d..9d83c62965 100644 --- a/apps/main.c +++ b/apps/main.c @@ -118,6 +118,10 @@ #include "m5636.h" #endif +#ifdef HAVE_HARDWARE_CLICK +#include "piezo.h" +#endif + #if (CONFIG_PLATFORM & PLATFORM_NATIVE) #define MAIN_NORETURN_ATTR NORETURN_ATTR #else @@ -507,6 +511,10 @@ static void init(void) radio_init(); #endif +#ifdef HAVE_HARDWARE_CLICK + piezo_init(); +#endif + /* Keep the order of this 3 (viewportmanager handles statusbars) * Must be done before any code uses the multi-screen API */ CHART(">gui_syncstatusbar_init"); -- cgit v1.2.3