PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Example for Linux. More...
#include "cdevtest_example.h"
#include <px4_platform_common/tasks.h>
#include <px4_platform_common/time.h>
#include <drivers/drv_device.h>
#include <lib/cdev/CDev.hpp>
#include <unistd.h>
#include <stdio.h>
Go to the source code of this file.
Classes | |
class | PrivData |
class | CDevNode |
Macros | |
#define | TESTDEV "/dev/cdevtest" |
Functions | |
static int | writer_main (int argc, char *argv[]) |
Variables | |
static bool | g_exit = false |
Example for Linux.
Definition in file cdevtest_example.cpp.
#define TESTDEV "/dev/cdevtest" |
Definition at line 53 of file cdevtest_example.cpp.
Referenced by CDevExample::main(), and writer_main().
|
static |
Definition at line 57 of file cdevtest_example.cpp.
References fd, g_exit, px4_close(), px4_open(), px4_write(), and TESTDEV.
Referenced by CDevExample::main().
|
static |
Definition at line 55 of file cdevtest_example.cpp.
Referenced by CDevExample::main(), and writer_main().