1 /*
2  * Copyright (c) 2006-2020, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2020-04-27     hqfang       first implementation.
9  */
10 
11 #ifndef __DRV_I2C__
12 #define __DRV_I2C__
13 
14 #include <rtthread.h>
15 #include <rtdevice.h>
16 #include <rthw.h>
17 #include <drv_config.h>
18 
19 /* gd32 config class */
20 struct gd32_i2c_config
21 {
22     const char *name;
23     rt_uint32_t i2c_periph;
24     rt_uint32_t speed;
25 };
26 
27 struct gd32_i2c
28 {
29     struct rt_i2c_bus_device bus;
30     struct gd32_i2c_config *config;
31 };
32 
33 #endif
34