Moved IOCTL definitions to DevIOCTL.h in DriverFramework

Removed sched.h from platform/qurt since it is now in DSPAL.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-11-17 19:30:51 -08:00
parent 0544d06ad0
commit 238db8c6d7
7 changed files with 41 additions and 38 deletions

View File

@ -165,6 +165,7 @@ function(px4_os_add_flags)
${DSPAL_ROOT}/sys/sys
${DSPAL_ROOT}/mpu_spi/inc
${DSPAL_ROOT}/uart_esc/inc
src/lib/DriverFramework/framework/include
src/platforms/qurt/include
src/platforms/posix/include
)
@ -172,6 +173,7 @@ function(px4_os_add_flags)
set(added_definitions
-D__PX4_QURT
-D__PX4_POSIX
-D__DF_QURT
-include ${PX4_INCLUDE_DIR}visibility.h
)
@ -185,6 +187,8 @@ function(px4_os_add_flags)
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
set(DF_TARGET "qurt")
# output
foreach(var ${inout_vars})
string(TOLOWER ${var} lower_var)

View File

@ -46,30 +46,7 @@
#include "drv_sensor.h"
#include "drv_orb_dev.h"
#ifdef __PX4_NUTTX
/*
* ioctl() definitions
*/
#define _DEVICEIOCBASE (0x100)
#define _DEVICEIOC(_n) (_PX4_IOC(_DEVICEIOCBASE, _n))
/** ask device to stop publishing */
#define DEVIOCSPUBBLOCK _DEVICEIOC(0)
/** check publication block status */
#define DEVIOCGPUBBLOCK _DEVICEIOC(1)
/**
* Return device ID, to enable matching of configuration parameters
* (such as compass offsets) to specific sensors
*/
#define DEVIOCGDEVICEID _DEVICEIOC(2)
#else
#include "DevObj.hpp"
#endif
#include "DevIOCTL.h"
#ifdef __PX4_POSIX

View File

@ -24,6 +24,7 @@ target_link_libraries(mainapp
-Wl,--whole-archive
${module_libraries}
${target_libraries}
df_driver_framework
m
-Wl,--no-whole-archive
-Wl,${TOOLSLIB}/pic/libstdc++.a)

@ -1 +1 @@
Subproject commit 12373364a3e78a20abad6cd63b36e355d712d9e4
Subproject commit 94abaa2067438c8b3c300c1bec05688cda5ff2e8

@ -1 +1 @@
Subproject commit 93b8d366191fb24486e0484ca4f020c85ed6cfee
Subproject commit 94188fb83ab6b2da59eb9a8c8596ab49b67c42f6

View File

@ -1,12 +0,0 @@
#pragma once
#define SCHED_FIFO 1
#define SCHED_RR 2
struct sched_param {
int sched_priority;
};
int sched_get_priority_max(int policy);
int sched_get_priority_min(int policy);

View File

@ -97,3 +97,36 @@ int clock_gettime(clockid_t clk_id, struct timespec *tp)
{
return 1;
}
int pthread_mutex_lock(pthread_mutex_t *mutex)
{
return 1;
}
int pthread_mutex_unlock(pthread_mutex_t *mutex)
{
return 1;
}
int pthread_cond_signal(pthread_cond_t *cond)
{
return 1;
}
int pthread_mutex_destroy(pthread_mutex_t *mutex)
{
return 1;
}
int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr)
{
return 1;
}
int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex)
{
return 1;
}
int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime)
{
return 1;
}