]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - board/h8300/jt_usb1/defines/system_def_jt_usb1.h
It is 12 years after C99 standardization - switch to stdint.h and its types.
[sysless.git] / board / h8300 / jt_usb1 / defines / system_def_jt_usb1.h
index d433eec54c96c1756f0c082b5e7fa7ab5111ca61..587c2358f2041596e1c7fa3a56b33222ac2dbf50 100644 (file)
@@ -34,9 +34,9 @@ volatile unsigned long msec_time;
 #if 1
 #define ISR_USB_INTV           EXCPTVEC_IRQ6   /* pin IRQ6 on PG.0 */
 #define PDIUSB_TEST_IRQ()      (!(*DIO_PORTG & 1))
-#define PDIUSB_READ_DATA_ADDR   (volatile __u8 * const)(0x600000)
-#define PDIUSB_WRITE_DATA_ADDR  (volatile __u8 * const)(0x600000)
-#define PDIUSB_COMMAND_ADDR     (volatile __u8 * const)(0x600001)
+#define PDIUSB_READ_DATA_ADDR   (volatile uint8_t * const)(0x600000)
+#define PDIUSB_WRITE_DATA_ADDR  (volatile uint8_t * const)(0x600000)
+#define PDIUSB_COMMAND_ADDR     (volatile uint8_t * const)(0x600001)
 
 /* P1.0 .. DACK_N/DMACK0, P7.0 .. DMREQ/DREQ0, P7.2 .. EOT_N/TEND0 */
 #undef  PDIUSB_WITH_ADD_IRQ_HANDLER
@@ -49,9 +49,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 - RS232/485 */
 /* SCI1 - x */
@@ -78,11 +78,11 @@ 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_P7DDR_shadow;
-__u8 DIO_PFDDR_shadow;
-__u8 DIO_PGDDR_shadow;
+uint8_t DIO_P1DDR_shadow;
+uint8_t DIO_P3DDR_shadow;
+uint8_t DIO_P7DDR_shadow;
+uint8_t DIO_PFDDR_shadow;
+uint8_t DIO_PGDDR_shadow;
 
 #define DEB_LED_INIT() \
        do { /* set P3.2, P3.6, P3.7 LED output */ \