summaryrefslogtreecommitdiff
path: root/bsp/stm32f10x/drivers/fm24cl64.c
blob: 05c02448dd7fcdfeb9111179d099f34e0ae66f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author            Notes
 * 2017-07-17     [email protected]   1st version
 */

#include <rtthread.h>
#include <rtdevice.h>
#include "i2c/fm24clxx.h"

const struct fm24clxx_config fm24cl64_cfg =
{
    .size  = 8 * 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);
}