fm24cl64.c 728 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * File : fm24cl64.c
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2017, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2017-07-17 aubrcool@qq.com 1st version
  13. */
  14. #include <rtthread.h>
  15. #include <rtdevice.h>
  16. #include "i2c/fm24clxx.h"
  17. const struct fm24clxx_config fm24cl64_cfg =
  18. {
  19. .size = 8 * 1024,
  20. .addr = 0x50,
  21. .flags = 0,
  22. };
  23. int rt_hw_fm24cl64_init(const char *fm_device_name, const char *i2c_bus)
  24. {
  25. return fm24clxx_register(fm_device_name, i2c_bus, (void *)&fm24cl64_cfg);
  26. }