Browse Source

QuRT: removed calls to sleep

A stub for hrt_sleep was removed. Will add back when DSPAL supports
sleep.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
sbg
Mark Charlebois 10 years ago
parent
commit
a4c33f5173
  1. 8
      src/platforms/qurt/px4_layer/drv_hrt.c
  2. 5
      src/platforms/qurt/px4_layer/px4_qurt_tasks.cpp
  3. 7
      src/platforms/qurt/tests/hello/hello_example.cpp

8
src/platforms/qurt/px4_layer/drv_hrt.c

@ -285,14 +285,6 @@ void hrt_call_at(struct hrt_call *entry, hrt_abstime calltime, hrt_callout callo @@ -285,14 +285,6 @@ void hrt_call_at(struct hrt_call *entry, hrt_abstime calltime, hrt_callout callo
hrt_call_internal(entry, calltime, 0, callout, arg);
}
void hrt_sleep(uint32_t seconds)
{
}
void hrt_usleep(uint32_t useconds)
{
}
#if 0
/*
* Convert absolute time to a timespec.

5
src/platforms/qurt/px4_layer/px4_qurt_tasks.cpp

@ -195,3 +195,8 @@ void px4_show_tasks() @@ -195,3 +195,8 @@ void px4_show_tasks()
// STUBS
extern "C" {
void hrt_sleep(unsigned long)
{
}
}

7
src/platforms/qurt/tests/hello/hello_example.cpp

@ -40,15 +40,9 @@ @@ -40,15 +40,9 @@
*/
#include "hello_example.h"
#include <drivers/drv_hrt.h>
#include <unistd.h>
#include <stdio.h>
/*
* Wrap the sleep call.
*/
__EXPORT extern void hrt_sleep(uint32_t seconds);
px4::AppState HelloExample::appState;
int HelloExample::main()
@ -57,7 +51,6 @@ int HelloExample::main() @@ -57,7 +51,6 @@ int HelloExample::main()
int i=0;
while (!appState.exitRequested() && i<5) {
hrt_sleep(2);
printf(" Doing work...\n");
++i;

Loading…
Cancel
Save