Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
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:

<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>
<dep>
<depends>mcu</depends>
</dep>
<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>