1 /* 2 * Copyright (c) 2006-2024, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2024-01-20 wirano first version 9 */ 10 11 #ifndef __DRV_I2C_H__ 12 #define __DRV_I2C_H__ 13 14 15 #include <stdint.h> 16 #include <rtdevice.h> 17 #include <rthw.h> 18 19 20 struct tm4c123_i2c 21 { 22 struct rt_i2c_bus_device bus; 23 uint32_t base; 24 char *bus_name; 25 uint32_t clk_freq; 26 }; 27 28 int rt_hw_i2c_init(void); 29 30 #endif /* __DRV_I2C_H__ */ 31 32