]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - arch/h8300/generic/drivers/bit_iic.c
It is 12 years after C99 standardization - switch to stdint.h and its types.
[sysless.git] / arch / h8300 / generic / drivers / bit_iic.c
index bd3c3ace30fae7348a373ae2ae13d7f186ec5a97..f4ca9aa7eb10c076e7905843f1ab5fd4d8d9d3c1 100644 (file)
@@ -9,7 +9,7 @@
 
  *******************************************************************/
 
-#include <types.h>
+#include <stdint.h>
 #include <cpu_def.h>
 //#include <h8s2633h.h>
 #include <mcu_regs.h>
@@ -417,8 +417,8 @@ p /x *$ICCR0
 
 #endif
 
-__u8 test_buf_tx[TEST_BUF]={0x10,0x11,0x22,0x33};
-__u8 test_buf_rx[TEST_BUF];
+uint8_t test_buf_tx[TEST_BUF]={0x10,0x11,0x22,0x33};
+uint8_t test_buf_rx[TEST_BUF];
 
 int test_callback(struct iic_ifc *ifc, int code, struct iic_msg_head *msg);
 
@@ -458,8 +458,8 @@ int test_callback(struct iic_ifc *ifc, int code, struct iic_msg_head *msg)
 
 unsigned t_mkbd_cnt=0;
 
-__u8 t_mkbd_buf_tx[TEST_BUF];
-__u8 t_mkbd_buf_rx[TEST_BUF];
+uint8_t t_mkbd_buf_tx[TEST_BUF];
+uint8_t t_mkbd_buf_rx[TEST_BUF];
 
 int t_mkbd_callback(struct iic_ifc *ifc, int code, struct iic_msg_head *msg);
 
@@ -479,7 +479,7 @@ iic_msg_head_t t_mkbd_msg={
 int t_mkbd_callback(struct iic_ifc *ifc, int code, struct iic_msg_head *msg)
 {
   unsigned u,v;
-  __u8 *p;
+  uint8_t *p;
   
   if(code==IIC_MSG_CB_PROC) return test_callback(ifc, code, msg);
   switch(code){
@@ -498,7 +498,7 @@ int t_mkbd_callback(struct iic_ifc *ifc, int code, struct iic_msg_head *msg)
 }
 
 
-int test_rd_arr(char **ps, __u8 *buf, int n)
+int test_rd_arr(char **ps, uint8_t *buf, int n)
 {
   long val;
   int c;