rt-thread-official/bsp/tm4c123bsp/libraries/Drivers/drv_i2c.h

32 lines
490 B
C
Raw Normal View History

2024-04-11 16:59:10 +08:00
/*
* 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__ */