mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 07:43:33 +08:00
uORB move to PX4 platform layer
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
############################################################################
|
||||
|
||||
# skip for px4_layer support on an IO board
|
||||
if(NOT PX4_BOARD MATCHES "px4_io")
|
||||
if(NOT PX4_BOARD MATCHES "io-v2")
|
||||
|
||||
add_library(px4_layer
|
||||
board_crashdump.c
|
||||
@@ -57,6 +57,7 @@ if(NOT PX4_BOARD MATCHES "px4_io")
|
||||
nuttx_apps
|
||||
nuttx_sched
|
||||
px4_work_queue
|
||||
uORB
|
||||
)
|
||||
else()
|
||||
add_library(px4_layer ${PX4_SOURCE_DIR}/platforms/common/empty.c)
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <lib/parameters/param.h>
|
||||
#include <px4_platform_common/px4_work_queue/WorkQueueManager.hpp>
|
||||
#include <px4_platform/cpuload.h>
|
||||
#include <uORB/uORB.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
@@ -118,6 +119,10 @@ int px4_platform_init(void)
|
||||
|
||||
px4::WorkQueueManagerStart();
|
||||
|
||||
uorb_start();
|
||||
|
||||
px4_log_initialize();
|
||||
|
||||
return PX4_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user