summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-24 08:49:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-24 08:49:55 +0000
commit18663e0fd1dfaddb506bab8ecd8cffe8c7b53651 (patch)
treece5f59f430959d84c7f1f3720f017b6e56d7e0cf /firmware/drivers
parent97accf6a5aefd95a722c271277639249692ad2b9 (diff)
more data needed by the Recorder build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@679 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/sh7034.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/firmware/drivers/sh7034.h b/firmware/drivers/sh7034.h
index b94315f7d5..0309a8b432 100644
--- a/firmware/drivers/sh7034.h
+++ b/firmware/drivers/sh7034.h
@@ -153,6 +153,25 @@
#define CASCR_ADDR 0x05FFFFEE
+/* Port B data register bits */
+#define PBDR_LCD_SDA 0x0001 /* LCD serial data */
+#define PBDR_LCD_SCK 0x0002 /* LCD serial clock */
+#define PBDR_LCD_DC 0x0004 /* LCD data (1) / command (0) */
+#define PBDR_LCD_CS1 0x0008 /* LCD chip select 1 (active low) */
+#define PBDR_BTN_OFF 0x0010 /* Off button (active low) */
+#define PBDR_LED_RED 0x0040 /* Red LED */
+#define PBDR_BTN_ON 0x0100 /* On button (active low) */
+
+/* A/D control/status register bits */
+#define ADCSR_CH 0x07 /* Channel/group select */
+#define ADCSR_CKS 0x08 /* Clock select */
+#define ADCSR_SCAN 0x10 /* Scan mode */
+#define ADCSR_ADST 0x20 /* A/D start */
+#define ADCSR_ADIE 0x40 /* A/D interrupt enable */
+#define ADCSR_ADF 0x80 /* A/D end flag */
+
+/* A/D control register bits */
+#define ADCR_TRGE 0x80 /* Trigger enable */
/* register macros for direct access: */