From 1533659817d71c179bbec84ed74490ec34bcfc2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=C5=BBak?= Date: Mon, 18 Mar 2019 13:18:21 +0100 Subject: [PATCH 1/2] gcc 8.2 compatibility fixes. --- libs/drivers/comm/comm.cpp | 4 ++-- libs/efm_support/Include/efm_support/clock.h | 4 ++-- libs/efm_support/Include/efm_support/dma.h | 4 ++-- libs/experiments/camera/camera_exp.cpp | 2 +- libs/experiments/fs/ExperimentFile.cpp | 4 ++-- libs/experiments/payload/payload_exp.cpp | 2 +- libs/experiments/suns/suns.cpp | 2 +- libs/scrubber/Include/scrubber/ram.hpp | 13 +++++++++--- .../Include/state/LockablePersistentState.hpp | 2 +- platforms/mcu/EngModel/CMakeLists.txt | 9 +++++---- platforms/mcu/EngModel/Include/mcu/io_map.h | 20 +++++++++---------- platforms/mcu/EngModel/settings.cmake | 6 +++++- platforms/mcu/EngModel/variables.cpp | 14 +++++++++++++ platforms/mcu/FlightModel/CMakeLists.txt | 9 +++++---- .../mcu/FlightModel/Include/mcu/io_map.h | 18 ++++++++--------- platforms/mcu/FlightModel/settings.cmake | 6 +++++- platforms/mcu/FlightModel/variables.cpp | 14 +++++++++++++ src/main.cpp | 2 +- test/generate_exp_data/suns_data.cpp | 4 +--- toolchain.cmake | 4 ++-- .../MissionPlan/beacon/BeaconUpdateTest.cpp | 4 +++- 21 files changed, 96 insertions(+), 51 deletions(-) create mode 100644 platforms/mcu/EngModel/variables.cpp create mode 100644 platforms/mcu/FlightModel/variables.cpp diff --git a/libs/drivers/comm/comm.cpp b/libs/drivers/comm/comm.cpp index 5d95fa0f8..06626f6bf 100644 --- a/libs/drivers/comm/comm.cpp +++ b/libs/drivers/comm/comm.cpp @@ -301,7 +301,7 @@ bool CommObject::RemoveFrameInternal(AggregatedErrorCounter& resultAggregator) bool CommObject::GetReceiverTelemetryInternal(ReceiverTelemetry& telemetry, AggregatedErrorCounter& resultAggregator) { - memset(&telemetry, 0, sizeof(ReceiverTelemetry)); + telemetry = {}; bool result = true; @@ -372,7 +372,7 @@ bool CommObject::GetReceiverTelemetry(ReceiverTelemetry& telemetry) bool CommObject::GetTransmitterTelemetryInternal(TransmitterTelemetry& telemetry, AggregatedErrorCounter& resultAggregator) { - memset(&telemetry, 0, sizeof(TransmitterTelemetry)); + telemetry = {}; bool result = true; diff --git a/libs/efm_support/Include/efm_support/clock.h b/libs/efm_support/Include/efm_support/clock.h index f77a3e561..9c1e8c182 100644 --- a/libs/efm_support/Include/efm_support/clock.h +++ b/libs/efm_support/Include/efm_support/clock.h @@ -14,7 +14,7 @@ namespace efm * * @ingroup efm_support */ - constexpr CMU_Clock_TypeDef Clock(const USART_TypeDef* hw) + inline CMU_Clock_TypeDef Clock(const USART_TypeDef* hw) { if (hw == USART0) return cmuClock_USART0; @@ -34,7 +34,7 @@ namespace efm * * @ingroup efm_support */ - constexpr CMU_Clock_TypeDef Clock(const TIMER_TypeDef* hw) + inline CMU_Clock_TypeDef Clock(const TIMER_TypeDef* hw) { if (hw == TIMER0) return cmuClock_TIMER0; diff --git a/libs/efm_support/Include/efm_support/dma.h b/libs/efm_support/Include/efm_support/dma.h index 9466abd87..672d42e90 100644 --- a/libs/efm_support/Include/efm_support/dma.h +++ b/libs/efm_support/Include/efm_support/dma.h @@ -25,7 +25,7 @@ namespace efm */ template constexpr DMADRV_PeripheralSignal_t DMASignal(const USART_TypeDef* peripheral) = delete; - template <> constexpr DMADRV_PeripheralSignal_t DMASignal(const USART_TypeDef* peripheral) + template <> inline DMADRV_PeripheralSignal_t DMASignal(const USART_TypeDef* peripheral) { if (peripheral == USART0) return dmadrvPeripheralSignal_USART0_RXDATAV; @@ -36,7 +36,7 @@ namespace efm return static_cast(-1); } - template <> constexpr DMADRV_PeripheralSignal_t DMASignal(const USART_TypeDef* peripheral) + template <> inline DMADRV_PeripheralSignal_t DMASignal(const USART_TypeDef* peripheral) { if (peripheral == USART0) return dmadrvPeripheralSignal_USART0_TXBL; diff --git a/libs/experiments/camera/camera_exp.cpp b/libs/experiments/camera/camera_exp.cpp index df6466bf2..acb56c8a9 100644 --- a/libs/experiments/camera/camera_exp.cpp +++ b/libs/experiments/camera/camera_exp.cpp @@ -23,7 +23,7 @@ namespace experiment _controller.SetPhotoFilesBaseName(this->_fileName); } - CameraCommissioningExperiment::CameraCommissioningExperiment(CameraCommissioningExperiment&& other) + CameraCommissioningExperiment::CameraCommissioningExperiment(CameraCommissioningExperiment&& other) noexcept : _time(other._time), _fileSystem(other._fileSystem), _experimentFile(std::move(other._experimentFile)), _photoService(other._photoService), _controller(_experimentFile, _photoService), _currentStep(other._currentStep) { diff --git a/libs/experiments/fs/ExperimentFile.cpp b/libs/experiments/fs/ExperimentFile.cpp index 6be1c4070..300d1f71e 100644 --- a/libs/experiments/fs/ExperimentFile.cpp +++ b/libs/experiments/fs/ExperimentFile.cpp @@ -19,7 +19,7 @@ ExperimentFile::~ExperimentFile() } } -ExperimentFile::ExperimentFile(ExperimentFile&& other) +ExperimentFile::ExperimentFile(ExperimentFile&& other) noexcept : _buffer(other._buffer), _time(other._time), _writer(_buffer), _hasPayloadInFrame(other._hasPayloadInFrame), onFlush(OnFlushDelegate::make_delegate(this)) { @@ -29,7 +29,7 @@ ExperimentFile::ExperimentFile(ExperimentFile&& other) _writer.Reserve(other._writer.GetDataLength()); } -ExperimentFile& ExperimentFile::operator=(ExperimentFile&& other) +ExperimentFile& ExperimentFile::operator=(ExperimentFile&& other) noexcept { ExperimentFile tmp(std::move(other)); diff --git a/libs/experiments/payload/payload_exp.cpp b/libs/experiments/payload/payload_exp.cpp index 197f69353..7b4f453ac 100644 --- a/libs/experiments/payload/payload_exp.cpp +++ b/libs/experiments/payload/payload_exp.cpp @@ -38,7 +38,7 @@ namespace experiment _cameraCommisioningController.SetPhotoFilesBaseName(this->_fileName); } - PayloadCommissioningExperiment::PayloadCommissioningExperiment(PayloadCommissioningExperiment&& other) + PayloadCommissioningExperiment::PayloadCommissioningExperiment(PayloadCommissioningExperiment&& other) noexcept : _payload(other._payload), _time(other._time), _fileSystem(other._fileSystem), _powerControl(other._powerControl), _experimentalSunS(other._experimentalSunS), _photoService(other._photoService), _experimentFile(std::move(other._experimentFile)), _telemetryProvider(other._telemetryProvider), diff --git a/libs/experiments/suns/suns.cpp b/libs/experiments/suns/suns.cpp index 797371f88..598798a96 100644 --- a/libs/experiments/suns/suns.cpp +++ b/libs/experiments/suns/suns.cpp @@ -55,7 +55,7 @@ namespace experiment strsafecpy(this->_primaryFileName, baseName); strsafecpy(this->_secondaryFileName, this->_primaryFileName, sizeof(this->_primaryFileName)); - std::strncat(this->_secondaryFileName, "_sec", 4); + std::strncat(this->_secondaryFileName, "_sec", 5); } ExperimentCode SunSExperiment::Type() diff --git a/libs/scrubber/Include/scrubber/ram.hpp b/libs/scrubber/Include/scrubber/ram.hpp index c516432fe..6286cb05f 100644 --- a/libs/scrubber/Include/scrubber/ram.hpp +++ b/libs/scrubber/Include/scrubber/ram.hpp @@ -52,9 +52,9 @@ namespace scrubber private: /** @brief Pointer to first byte of memory */ - static constexpr auto MemoryStart = reinterpret_cast(Start); + static std::uint32_t* const MemoryStart; /** @brief Pointer to first byte after memory */ - static constexpr auto MemoryEnd = reinterpret_cast(Start + Size); + static std::uint32_t* const MemoryEnd; /** @brief Pointer increment in single cycle */ static constexpr auto PointerIncrement = CycleSize / 4; /** @brief Pointer to next byte to be scrubbed */ @@ -64,7 +64,14 @@ namespace scrubber template std::uint32_t* RAMScrubber::_current(MemoryStart); - template inline void RAMScrubber::Scrub() + template + std::uint32_t* const RAMScrubber::MemoryStart = reinterpret_cast(Start); + + template + std::uint32_t* const RAMScrubber::MemoryEnd = reinterpret_cast(Start + Size); + + template + inline void RAMScrubber::Scrub() { INT_Disable(); diff --git a/libs/state/Include/state/LockablePersistentState.hpp b/libs/state/Include/state/LockablePersistentState.hpp index 8b7278359..a2dff0505 100644 --- a/libs/state/Include/state/LockablePersistentState.hpp +++ b/libs/state/Include/state/LockablePersistentState.hpp @@ -119,7 +119,7 @@ namespace state return false; } - object = state.Get(); + object = state.template Get(); return true; } diff --git a/platforms/mcu/EngModel/CMakeLists.txt b/platforms/mcu/EngModel/CMakeLists.txt index c31a82e67..abede6532 100644 --- a/platforms/mcu/EngModel/CMakeLists.txt +++ b/platforms/mcu/EngModel/CMakeLists.txt @@ -1,9 +1,10 @@ set(SOURCES - + variables.cpp ) -add_library(platform INTERFACE ${SOURCES}) +add_library(platform STATIC ${SOURCES}) -target_link_libraries(platform INTERFACE base) +target_link_libraries(platform PUBLIC base) +target_link_libraries(platform PRIVATE emlib) -target_include_directories (platform INTERFACE ${CMAKE_CURRENT_LIST_DIR}/Include) +target_include_directories (platform PUBLIC ${CMAKE_CURRENT_LIST_DIR}/Include) diff --git a/platforms/mcu/EngModel/Include/mcu/io_map.h b/platforms/mcu/EngModel/Include/mcu/io_map.h index 070dd2c08..f2b44a2b0 100644 --- a/platforms/mcu/EngModel/Include/mcu/io_map.h +++ b/platforms/mcu/EngModel/Include/mcu/io_map.h @@ -36,7 +36,7 @@ namespace io_map struct SPI : public SPIPins { static constexpr std::uint32_t Baudrate = 20_MHz; - static constexpr USART_TypeDef* Peripheral = USART0; + static USART_TypeDef* const Peripheral; static constexpr std::uint8_t Location = 1; using MOSI = PinLocation; using MISO = PinLocation; @@ -48,7 +48,7 @@ namespace io_map struct UART_0 : public UARTPins { static constexpr std::uint8_t Id = 0; - static constexpr USART_TypeDef* Peripheral = UART0; + static USART_TypeDef* const Peripheral; static constexpr CMU_Clock_TypeDef Clock = cmuClock_UART0; static constexpr std::uint32_t Baudrate = 57600; @@ -61,12 +61,12 @@ namespace io_map static constexpr std::uint32_t Location = UART_ROUTE_LOCATION_LOC0; using TX = PinLocation; using RX = PinLocation; - }; + }; struct UART_1 : public UARTPins { static constexpr std::uint8_t Id = 1; - static constexpr USART_TypeDef* Peripheral = UART1; + static USART_TypeDef* const Peripheral; static constexpr CMU_Clock_TypeDef Clock = cmuClock_UART1; static constexpr std::uint32_t Baudrate = 115200; @@ -118,13 +118,13 @@ namespace io_map struct ProgramFlash { - static constexpr std::uint8_t* FlashBase = reinterpret_cast(0x84000000); - static constexpr std::uint8_t* ApplicatonBase = reinterpret_cast(0x00080000); + static std::uint8_t* const FlashBase; + static std::uint8_t* const ApplicatonBase; }; struct RAMScrubbing { - static constexpr auto TimerHW = TIMER0; + static TIMER_TypeDef* const TimerHW; static constexpr auto Prescaler = timerPrescale1024; static constexpr auto TimerTop = 468; static constexpr auto IRQ = IRQn_Type::TIMER0_IRQn; @@ -180,7 +180,7 @@ namespace io_map struct Latchup { - static constexpr auto HW = ACMP0; + static ACMP_TypeDef* const HW; using SRAM1 = PinLocation; using SRAM2 = PinLocation; @@ -203,7 +203,7 @@ namespace io_map using Control = PinLocation; using Buffer = PinLocation; using Power = PinLocation; - static constexpr decltype(auto) Comparator = ACMP0; + static ACMP_TypeDef* const Comparator; struct Group { @@ -216,7 +216,7 @@ namespace io_map using Control = PinLocation; using Buffer = PinLocation; using Power = PinLocation; - static constexpr decltype(auto) Comparator = ACMP1; + static ACMP_TypeDef* const Comparator; struct Group { diff --git a/platforms/mcu/EngModel/settings.cmake b/platforms/mcu/EngModel/settings.cmake index f55103c45..63d83f89c 100644 --- a/platforms/mcu/EngModel/settings.cmake +++ b/platforms/mcu/EngModel/settings.cmake @@ -26,8 +26,12 @@ if(ENABLE_LTO) set(LTO_SWITCH "-flto") endif() +set (EIGEN_WARN_FIX "-Wno-int-in-bool-context") +set (RAPID_CHECK_WARN_FIX "-Wno-shift-negative-value") + set (CWARN "-Wall -Wstrict-prototypes -Wextra -Werror") -set (CXXWARN "-Wall -Wextra -Werror") +set (CXXWARN "-Wall -Wextra -Werror ${EIGEN_WARN_FIX} ${RAPID_CHECK_WARN_FIX}") + set (CTUNING "-ggdb -pedantic -fomit-frame-pointer -ffunction-sections -fdata-sections") set (CMCU "-mtune=cortex-m3 -MMD -MP -mcpu=cortex-m3 -mthumb -march=armv7-m -mlittle-endian -mfix-cortex-m3-ldrd -mno-thumb-interwork") set (CMAKE_C_FLAGS "-std=gnu11 ${CWARN} ${CTUNING} ${CMCU} ${CCOVERAGE}") diff --git a/platforms/mcu/EngModel/variables.cpp b/platforms/mcu/EngModel/variables.cpp new file mode 100644 index 000000000..67ba31fba --- /dev/null +++ b/platforms/mcu/EngModel/variables.cpp @@ -0,0 +1,14 @@ +#include "mcu/io_map.h" + +namespace io_map +{ + USART_TypeDef* const SPI::Peripheral = USART0; + USART_TypeDef* const UART_0::Peripheral = UART0; + USART_TypeDef* const UART_1::Peripheral = UART1; + std::uint8_t* const ProgramFlash::FlashBase = reinterpret_cast(0x84000000); + std::uint8_t* const ProgramFlash::ApplicatonBase = reinterpret_cast(0x00080000); + TIMER_TypeDef* const RAMScrubbing::TimerHW = TIMER0; + ACMP_TypeDef* const BSP::Latchup::HW = ACMP0; + ACMP_TypeDef* const MemoryModule<1>::Comparator = ACMP0; + ACMP_TypeDef* const MemoryModule<2>::Comparator = ACMP1; +} diff --git a/platforms/mcu/FlightModel/CMakeLists.txt b/platforms/mcu/FlightModel/CMakeLists.txt index c31a82e67..de20ca2aa 100644 --- a/platforms/mcu/FlightModel/CMakeLists.txt +++ b/platforms/mcu/FlightModel/CMakeLists.txt @@ -1,9 +1,10 @@ set(SOURCES - + variables.cpp ) -add_library(platform INTERFACE ${SOURCES}) +add_library(platform STATIC ${SOURCES}) -target_link_libraries(platform INTERFACE base) +target_link_libraries(platform PUBLIC base) +target_link_libraries(platform PRIVATE emlib) -target_include_directories (platform INTERFACE ${CMAKE_CURRENT_LIST_DIR}/Include) +target_include_directories (platform PUBLIC ${CMAKE_CURRENT_LIST_DIR}/Include) diff --git a/platforms/mcu/FlightModel/Include/mcu/io_map.h b/platforms/mcu/FlightModel/Include/mcu/io_map.h index c0582bf2c..03027dc6e 100644 --- a/platforms/mcu/FlightModel/Include/mcu/io_map.h +++ b/platforms/mcu/FlightModel/Include/mcu/io_map.h @@ -36,7 +36,7 @@ namespace io_map struct SPI : public SPIPins { static constexpr std::uint32_t Baudrate = 20_MHz; - static constexpr USART_TypeDef* Peripheral = USART0; + static USART_TypeDef* const Peripheral; static constexpr std::uint8_t Location = 1; using MOSI = PinLocation; using MISO = PinLocation; @@ -48,7 +48,7 @@ namespace io_map struct UART_0 : public UARTPins { static constexpr std::uint8_t Id = 0; - static constexpr USART_TypeDef* Peripheral = UART0; + static USART_TypeDef* const Peripheral; static constexpr CMU_Clock_TypeDef Clock = cmuClock_UART0; static constexpr std::uint32_t Baudrate = 57600; @@ -66,7 +66,7 @@ namespace io_map struct UART_1 : public UARTPins { static constexpr std::uint8_t Id = 1; - static constexpr USART_TypeDef* Peripheral = UART1; + static USART_TypeDef* const Peripheral; static constexpr CMU_Clock_TypeDef Clock = cmuClock_UART1; static constexpr std::uint32_t Baudrate = 115200; @@ -118,13 +118,13 @@ namespace io_map struct ProgramFlash { - static constexpr std::uint8_t* FlashBase = reinterpret_cast(0x84000000); - static constexpr std::uint8_t* ApplicatonBase = reinterpret_cast(0x00080000); + static std::uint8_t* const FlashBase; + static std::uint8_t* const ApplicatonBase; }; struct RAMScrubbing { - static constexpr auto TimerHW = TIMER0; + static TIMER_TypeDef* const TimerHW; static constexpr auto Prescaler = timerPrescale1024; static constexpr auto TimerTop = 468; static constexpr auto IRQ = IRQn_Type::TIMER0_IRQn; @@ -180,7 +180,7 @@ namespace io_map struct Latchup { - static constexpr auto HW = ACMP0; + static ACMP_TypeDef* const HW; using SRAM1 = PinLocation; using SRAM2 = PinLocation; @@ -203,7 +203,7 @@ namespace io_map using Control = PinLocation; using Buffer = PinLocation; using Power = PinLocation; - static constexpr decltype(auto) Comparator = ACMP0; + static ACMP_TypeDef* const Comparator; struct Group { @@ -216,7 +216,7 @@ namespace io_map using Control = PinLocation; using Buffer = PinLocation; using Power = PinLocation; - static constexpr decltype(auto) Comparator = ACMP1; + static ACMP_TypeDef* const Comparator; struct Group { diff --git a/platforms/mcu/FlightModel/settings.cmake b/platforms/mcu/FlightModel/settings.cmake index f55103c45..4cba1a6f5 100644 --- a/platforms/mcu/FlightModel/settings.cmake +++ b/platforms/mcu/FlightModel/settings.cmake @@ -26,8 +26,12 @@ if(ENABLE_LTO) set(LTO_SWITCH "-flto") endif() +set (EIGEN_WARN_FIX "-Wno-int-in-bool-context") +set (RAPID_CHECK_WARN_FIX "-Wno-shift-negative-value") + set (CWARN "-Wall -Wstrict-prototypes -Wextra -Werror") -set (CXXWARN "-Wall -Wextra -Werror") +set (CXXWARN "-Wall -Wextra -Werror ${EIGEN_WARN_FIX} ${RAPID_CHECK_WARN_FIX} -Wno-unused-function") + set (CTUNING "-ggdb -pedantic -fomit-frame-pointer -ffunction-sections -fdata-sections") set (CMCU "-mtune=cortex-m3 -MMD -MP -mcpu=cortex-m3 -mthumb -march=armv7-m -mlittle-endian -mfix-cortex-m3-ldrd -mno-thumb-interwork") set (CMAKE_C_FLAGS "-std=gnu11 ${CWARN} ${CTUNING} ${CMCU} ${CCOVERAGE}") diff --git a/platforms/mcu/FlightModel/variables.cpp b/platforms/mcu/FlightModel/variables.cpp new file mode 100644 index 000000000..67ba31fba --- /dev/null +++ b/platforms/mcu/FlightModel/variables.cpp @@ -0,0 +1,14 @@ +#include "mcu/io_map.h" + +namespace io_map +{ + USART_TypeDef* const SPI::Peripheral = USART0; + USART_TypeDef* const UART_0::Peripheral = UART0; + USART_TypeDef* const UART_1::Peripheral = UART1; + std::uint8_t* const ProgramFlash::FlashBase = reinterpret_cast(0x84000000); + std::uint8_t* const ProgramFlash::ApplicatonBase = reinterpret_cast(0x00080000); + TIMER_TypeDef* const RAMScrubbing::TimerHW = TIMER0; + ACMP_TypeDef* const BSP::Latchup::HW = ACMP0; + ACMP_TypeDef* const MemoryModule<1>::Comparator = ACMP0; + ACMP_TypeDef* const MemoryModule<2>::Comparator = ACMP1; +} diff --git a/src/main.cpp b/src/main.cpp index 67a7dc165..bb66bbf55 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -310,7 +310,7 @@ extern "C" void __libc_init_array(void); int main(void) { - memset(&Main, 0, sizeof(Main)); + memset(reinterpret_cast(&Main), 0, sizeof(Main)); __libc_init_array(); diff --git a/test/generate_exp_data/suns_data.cpp b/test/generate_exp_data/suns_data.cpp index 2f095739e..fcf2daf57 100644 --- a/test/generate_exp_data/suns_data.cpp +++ b/test/generate_exp_data/suns_data.cpp @@ -7,9 +7,7 @@ using experiments::fs::ExperimentFile; void GenerateSunSData(IFileSystem& fs) { - experiment::suns::DataPoint data; - - memset(&data, 0, sizeof(data)); + experiment::suns::DataPoint data = {}; data.Timestamp = 1234ms; diff --git a/toolchain.cmake b/toolchain.cmake index 01692948f..b2346a3f8 100644 --- a/toolchain.cmake +++ b/toolchain.cmake @@ -34,6 +34,6 @@ find_program(CLANG_FORMAT NAMES clang-format HINTS $ENV{CLANG_PATH}) set(CMAKE_EXECUTABLE_FORMAT ELF) -if(${CMAKE_GENERATOR} STREQUAL "MinGW Makefiles") +if(${CMAKE_GENERATOR} STREQUAL "MinGW Makefiles" OR ${CMAKE_GENERATOR} STREQUAL "Unix Makefiles") find_program(CMAKE_MAKE_PROGRAM NAMES make PATHS $ENV{ARM_TOOLCHAIN}) -endif() \ No newline at end of file +endif() diff --git a/unit_tests/mission/MissionPlan/beacon/BeaconUpdateTest.cpp b/unit_tests/mission/MissionPlan/beacon/BeaconUpdateTest.cpp index 6912e7905..79256e12c 100644 --- a/unit_tests/mission/MissionPlan/beacon/BeaconUpdateTest.cpp +++ b/unit_tests/mission/MissionPlan/beacon/BeaconUpdateTest.cpp @@ -26,9 +26,11 @@ namespace mission::BeaconUpdate beacon{0}; mission::ActionDescriptor action{beacon.BuildAction()}; - static constexpr OSTaskHandle Task = reinterpret_cast(1); + static const OSTaskHandle Task; }; + const OSTaskHandle BeaconUpdateTest::Task = reinterpret_cast(1); + BeaconUpdateTest::BeaconUpdateTest() { ON_CALL(os, TakeSemaphore(_, _)).WillByDefault(Return(OSResult::Success)); From c05f076e38e2ac3850d74f029cd4f7847f0e6443 Mon Sep 17 00:00:00 2001 From: Grzegorz Gajoch Date: Wed, 27 Mar 2019 13:17:58 +0000 Subject: [PATCH 2/2] Compilation fix for newer cmake --- libs/drivers/uart/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/drivers/uart/CMakeLists.txt b/libs/drivers/uart/CMakeLists.txt index fbd522b06..d35ec7cc9 100644 --- a/libs/drivers/uart/CMakeLists.txt +++ b/libs/drivers/uart/CMakeLists.txt @@ -1,6 +1,7 @@ set(NAME uart) set(SOURCES + Include/uart/uart.hpp ) add_library(${NAME} STATIC ${SOURCES})