fm24cl64.c 548 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017-07-17 aubrcool@qq.com 1st version
  9. */
  10. #include <rtthread.h>
  11. #include <rtdevice.h>
  12. #include "i2c/fm24clxx.h"
  13. const struct fm24clxx_config fm24cl64_cfg =
  14. {
  15. .size = 8 * 1024,
  16. .addr = 0x50,
  17. .flags = 0,
  18. };
  19. int rt_hw_fm24cl64_init(const char *fm_device_name, const char *i2c_bus)
  20. {
  21. return fm24clxx_register(fm_device_name, i2c_bus, (void *)&fm24cl64_cfg);
  22. }