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>
This commit is contained in:
Mark Charlebois
2015-04-20 10:49:44 -07:00
parent ddb32742eb
commit bf429188b4
32 changed files with 78 additions and 84 deletions
+3 -3
View File
@@ -51,7 +51,7 @@
#include <math.h>
#include <unistd.h>
#include <fcntl.h>
#include <px4_tasks.h>
#include <nuttx/config.h>
#include <nuttx/arch.h>
#include <arch/board/board.h>
#include <drivers/drv_hrt.h>
@@ -213,7 +213,7 @@ GPS::~GPS()
/* well, kill it anyway, though this will probably crash */
if (_task != -1)
px4_task_delete(_task);
task_delete(_task);
g_dev = nullptr;
@@ -229,7 +229,7 @@ GPS::init()
goto out;
/* start the GPS driver worker task */
_task = px4_task_spawn_cmd("gps", SCHED_DEFAULT,
_task = task_spawn_cmd("gps", SCHED_DEFAULT,
SCHED_PRIORITY_SLOW_DRIVER, 1500, (main_t)&GPS::task_main_trampoline, nullptr);
if (_task < 0) {