/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2018-03-24 LaiYiKeTang the first version */ #ifndef __DRVI2C_H__ #define __DRVI2C_H__ #include #include #include #include "board.h" struct rt1021_i2c_bus { struct rt_i2c_bus_device parent; LPI2C_Type *I2C; struct rt_i2c_msg *msg; rt_uint32_t msg_cnt; volatile rt_uint32_t msg_ptr; volatile rt_uint32_t dptr; char *device_name; }; #endif