diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-02-04 10:02:42 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-02-04 10:02:42 +0000 |
| commit | a00619fd7bcf24cd9f34d0779e4a3cd9d82e9379 (patch) | |
| tree | f1135556ac8b90c0fec234b5e722b8447873b46a /apps/plugins | |
| parent | 881698476de41abb24d84543998ba9932cc6848b (diff) | |
| download | rockbox-a00619fd7bcf24cd9f34d0779e4a3cd9d82e9379.zip rockbox-a00619fd7bcf24cd9f34d0779e4a3cd9d82e9379.tar.gz rockbox-a00619fd7bcf24cd9f34d0779e4a3cd9d82e9379.tar.bz2 rockbox-a00619fd7bcf24cd9f34d0779e4a3cd9d82e9379.tar.xz | |
nah, this doesn't depend on MAS but assumed bad stuff about LED/SH
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5777 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/metronome.c | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/apps/plugins/metronome.c b/apps/plugins/metronome.c index 92dc0e3..e6a7049 100644 --- a/apps/plugins/metronome.c +++ b/apps/plugins/metronome.c @@ -18,7 +18,7 @@ ****************************************************************************/ #include "plugin.h" -#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) +#if !defined(SIMULATOR) /* only do this for targets with MAS */ /* variable button definitions */ @@ -47,6 +47,14 @@ #define METRONOME_VOL_DOWN (BUTTON_ON | BUTTON_LEFT) #define METRONOME_TAP BUTTON_ON +#elif CONFIG_KEYPAD == IRIVER_H100_PAD +#define METRONOME_QUIT BUTTON_OFF +#define METRONOME_PLAYPAUSE BUTTON_ON +#define METRONOME_VOL_UP BUTTON_UP +#define METRONOME_VOL_DOWN BUTTON_DOWN +#define METRONOME_TAP BUTTON_SELECT +#define METRONOME_MSG_START "press play" +#define METRONOME_MSG_STOP "press pause" #endif static struct plugin_api* rb; @@ -122,11 +130,16 @@ static unsigned char sound[]={ -void led(bool on){ +void led(bool on) +{ +#if CONFIG_CPU == SH7034 if(on) - or_b(0x40, &PBDRL); + or_b(0x40, &PBDRL); else - and_b(~0x40, &PBDRL); + and_b(~0x40, &PBDRL); +#else + (void)on; +#endif } void calc_period(void){ |