diff options
Diffstat (limited to 'firmware/drivers/sh7034.h')
-rw-r--r-- | firmware/drivers/sh7034.h | 19 |
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 @@ | |||
153 | 153 | ||
154 | #define CASCR_ADDR 0x05FFFFEE | 154 | #define CASCR_ADDR 0x05FFFFEE |
155 | 155 | ||
156 | /* Port B data register bits */ | ||
157 | #define PBDR_LCD_SDA 0x0001 /* LCD serial data */ | ||
158 | #define PBDR_LCD_SCK 0x0002 /* LCD serial clock */ | ||
159 | #define PBDR_LCD_DC 0x0004 /* LCD data (1) / command (0) */ | ||
160 | #define PBDR_LCD_CS1 0x0008 /* LCD chip select 1 (active low) */ | ||
161 | #define PBDR_BTN_OFF 0x0010 /* Off button (active low) */ | ||
162 | #define PBDR_LED_RED 0x0040 /* Red LED */ | ||
163 | #define PBDR_BTN_ON 0x0100 /* On button (active low) */ | ||
164 | |||
165 | /* A/D control/status register bits */ | ||
166 | #define ADCSR_CH 0x07 /* Channel/group select */ | ||
167 | #define ADCSR_CKS 0x08 /* Clock select */ | ||
168 | #define ADCSR_SCAN 0x10 /* Scan mode */ | ||
169 | #define ADCSR_ADST 0x20 /* A/D start */ | ||
170 | #define ADCSR_ADIE 0x40 /* A/D interrupt enable */ | ||
171 | #define ADCSR_ADF 0x80 /* A/D end flag */ | ||
172 | |||
173 | /* A/D control register bits */ | ||
174 | #define ADCR_TRGE 0x80 /* Trigger enable */ | ||
156 | 175 | ||
157 | /* register macros for direct access: */ | 176 | /* register macros for direct access: */ |
158 | 177 | ||