/* * File : fm24cl64.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2017, RT-Thread Development Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rt-thread.org/license/LICENSE * * Change Logs: * Date Author Notes * 2017-07-17 aubrcool@qq.com 1st version */ #include #include #include "i2c/fm24clxx.h" const struct fm24clxx_config fm24cl64_cfg = { .size = 64 * 1024, .addr = 0x50, .flags = 0, }; int rt_hw_fm24cl64_init(const char *fm_device_name, const char *i2c_bus) { return fm24clxx_register(fm_device_name, i2c_bus, (void *)&fm24cl64_cfg); }