drv_i2c.h 490 B

12345678910111213141516171819202122232425262728293031
  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. #ifndef __DRV_I2C_H__
  11. #define __DRV_I2C_H__
  12. #include <stdint.h>
  13. #include <rtdevice.h>
  14. #include <rthw.h>
  15. struct tm4c123_i2c
  16. {
  17. struct rt_i2c_bus_device bus;
  18. uint32_t base;
  19. char *bus_name;
  20. uint32_t clk_freq;
  21. };
  22. int rt_hw_i2c_init(void);
  23. #endif /* __DRV_I2C_H__ */