Fixed various build issues with the new Serial implementation

This commit is contained in:
Eric Katzfey 2023-12-27 14:54:36 -08:00
parent baa857d56f
commit 4217b43728
5 changed files with 13 additions and 9 deletions

View File

@ -49,11 +49,15 @@ elseif((${PX4_PLATFORM} MATCHES "qurt"))
list(APPEND SRCS_PLATFORM qurt/uart.c)
elseif(UNIX AND NOT APPLE) #TODO: add linux PX4 platform type
# Linux I2Cdev and SPIdev
list(APPEND SRCS_PLATFORM
posix/I2C.cpp
posix/SPI.cpp
posix/SerialImpl.cpp
)
if ("${CONFIG_I2C}" STREQUAL "y")
list(APPEND SRCS_PLATFORM posix/I2C.cpp)
endif()
if ("${CONFIG_SPI}" STREQUAL "y")
list(APPEND SRCS_PLATFORM posix/SPI.cpp)
endif()
list(APPEND SRCS_PLATFORM posix/SerialImpl.cpp)
endif()
px4_add_library(drivers__device

View File

@ -31,7 +31,7 @@
*
****************************************************************************/
#include <SerialImpl.hpp>
#include "SerialImpl.hpp"
#include <string.h> // strncpy
#include <termios.h>
#include <px4_log.h>

View File

@ -36,7 +36,7 @@
#include <stdint.h>
#include <unistd.h>
#include <px4_platform_common/SerialCommon.hpp>
#include <drivers/device/SerialCommon.hpp>
using device::SerialConfig::ByteSize;
using device::SerialConfig::Parity;

View File

@ -31,7 +31,7 @@
*
****************************************************************************/
#include <SerialImpl.hpp>
#include "SerialImpl.hpp"
#include <string.h> // strncpy
#include <px4_log.h>
#include <drivers/device/qurt/uart.h>

View File

@ -35,7 +35,7 @@
#include <unistd.h>
#include <px4_platform_common/SerialCommon.hpp>
#include <drivers/device/SerialCommon.hpp>
using device::SerialConfig::ByteSize;
using device::SerialConfig::Parity;