source: rtems/c/src/lib/libbsp/arm/altera-cyclone-v/i2c/i2cdrv-config.h @ 3f9cd87d

4.115
Last change on this file since 3f9cd87d was 3f9cd87d, checked in by Christian Mauderer <Christian.Mauderer@…>, on Jul 14, 2014 at 2:33:52 PM

bsp/altera-cyclone-v: Add a simple I2C driver.

  • Property mode set to 100644
File size: 700 bytes
RevLine 
[3f9cd87d]1/*
2 * Copyright (c) 2014 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <info@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#ifndef XXX_H
16#define XXX_H
17
18#include <rtems.h>
19#include <bsp/alt_i2c.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif /* __cplusplus */
24
25typedef struct {
26  ALT_I2C_CTLR_t controller;
27  char *device_name;
28  uint32_t speed;
29} i2cdrv_configuration;
30
31extern const i2cdrv_configuration i2cdrv_config[];
32
33#ifdef __cplusplus
34}
35#endif /* __cplusplus */
36
37#endif /* XXX_H */
Note: See TracBrowser for help on using the repository browser.