summaryrefslogtreecommitdiffstats
path: root/cpukit/dev/include/dev/i2c/fpga-i2c-slave.h
blob: c10b26ac5bea9577ca029dbf274a5b0f692bfa1f (plain) (blame)
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) 2016-2017 Chris Johns <chrisj@rtems.org>
 * All rights reserved.
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rtems.org/license/LICENSE.
 */

/*
 * I2C slave for testing:
 *       https://github.com/oetr/FPGA-I2C-Slave
 */

#ifndef FPGA_I2C_SLAVE_H
#define FPGA_I2C_SLAVE_H

#include <dev/i2c/i2c.h>

int i2c_dev_register_fpga_i2c_slave(const char* bus_path,
                                    const char* dev_path,
                                    uint16_t   address,
                                    size_t     size);

#endif