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

General UART driver

To activate a specific UART peripheral, define flag USE_UARTX where X is your UART peripheral number

Example for airframe file

Add to your firmware section:

1 <module name="uart"/>

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw uart.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="uart" dir="mcu_periph" task="mcu">
<doc>
<description>
General UART driver
To activate a specific UART peripheral, define flag USE_UARTX where X is your UART peripheral number
</description>
</doc>
<header>
<file name="uart.h" dir="mcu_periph"/>
</header>
<makefile>
<file name="uart.c" dir="mcu_periph"/>
<file_arch name="uart_arch.c" dir="mcu_periph"/>
<file name="serial_port.c" dir="arch/linux" cond="ifeq ($(ARCH), linux)"/>
</makefile>
<makefile target="sim|nps">
<include name="arch/linux"/>
<file name="serial_port.c" dir="arch/linux"/>
</makefile>
</module>