summaryrefslogtreecommitdiffstats
path: root/bsp-howto/spi.rst
blob: 377b4b10d8e35c93a954364a98371798fbdba350 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.. SPDX-License-Identifier: CC-BY-SA-4.0

.. Copyright (C) 2016 embedded brains GmbH <rtems@embedded-brains.de>

SPI Driver
**********

The Serial Peripheral Interface (SPI) bus drivers should use the
`SPI bus framework
<https://git.rtems.org/rtems/tree/cpukit/include/dev/spi/spi.h>`_.
For
example drivers see the
`Atmel SAM SPI driver <https://git.rtems.org/rtems/tree/bsps/arm/atsam/spi/atsam_spi_bus.c>`_
and the
`SPI framework test <https://git.rtems.org/rtems/tree/testsuites/libtests/spi01/init.c>`_.

The user API is compatible to the
`Linux SPI user-space API <https://www.kernel.org/doc/Documentation/spi/spidev>`_.