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

General UDP driver

To activate a specific UDP peripheral, define flag USE_UDPX where X is your UDP peripheral number

Example for airframe file

Add to your firmware section:

1 <module name="udp"/>

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw udp.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="udp" dir="mcu_periph" task="mcu">
<doc>
<description>
General UDP driver
To activate a specific UDP peripheral, define flag USE_UDPX where X is your UDP peripheral number
</description>
</doc>
<header>
<file name="udp.h" dir="mcu_periph"/>
</header>
<makefile>
<define name="USE_UDP"/>
<file name="udp.c" dir="mcu_periph"/>
<file_arch name="udp_arch.c" dir="mcu_periph"/>
<file name="udp_socket.c" dir="arch/linux" cond="ifeq ($(ARCH), linux)"/>
</makefile>
<makefile target="nps">
<include name="arch/linux"/>
<file name="udp_socket.c" dir="arch/linux"/>
</makefile>
</module>