source: rtems/c/src/lib/libcpu/bfin/serial/spi.h @ 04a82e9c

4.104.115
Last change on this file since 04a82e9c was 359e537, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/30/09 at 05:09:41

Whitespace removal.

  • Property mode set to 100644
File size: 850 bytes
Line 
1/* placeholder (just a shell) */
2
3/*
4 *  RTEMS driver for Blackfin SPI
5 *
6 *  COPYRIGHT (c) 2008 Kallisti Labs, Los Gatos, CA, USA
7 *            written by Allan Hessenflow <allanh@kallisti.com>
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16
17#ifndef _spi_h_
18#define _spi_h_
19
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25
26typedef struct {
27  /* parameters provided by bsp */
28  uint32_t freq;
29  void    *base;
30  bool     fast;
31  /* internal use */
32  rtems_id irq_sema_id;
33} bfin_spi_softc_t;
34
35typedef struct {
36  rtems_libi2c_bus_t bus;
37  bfin_spi_softc_t softc;
38} bfin_spi_desc_t;
39
40
41extern rtems_libi2c_bus_ops_t bfin_spi_libi2c_bus_ops;
42
43
44void bfin_spi_isr(int source);
45
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif /* _spi_h_ */
52
Note: See TracBrowser for help on using the repository browser.