PX4 Firmware
PX4 Autopilot Software http://px4.io
hrt_test.cpp File Reference

Test High Resolution Timers in Linux. More...

#include "hrt_test.h"
#include <drivers/drv_hrt.h>
#include <px4_platform_common/log.h>
#include <px4_platform_common/time.h>
#include <unistd.h>
#include <stdio.h>
#include <cstring>
Include dependency graph for hrt_test.cpp:

Go to the source code of this file.

Functions

static void timer_expired (void *arg)
 

Variables

static struct hrt_call t1
 
static int update_interval = 1
 

Detailed Description

Test High Resolution Timers in Linux.

Author
Mark Charlebois charl.nosp@m.ebm@.nosp@m.gmail.nosp@m..com

Definition in file hrt_test.cpp.

Function Documentation

◆ timer_expired()

static void timer_expired ( void *  arg)
static

Definition at line 57 of file hrt_test.cpp.

References hrt_call_after(), t1, and update_interval.

Referenced by HRTTest::main().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ t1

◆ update_interval

int update_interval = 1
static