diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-11-16 10:25:43 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-11-16 10:25:43 +0000 |
commit | be716c0be80e3f64a81a3f19b683db40489f47a1 (patch) | |
tree | bc461ad1de8b5fda6c3c14d0cfd737bdc69ddc83 /apps/main.c | |
parent | b7508a766df991539bec5e10fd7739001c1fdb99 (diff) | |
download | rockbox-be716c0be80e3f64a81a3f19b683db40489f47a1.tar.gz rockbox-be716c0be80e3f64a81a3f19b683db40489f47a1.zip |
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
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ | |||
118 | #include "m5636.h" | 118 | #include "m5636.h" |
119 | #endif | 119 | #endif |
120 | 120 | ||
121 | #ifdef HAVE_HARDWARE_CLICK | ||
122 | #include "piezo.h" | ||
123 | #endif | ||
124 | |||
121 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) | 125 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
122 | #define MAIN_NORETURN_ATTR NORETURN_ATTR | 126 | #define MAIN_NORETURN_ATTR NORETURN_ATTR |
123 | #else | 127 | #else |
@@ -507,6 +511,10 @@ static void init(void) | |||
507 | radio_init(); | 511 | radio_init(); |
508 | #endif | 512 | #endif |
509 | 513 | ||
514 | #ifdef HAVE_HARDWARE_CLICK | ||
515 | piezo_init(); | ||
516 | #endif | ||
517 | |||
510 | /* Keep the order of this 3 (viewportmanager handles statusbars) | 518 | /* Keep the order of this 3 (viewportmanager handles statusbars) |
511 | * Must be done before any code uses the multi-screen API */ | 519 | * Must be done before any code uses the multi-screen API */ |
512 | CHART(">gui_syncstatusbar_init"); | 520 | CHART(">gui_syncstatusbar_init"); |