AP_HAL_Linux: use SocketAPM_native

This commit is contained in:
Andrew Tridgell 2023-12-26 13:21:11 +11:00
parent ef67fa4293
commit 931bae5b88
6 changed files with 14 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#pragma once
#include "SerialDevice.h"
#include <AP_HAL/utility/Socket.h>
#include <AP_HAL/utility/Socket_native.h>
class ConsoleDevice: public SerialDevice {
public:

View File

@ -18,11 +18,15 @@
#include <unistd.h>
#include <AP_HAL/utility/Socket.h>
#include <AP_HAL/utility/Socket_native.h>
#include <AP_HAL/utility/sparse-endian.h>
#include "RCInput.h"
#ifndef AP_SOCKET_NATIVE_ENABLED
#error "need native"
#endif
namespace Linux {
class RCInput_SoloLink : public RCInput

View File

@ -1,7 +1,7 @@
#pragma once
#include "RCInput.h"
#include <AP_HAL/utility/Socket.h>
#include <AP_HAL/utility/Socket_native.h>
#include "RCInput_UDP_Protocol.h"
#define RCINPUT_UDP_DEF_PORT 777

View File

@ -1,7 +1,11 @@
#pragma once
#include <AP_HAL/utility/Socket_native.h>
#include "SerialDevice.h"
#include <AP_HAL/utility/Socket.h>
#ifndef AP_SOCKET_NATIVE_ENABLED
#error "need native"
#endif
class TCPServerDevice: public SerialDevice {
public:

View File

@ -1,7 +1,7 @@
#pragma once
#include "SerialDevice.h"
#include <AP_HAL/utility/Socket.h>
#include <AP_HAL/utility/Socket_native.h>
class UARTDevice: public SerialDevice {
public:

View File

@ -1,7 +1,7 @@
#pragma once
#include <AP_HAL/utility/Socket_native.h>
#include "SerialDevice.h"
#include <AP_HAL/utility/Socket.h>
class UDPDevice: public SerialDevice {
public: