diff options
Diffstat (limited to 'firmware/export/sh7034.h')
-rw-r--r-- | firmware/export/sh7034.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/firmware/export/sh7034.h b/firmware/export/sh7034.h index 5dd7d96d5f..7cb48d6504 100644 --- a/firmware/export/sh7034.h +++ b/firmware/export/sh7034.h | |||
@@ -153,6 +153,17 @@ | |||
153 | 153 | ||
154 | #define CASCR_ADDR 0x05FFFFEE | 154 | #define CASCR_ADDR 0x05FFFFEE |
155 | 155 | ||
156 | /* byte halves of the ports */ | ||
157 | #define PADRH_ADDR 0x05FFFFC0 | ||
158 | #define PADRL_ADDR 0x05FFFFC1 | ||
159 | #define PBDRH_ADDR 0x05FFFFC2 | ||
160 | #define PBDRL_ADDR 0x05FFFFC3 | ||
161 | #define PAIORH_ADDR 0x05FFFFC4 | ||
162 | #define PAIORL_ADDR 0x05FFFFC5 | ||
163 | #define PBIORH_ADDR 0x05FFFFC6 | ||
164 | #define PBIORL_ADDR 0x05FFFFC7 | ||
165 | |||
166 | |||
156 | /* Port B data register bits */ | 167 | /* Port B data register bits */ |
157 | #define PBDR_LCD_SDA 0x0001 /* LCD serial data */ | 168 | #define PBDR_LCD_SDA 0x0001 /* LCD serial data */ |
158 | #define PBDR_LCD_SCK 0x0002 /* LCD serial clock */ | 169 | #define PBDR_LCD_SCK 0x0002 /* LCD serial clock */ |
@@ -310,6 +321,17 @@ | |||
310 | 321 | ||
311 | #define CASCR (*((volatile unsigned char*)CASCR_ADDR)) | 322 | #define CASCR (*((volatile unsigned char*)CASCR_ADDR)) |
312 | 323 | ||
324 | /* byte halves of the ports */ | ||
325 | #define PADRH (*((volatile unsigned char*)PADRH_ADDR)) | ||
326 | #define PADRL (*((volatile unsigned char*)PADRL_ADDR)) | ||
327 | #define PBDRH (*((volatile unsigned char*)PBDRH_ADDR)) | ||
328 | #define PBDRL (*((volatile unsigned char*)PBDRL_ADDR)) | ||
329 | #define PAIORH (*((volatile unsigned char*)PAIORH_ADDR)) | ||
330 | #define PAIORL (*((volatile unsigned char*)PAIORL_ADDR)) | ||
331 | #define PBIORH (*((volatile unsigned char*)PBIORH_ADDR)) | ||
332 | #define PBIORL (*((volatile unsigned char*)PBIORL_ADDR)) | ||
333 | |||
334 | |||
313 | /*************************************************************************** | 335 | /*************************************************************************** |
314 | * Register bit definitions | 336 | * Register bit definitions |
315 | **************************************************************************/ | 337 | **************************************************************************/ |