mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 07:33:35 +08:00
DSM decoder: Fixes for non-IO environment.
This commit is contained in:
+6
-2
@@ -42,7 +42,6 @@
|
|||||||
#include <px4_config.h>
|
#include <px4_config.h>
|
||||||
#include <board_config.h>
|
#include <board_config.h>
|
||||||
#include <px4_defines.h>
|
#include <px4_defines.h>
|
||||||
#include <nuttx/arch.h>
|
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@@ -52,7 +51,12 @@
|
|||||||
#include <drivers/drv_hrt.h>
|
#include <drivers/drv_hrt.h>
|
||||||
|
|
||||||
#ifndef GPIO_SPEKTRUM_PWR_EN
|
#ifndef GPIO_SPEKTRUM_PWR_EN
|
||||||
#error DSM input driver not supported by this board config
|
#warning DSM input driver not supporting binding by this board config
|
||||||
|
#define POWER_SPEKTRUM(arg)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (__PX4_LINUX) || defined (__PX4_DARWIN)
|
||||||
|
#define up_udelay(arg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DSM_FRAME_SIZE 16 /**<DSM frame size in bytes*/
|
#define DSM_FRAME_SIZE 16 /**<DSM frame size in bytes*/
|
||||||
|
|||||||
Reference in New Issue
Block a user