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
@@ -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,