aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/hil
diff options
context:
space:
mode:
authorMark Charlebois <charlebm@gmail.com>2015-03-11 11:52:18 -0700
committerMark Charlebois <charlebm@gmail.com>2015-04-20 10:49:44 -0700
commitbf429188b436e2b00cc614f20db4930b0c2497d4 (patch)
tree70f41399ae4a024d14b9833442c85554d3dc3ff3 /src/drivers/hil
parentddb32742ebd299e83e268c7ffa99c808bdaf4f8a (diff)
downloadpx4-firmware-bf429188b436e2b00cc614f20db4930b0c2497d4.tar.gz
px4-firmware-bf429188b436e2b00cc614f20db4930b0c2497d4.tar.bz2
px4-firmware-bf429188b436e2b00cc614f20db4930b0c2497d4.zip
Reverted: Use OS independent API for task creation/deletion
Keep existing API use in code. Bind the use of the OS independent implementation in the systemlib layer. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Diffstat (limited to 'src/drivers/hil')
-rw-r--r--src/drivers/hil/hil.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/hil/hil.cpp b/src/drivers/hil/hil.cpp
index a82dec8ac..961ec4724 100644
--- a/src/drivers/hil/hil.cpp
+++ b/src/drivers/hil/hil.cpp
@@ -48,7 +48,7 @@
* driver. Use instead the normal FMU or IO driver.
*/
-#include <px4_tasks.h>
+#include <nuttx/config.h>
#include <sys/types.h>
#include <stdint.h>
@@ -188,7 +188,7 @@ HIL::~HIL()
/* if we have given up, kill it */
if (--i == 0) {
- px4_task_delete(_task);
+ task_delete(_task);
break;
}
@@ -228,7 +228,7 @@ HIL::init()
// gpio_reset();
/* start the HIL interface task */
- _task = px4_task_spawn_cmd("fmuhil",
+ _task = task_spawn_cmd("fmuhil",
SCHED_DEFAULT,
SCHED_PRIORITY_DEFAULT,
1200,