mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
Qurt termios decoy (#22954)
* Added decoy termios support to Qurt so that ghst parser in RC library can be used. No termios is actually needed but has to be there for the parser to work
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <time.h>
|
||||
#include <px4_log.h>
|
||||
#include <qurt_alloc.h>
|
||||
#include <termios.h>
|
||||
|
||||
__attribute__((visibility("default"))) void free(void *ptr)
|
||||
{
|
||||
@@ -31,3 +32,21 @@ __attribute__((visibility("default"))) int nanosleep(const struct timespec *req,
|
||||
PX4_ERR("Undefined nanosleep called");
|
||||
return -1;
|
||||
}
|
||||
|
||||
__attribute__((visibility("default"))) int tcgetattr(int fd, struct termios *termiosp)
|
||||
{
|
||||
PX4_ERR("Undefined tcgetattr called");
|
||||
return -1;
|
||||
}
|
||||
|
||||
__attribute__((visibility("default"))) int cfsetspeed(struct termios *termiosp, speed_t speed)
|
||||
{
|
||||
PX4_ERR("Undefined cfsetspeed called");
|
||||
return -1;
|
||||
}
|
||||
|
||||
__attribute__((visibility("default"))) int tcsetattr(int fd, int options, const struct termios *termiosp)
|
||||
{
|
||||
PX4_ERR("Undefined tcsetattr called");
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user