summaryrefslogtreecommitdiffstats
path: root/firmware/export/lcd-remote.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-02-17 22:38:38 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-02-17 22:38:38 +0000
commit00811840c9198833e6b234939b1509d52a51c880 (patch)
tree21659dbffbd8f1714d4c72eddfefa2f938291628 /firmware/export/lcd-remote.h
parent5519d82137062f49f264332af329e711299ce6f0 (diff)
downloadrockbox-00811840c9198833e6b234939b1509d52a51c880.tar.gz
rockbox-00811840c9198833e6b234939b1509d52a51c880.tar.bz2
rockbox-00811840c9198833e6b234939b1509d52a51c880.zip
Remote type autodetection on iriver, remote_type() returns REMOTETYPE_H100_LCD, REMOTETYPE_H300_LCD or REMOTETYPE_H300_NONLCD
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8721 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/lcd-remote.h')
-rw-r--r--firmware/export/lcd-remote.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h
index 8e5fa950b1..c27a0d4e73 100644
--- a/firmware/export/lcd-remote.h
+++ b/firmware/export/lcd-remote.h
@@ -23,12 +23,20 @@
#include <stdbool.h>
#include "cpu.h"
#include "config.h"
+#include "adc.h"
#ifdef HAVE_REMOTE_LCD
#define STYLE_DEFAULT 0
#define STYLE_INVERT 1
+#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
+#define REMOTETYPE_H100_LCD 1
+#define REMOTETYPE_H300_LCD 2
+#define REMOTETYPE_H300_NONLCD 3
+extern int remote_type(void);
+#endif
+
extern void lcd_remote_init(void);
extern int lcd_remote_default_contrast(void);
extern void lcd_remote_set_contrast(int val);