Paparazzi UAS  v5.18.0_stable-1-g6993852-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sys_time module

Sys-time peripheral

No detailed description...

Example for airframe file

Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!

1 <module name="sys_time">
2  <configure name="SYS_TIME_LED" value="none|num" />
3 </module>

Module configuration options

Configure Options

  • name: SYS_TIME_LED value: none|num
    Description: LED number used for systime heartbeat or 'none' to disable

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw sys_time.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="sys_time" dir="mcu_periph" task="mcu">
<doc>
<description>
Sys-time peripheral
</description>
<configure name="SYS_TIME_LED" value="none|num" description="LED number used for systime heartbeat or 'none' to disable"/>
</doc>
<header>
<file name="sys_time.h" dir="mcu_periph"/>
</header>
<makefile>
<configure name="SYS_TIME_LED" default="none"/>
<define name="SYS_TIME_LED" value="$(SYS_TIME_LED)" cond="ifneq ($(SYS_TIME_LED), none)"/>
<file name="sys_time.c" dir="mcu_periph"/>
<file_arch name="sys_time_arch.c" dir="mcu_periph"/>
<flag name="LDFLAGS" value="lrt" cond="ifeq ($(ARCH), linux)"/>
</makefile>
</module>