From a4c33f51734ce7bd6a36f68a904b7078c3e623a0 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Wed, 22 Apr 2015 11:16:58 -0700 Subject: [PATCH] QuRT: removed calls to sleep A stub for hrt_sleep was removed. Will add back when DSPAL supports sleep. Signed-off-by: Mark Charlebois --- src/platforms/qurt/px4_layer/drv_hrt.c | 8 -------- src/platforms/qurt/px4_layer/px4_qurt_tasks.cpp | 5 +++++ src/platforms/qurt/tests/hello/hello_example.cpp | 7 ------- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/platforms/qurt/px4_layer/drv_hrt.c b/src/platforms/qurt/px4_layer/drv_hrt.c index 0b42cfa0e3..39e0f73b37 100644 --- a/src/platforms/qurt/px4_layer/drv_hrt.c +++ b/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 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. diff --git a/src/platforms/qurt/px4_layer/px4_qurt_tasks.cpp b/src/platforms/qurt/px4_layer/px4_qurt_tasks.cpp index cd4b9527f9..92f25e5827 100644 --- a/src/platforms/qurt/px4_layer/px4_qurt_tasks.cpp +++ b/src/platforms/qurt/px4_layer/px4_qurt_tasks.cpp @@ -195,3 +195,8 @@ void px4_show_tasks() // STUBS +extern "C" { +void hrt_sleep(unsigned long) +{ +} +} diff --git a/src/platforms/qurt/tests/hello/hello_example.cpp b/src/platforms/qurt/tests/hello/hello_example.cpp index 1975029a3f..6827220888 100644 --- a/src/platforms/qurt/tests/hello/hello_example.cpp +++ b/src/platforms/qurt/tests/hello/hello_example.cpp @@ -40,15 +40,9 @@ */ #include "hello_example.h" -#include #include #include -/* - * 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() int i=0; while (!appState.exitRequested() && i<5) { - hrt_sleep(2); printf(" Doing work...\n"); ++i;