]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - board/h8300/h8canusb/defines/system_def_h8canusb.h
It is 12 years after C99 standardization - switch to stdint.h and its types.
[sysless.git] / board / h8300 / h8canusb / defines / system_def_h8canusb.h
index d2baa8c2395fd3d34cf96b0b6ec15c0562b704e9..3c367a5da7c83a29b25436c8b494cbe803b29719 100644 (file)
@@ -28,43 +28,43 @@ unsigned long cpu_sys_hz;   /* actual system clock frequency  */
 volatile unsigned long msec_time;
 
 /* Keyboard KL41 (CS3) */
-#define KL41_LCD_INST  (volatile __u8 * const)(0x700000)
-#define KL41_LCD_STAT  (volatile __u8 * const)(0x700001)
-#define KL41_LCD_WDATA (volatile __u8 * const)(0x700002)
-#define KL41_LCD_RDATA (volatile __u8 * const)(0x700003)
-#define KL41_LED_WR    (volatile __u8 * const)(0x700001)
-#define KL41_KBD_WR    (volatile __u8 * const)(0x700003)
-#define KL41_KBD_RD    (volatile __u8 * const)(0x700004)
+#define KL41_LCD_INST  (volatile uint8_t * const)(0x700000)
+#define KL41_LCD_STAT  (volatile uint8_t * const)(0x700001)
+#define KL41_LCD_WDATA (volatile uint8_t * const)(0x700002)
+#define KL41_LCD_RDATA (volatile uint8_t * const)(0x700003)
+#define KL41_LED_WR    (volatile uint8_t * const)(0x700001)
+#define KL41_KBD_WR    (volatile uint8_t * const)(0x700003)
+#define KL41_KBD_RD    (volatile uint8_t * const)(0x700004)
 
 #define KL41_SUPPORT_ENABLED
 
 
 
 /* SGM Small graphics LCD module 240x64 (CS3) */
-#define SGM_LCD_DATA   (volatile __u8 * const)(0x700000)
-#define SGM_LCD_CMD    (volatile __u8 * const)(0x700001)
-#define SGM_LCD_STAT   (volatile __u8 * const)(0x700001)
+#define SGM_LCD_DATA   (volatile uint8_t * const)(0x700000)
+#define SGM_LCD_CMD    (volatile uint8_t * const)(0x700001)
+#define SGM_LCD_STAT   (volatile uint8_t * const)(0x700001)
 /* Keyboard on MO_KBD1 */
-#define SGM_KBDI       (volatile __u8 * const)(0x700002)
-#define SGM_KBDO       (volatile __u8 * const)(0x700002)
+#define SGM_KBDI       (volatile uint8_t * const)(0x700002)
+#define SGM_KBDO       (volatile uint8_t * const)(0x700002)
 
 //#define SGM_SUPPORT_ENABLED
 
 /* XRAM 1 MB (CS1) */
-#define XRAM_START    (volatile __u8 * const)(0x200000)
+#define XRAM_START    (volatile uint8_t * const)(0x200000)
 
 #define XRAM_SUPPORT_ENABLED
 
 /* SRAM 32 kB (CS3) */
-//#define SRAM_START    (volatile __u8 * const)(0x610000)
+//#define SRAM_START    (volatile uint8_t * const)(0x610000)
 
 
 #if 1
 #define ISR_USB_INTV           EXCPTVEC_IRQ2   /* pin IRQ2 on PF.0 */
 #define PDIUSB_TEST_IRQ()      (!(*DIO_PORTF & 1))
-#define PDIUSB_READ_DATA_ADDR   (volatile __u8 * const)(0x500000)
-#define PDIUSB_WRITE_DATA_ADDR  (volatile __u8 * const)(0x500000)
-#define PDIUSB_COMMAND_ADDR     (volatile __u8 * const)(0x500001)
+#define PDIUSB_READ_DATA_ADDR   (volatile uint8_t * const)(0x500000)
+#define PDIUSB_WRITE_DATA_ADDR  (volatile uint8_t * const)(0x500000)
+#define PDIUSB_COMMAND_ADDR     (volatile uint8_t * const)(0x500001)
 
 /* P1.0 .. DACK_N/DMACK0, P7.0 .. DMREQ/DREQ0, P7.2 .. EOT_N/TEND0 */
 #undef  PDIUSB_WITH_ADD_IRQ_HANDLER
@@ -75,9 +75,9 @@ volatile unsigned long msec_time;
 
 
 /* IDE (CS4) (CS5) powered by PF2 */
-#define SIDE_START1   (volatile __u8 * const)(0x800000)
-#define SIDE_START2   (volatile __u8 * const)(0xA00000)
-#define IDE0_DATA     (volatile __u16 * const)(SIDE_START1+0) /* DATA */
+#define SIDE_START1   (volatile uint8_t * const)(0x800000)
+#define SIDE_START2   (volatile uint8_t * const)(0xA00000)
+#define IDE0_DATA     (volatile uint16_t * const)(SIDE_START1+0) /* DATA */
 #define IDE0_ERROR     (SIDE_START1+2) /* Error/Features RO/WO */
 #define IDE0_NSECTOR   (SIDE_START1+4) /* Sector Count R/W */
 #define IDE0_SECTOR    (SIDE_START1+6) /* SN, LBA 0-7 */
@@ -112,9 +112,9 @@ volatile unsigned long msec_time;
 /* 0xffd000-0xffdfff .. 4 kB for Flash emulation */
 /* 0xffe000-0xffffc0 .. 4 kB - 64 B free*/
 /* 0xffffc0-0xffffff .. 64 B free*/
-#define IRAM_START    (volatile __u8 * const)(0xffb000)
-#define IRAM_START1   (volatile __u8 * const)(0xffe000)
-#define FRAM_START    (volatile __u8 * const)(0xffffc0)
+#define IRAM_START    (volatile uint8_t * const)(0xffb000)
+#define IRAM_START1   (volatile uint8_t * const)(0xffe000)
+#define FRAM_START    (volatile uint8_t * const)(0xffffc0)
 
 /* SCI0 - IrDA */
 /* SCI1 - IIC0 (P34, P35) */
@@ -143,10 +143,10 @@ volatile unsigned long msec_time;
 #define SHADOW_REG_WR(_reg,_val) \
     (*(_reg)=_reg##_shadow=(_val))
 
-__u8 DIO_P1DDR_shadow;
-__u8 DIO_P3DDR_shadow;
-__u8 DIO_PFDDR_shadow;
-__u8 DIO_PJDDR_shadow;
+uint8_t DIO_P1DDR_shadow;
+uint8_t DIO_P3DDR_shadow;
+uint8_t DIO_PFDDR_shadow;
+uint8_t DIO_PJDDR_shadow;
 
 #define DEB_LED_INIT() \
        do {\