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
@@ -43,7 +43,7 @@
* @author Thomas Gubler <thomasgubler@gmail.com>
*/
#include <px4_tasks.h>
#include <nuttx/config.h>
#include <stdio.h>
#include <stdlib.h>
@@ -174,7 +174,7 @@ Navigator::~Navigator()
/* if we have given up, kill it */
if (++i > 50) {
px4_task_delete(_navigator_task);
task_delete(_navigator_task);
break;
}
} while (_navigator_task != -1);
@@ -515,7 +515,7 @@ Navigator::start()
ASSERT(_navigator_task == -1);
/* start the task */
_navigator_task = px4_task_spawn_cmd("navigator",
_navigator_task = task_spawn_cmd("navigator",
SCHED_DEFAULT,
SCHED_PRIORITY_DEFAULT + 20,
1800,