blob: e4f60f5ef685210d24e327b80eb20d1af286c45e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* Copyright (c) 2006-2026, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2026-01-13 yefeng first implementation.
*/
#ifndef __DRV_I2C_H__
#define __DRV_I2C_H__
#include <rtthread.h>
#include <rtdevice.h>
#include <rthw.h>
#include <board.h>
struct gd32_i2c_config
{
const char *name;
rt_uint32_t i2c_periph;
rcu_periph_enum rcu_clk;
rt_uint32_t speed;
};
struct gd32_i2c_device
{
struct rt_i2c_bus_device parent;
struct gd32_i2c_config *config;
};
#endif
|