forked from Archive/PX4-Autopilot
QuRT: satisfy missing deps
There is no ioctl or write. Added stubs. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
parent
84ca66dcf7
commit
0ba5305e94
|
@ -108,6 +108,10 @@ I2C::init()
|
||||||
return PX4_ERROR;
|
return PX4_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __PX4_QURT
|
||||||
|
simulate = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (simulate) {
|
if (simulate) {
|
||||||
_fd = 10000;
|
_fd = 10000;
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,7 @@ static void entry_adapter ( void *ptr )
|
||||||
printf("entry_adapter\n");
|
printf("entry_adapter\n");
|
||||||
pthdata_t *data = (pthdata_t *) ptr;
|
pthdata_t *data = (pthdata_t *) ptr;
|
||||||
|
|
||||||
|
printf("data->entry = %p\n", data->entry);
|
||||||
data->entry(data->argc, data->argv);
|
data->entry(data->argc, data->argv);
|
||||||
free(ptr);
|
free(ptr);
|
||||||
printf("after entry\n");
|
printf("after entry\n");
|
||||||
|
@ -106,6 +107,7 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
|
||||||
unsigned long structsize;
|
unsigned long structsize;
|
||||||
char * p = (char *)argv;
|
char * p = (char *)argv;
|
||||||
|
|
||||||
|
printf("px4_task_spawn_cmd entry = %p\n", entry);
|
||||||
// Calculate argc
|
// Calculate argc
|
||||||
while (p != (char *)0) {
|
while (p != (char *)0) {
|
||||||
p = argv[argc];
|
p = argv[argc];
|
||||||
|
@ -193,4 +195,7 @@ extern "C" {
|
||||||
void hrt_sleep(unsigned long)
|
void hrt_sleep(unsigned long)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
int ioctl(int d, int request, unsigned long foo) { return 0; }
|
||||||
|
int write(int a, char const*b, int c) { return c; }
|
||||||
|
|
Loading…
Reference in New Issue