Cygwin: refactored & simplified some of the OS define logic

This commit is contained in:
Matthias Grob
2018-01-05 14:47:33 -05:00
committed by Daniel Agar
parent 2186f7b1b1
commit be8adbfdf3
3 changed files with 17 additions and 17 deletions
+3 -3
View File
@@ -52,11 +52,11 @@
#include "common_rc.h"
#include <drivers/drv_hrt.h>
#if defined (__PX4_LINUX) || defined (__PX4_DARWIN) || defined(__PX4_CYGWIN) || defined(__PX4_QURT)
#define dsm_udelay(arg) usleep(arg)
#else
#if defined(__PX4_NUTTX)
#include <nuttx/arch.h>
#define dsm_udelay(arg) up_udelay(arg)
#else
#define dsm_udelay(arg) usleep(arg)
#endif
// #define DSM_DEBUG