RTEMS
5.0.0
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Variables
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
v
w
x
+
Enumerations
a
b
c
e
h
i
l
m
o
p
q
r
s
t
w
+
Enumerator
a
c
d
i
l
m
p
r
s
t
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
bsps
arm
raspberrypi
include
bsp
spi.h
Go to the documentation of this file.
1
9
/*
10
* Copyright (c) 2014-2015 Andre Marques <andre.lousa.marques at gmail.com>
11
*
12
* The license and distribution terms for this file may be
13
* found in the file LICENSE in this distribution or at
14
* http://www.rtems.org/license/LICENSE.
15
*/
16
17
#ifndef LIBBSP_ARM_RASPBERRYPI_SPI_H
18
#define LIBBSP_ARM_RASPBERRYPI_SPI_H
19
20
#include <
rtems/libi2c.h
>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
/* __cplusplus */
25
39
/* TODO: It would be nice if this value could be probed at startup, probably
40
* using the Mailbox interface since the usual way of setting this on
41
* the hardware is through a "config.txt" text file on the SD card.
42
* Having this setup on the configure.ac script would require changing
43
* the same setting on two different places. */
44
#define GPU_CORE_CLOCK_RATE 250000000
45
69
extern
int
rpi_spi_init
(
bool
bidirectional_mode);
70
73
#ifdef __cplusplus
74
}
75
#endif
/* __cplusplus */
76
77
#endif
/* LIBBSP_ARM_RASPBERRYPI_SPI_H */
libi2c.h
I2C Library.
rpi_spi_init
int rpi_spi_init(bool bidirectional_mode)
Setups the Raspberry Pi SPI bus (located on the GPIO header) on the "/dev/spi" device file...
Definition:
spi.c:640
Generated by
1.8.13