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:
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>