mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 04:10:35 +08:00
QuRT: Changes to enable qurt target to build
QuRT doesn't support unlink and does not provide getpid(). The DSPAL layer provides access to usleep so an implementation is no longer needed. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -91,7 +91,7 @@ uORB::DeviceNode::open(device::file_t *filp)
|
||||
lock();
|
||||
|
||||
if (_publisher == 0) {
|
||||
_publisher = getpid();
|
||||
_publisher = px4_getpid();
|
||||
ret = PX4_OK;
|
||||
|
||||
} else {
|
||||
@@ -153,7 +153,7 @@ uORB::DeviceNode::close(device::file_t *filp)
|
||||
{
|
||||
//warnx("uORB::DeviceNode::close fd = %d", filp->fd);
|
||||
/* is this the publisher closing? */
|
||||
if (getpid() == _publisher) {
|
||||
if (px4_getpid() == _publisher) {
|
||||
_publisher = 0;
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user