DSM decoder: Fixes for non-IO environment.

This commit is contained in:
Lorenz Meier 2015-12-11 09:28:06 +01:00
parent 64b7072eaa
commit f7784bc7ac
1 changed files with 6 additions and 2 deletions

View File

@ -42,7 +42,6 @@
#include <px4_config.h>
#include <board_config.h>
#include <px4_defines.h>
#include <nuttx/arch.h>
#include <fcntl.h>
#include <unistd.h>
@ -52,7 +51,12 @@
#include <drivers/drv_hrt.h>
#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
#define DSM_FRAME_SIZE 16 /**<DSM frame size in bytes*/