blob: 3f1883e73c760edf8677b6d3380abd358bb9a736 (
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
|
/*
* Copyright (c) 2006-2024, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2024-01-20 wirano first version
*/
#ifndef __DRV_I2C_H__
#define __DRV_I2C_H__
#include <stdint.h>
#include <rtdevice.h>
#include <rthw.h>
struct tm4c123_i2c
{
struct rt_i2c_bus_device bus;
uint32_t base;
char *bus_name;
uint32_t clk_freq;
};
int rt_hw_i2c_init(void);
#endif /* __DRV_I2C_H__ */
|