mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 05:00:34 +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:
@@ -395,12 +395,14 @@ private:
|
||||
float _rate_txerr;
|
||||
float _rate_rx;
|
||||
|
||||
#ifdef __PX4_POSIX
|
||||
int _socket_fd;
|
||||
struct sockaddr_in _myaddr;
|
||||
struct sockaddr_in _src_addr;
|
||||
|
||||
Protocol _protocol;
|
||||
unsigned short _udp_port;
|
||||
#endif
|
||||
|
||||
struct telemetry_status_s _rstatus; ///< receive status
|
||||
|
||||
|
||||
@@ -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