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
@@ -46,7 +46,7 @@
* @author Anton Babushkin <anton@px4.io>
*/
#include <px4_tasks.h>
#include <nuttx/config.h>
#include <fcntl.h>
#include <poll.h>
@@ -640,7 +640,7 @@ Sensors::~Sensors()
/* if we have given up, kill it */
if (++i > 50) {
px4_task_delete(_sensors_task);
task_delete(_sensors_task);
break;
}
} while (_sensors_task != -1);
@@ -2235,7 +2235,7 @@ Sensors::start()
ASSERT(_sensors_task == -1);
/* start the task */
_sensors_task = px4_task_spawn_cmd("sensors_task",
_sensors_task = task_spawn_cmd("sensors_task",
SCHED_DEFAULT,
SCHED_PRIORITY_MAX - 5,
2000,