]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - libs4c/i2c/i2c_drv.h
It is 12 years after C99 standardization - switch to stdint.h and its types.
[sysless.git] / libs4c / i2c / i2c_drv.h
index 50725d1d0c86e8ee638194161debab092a8702e4..82eb84fe0e22538e03446c30228247524b36e8c0 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef _I2C_DRV_H_
 #define _I2C_DRV_H_
 
-#include <types.h>
+#include <stdint.h>
 #include <cpu_def.h>
 
 #if defined(CONFIG_OC_I2C_DRV_SYSLESS)
@@ -73,6 +73,7 @@ typedef struct i2c_msg_head {
 
 typedef int (i2c_sfnc_t)(struct i2c_drv *drv, int code);
 typedef int (i2c_ctrl_fnc_t)(struct i2c_drv *drv, int ctrl, void *p);
+typedef int (i2c_stroke_fnc_t)(struct i2c_drv *drv);
 
 #define I2C_DRV_ON      1 /* flag indicating that driver is ready to operate */
 #define I2C_DRV_MS_INPR 2 /* master request in in progress */
@@ -96,6 +97,7 @@ typedef struct i2c_drv {
     void *failed;
     i2c_ctrl_fnc_t *ctrl_fnc;
     int (*poll_fnc)(struct i2c_drv *drv);
+    i2c_stroke_fnc_t *stroke_fnc;
     uint8_t sl_last_cmd; /* last received slave command */
   } i2c_drv_t;