#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)
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 */
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;