Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
spi_master module

General SPI driver (master mode)

To activate a specific SPI peripheral, define flag USE_SPIX where X is your SPI peripheral number

Example for airframe file

Add to your firmware section:

1 <module name="spi_master"/>

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw spi_master.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="spi_master" dir="mcu_periph" task="mcu">
<doc>
<description>
General SPI driver (master mode)
To activate a specific SPI peripheral, define flag USE_SPIX where X is your SPI peripheral number
</description>
</doc>
<header>
<file name="spi.h" dir="mcu_periph"/>
</header>
<makefile>
<define name="USE_SPI"/>
<define name="SPI_MASTER"/>
<file name="spi.c" dir="mcu_periph"/>
<file_arch name="spi_arch.c" dir="mcu_periph"/>
</makefile>
</module>