mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-12 02:51:37 +08:00
wip: squashed patch
This commit is contained in:
@@ -70,6 +70,9 @@ static inline constexpr bool PX4_ISFINITE(double x) { return __builtin_isfinite(
|
||||
#define PX4_O_MODE_666 0666
|
||||
#define PX4_O_MODE_600 0600
|
||||
|
||||
#define DIRENT_REGULAR_FILE DTYPE_FILE
|
||||
#define DIRENT_DIRECTORY DTYPE_DIRECTORY
|
||||
|
||||
#elif defined(__PX4_POSIX)
|
||||
/****************************************************************************
|
||||
* POSIX Specific defines
|
||||
@@ -91,6 +94,9 @@ static inline constexpr bool PX4_ISFINITE(double x) { return __builtin_isfinite(
|
||||
#define USEC_PER_TICK (1000000/PX4_TICKS_PER_SEC)
|
||||
#define USEC2TICK(x) (((x)+(USEC_PER_TICK/2))/USEC_PER_TICK)
|
||||
|
||||
#define DIRENT_REGULAR_FILE DT_REG
|
||||
#define DIRENT_DIRECTORY DT_DIR
|
||||
|
||||
__BEGIN_DECLS
|
||||
extern long PX4_TICKS_PER_SEC;
|
||||
__END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user