diff --git a/drivers/CoreBattery/include/CoreBattery.h b/drivers/CoreBattery/include/CoreBattery.h index 109fc1e980..1f47e5c928 100644 --- a/drivers/CoreBattery/include/CoreBattery.h +++ b/drivers/CoreBattery/include/CoreBattery.h @@ -2,8 +2,7 @@ // Copyright 2021-2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_BATTERY_H_ -#define _LEKA_OS_DRIVER_CORE_BATTERY_H_ +#pragma once #include "drivers/AnalogIn.h" #include "drivers/InterruptIn.h" @@ -53,5 +52,3 @@ class CoreBattery : public interface::Battery }; } // namespace leka - -#endif //_LEKA_OS_DRIVER_CORE_BATTERY_H_ diff --git a/drivers/CoreBufferedSerial/include/CoreBufferedSerial.h b/drivers/CoreBufferedSerial/include/CoreBufferedSerial.h index 1f7ff019a7..eef003a61f 100644 --- a/drivers/CoreBufferedSerial/include/CoreBufferedSerial.h +++ b/drivers/CoreBufferedSerial/include/CoreBufferedSerial.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_BUFFERED_SERIAL_H_ -#define _LEKA_OS_DRIVER_CORE_BUFFERED_SERIAL_H_ +#pragma once #include "drivers/BufferedSerial.h" @@ -25,5 +24,3 @@ class CoreBufferedSerial : public interface::BufferedSerial }; } // namespace leka - -#endif //_LEKA_OS_DRIVER_CORE_BUFFERED_SERIAL_H_ diff --git a/drivers/CoreEventQueue/include/CoreEventQueue.h b/drivers/CoreEventQueue/include/CoreEventQueue.h index 5f453f1e89..5618d8d5f4 100644 --- a/drivers/CoreEventQueue/include/CoreEventQueue.h +++ b/drivers/CoreEventQueue/include/CoreEventQueue.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_EVENT_QUEUE_H_ -#define _LEKA_OS_DRIVER_CORE_EVENT_QUEUE_H_ +#pragma once #include "events/EventQueue.h" #include "rtos/Thread.h" @@ -30,5 +29,3 @@ class CoreEventQueue : public interface::EventQueue }; } // namespace leka - -#endif //_LEKA_OS_DRIVER_CORE_EVENT_QUEUE_H_ diff --git a/drivers/CoreFlashMemory/include/CoreFlashIS25LP016D.h b/drivers/CoreFlashMemory/include/CoreFlashIS25LP016D.h index 4ebb747bc1..1b36c859cd 100644 --- a/drivers/CoreFlashMemory/include/CoreFlashIS25LP016D.h +++ b/drivers/CoreFlashMemory/include/CoreFlashIS25LP016D.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_FLASH_MEMORY_IS25LP016D_H_ -#define _LEKA_OS_DRIVER_CORE_FLASH_MEMORY_IS25LP016D_H_ +#pragma once #include #include @@ -49,5 +48,3 @@ namespace command { // } // namespace status } // namespace flash::is25lp016d - -#endif //_LEKA_OS_DRIVER_CORE_FLASH_MEMORY_IS25LP016D_H_ diff --git a/drivers/CoreFlashMemory/include/CoreFlashManagerIS25LP016D.h b/drivers/CoreFlashMemory/include/CoreFlashManagerIS25LP016D.h index 316c4bc627..b4d506d669 100644 --- a/drivers/CoreFlashMemory/include/CoreFlashManagerIS25LP016D.h +++ b/drivers/CoreFlashMemory/include/CoreFlashManagerIS25LP016D.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_FLASH_MEMORY_MANAGER_IS25LP016D_H_ -#define _LEKA_OS_DRIVER_CORE_FLASH_MEMORY_MANAGER_IS25LP016D_H_ +#pragma once #include @@ -71,5 +70,3 @@ namespace status { } // namespace status } // namespace flash::is25lp016d - -#endif //_LEKA_OS_DRIVER_CORE_FLASH_MEMORY_MANAGER_IS25LP016D_H_ diff --git a/drivers/CoreFs/include/CoreFatFs.h b/drivers/CoreFs/include/CoreFatFs.h index 75b4c6f8c3..0511ad5f6f 100644 --- a/drivers/CoreFs/include/CoreFatFs.h +++ b/drivers/CoreFs/include/CoreFatFs.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_FATFS_H_ -#define _LEKA_OS_LIB_FATFS_H_ +#pragma once #include "CoreFatFsBase.h" @@ -29,5 +28,3 @@ class CoreFatFs : public CoreFatFsBase }; } // namespace leka - -#endif // _LEKA_OS_LIB_FATFS_H_ diff --git a/drivers/CoreFs/include/CoreFatFsBase.h b/drivers/CoreFs/include/CoreFatFsBase.h index 53302b910f..8c2e8682b5 100644 --- a/drivers/CoreFs/include/CoreFatFsBase.h +++ b/drivers/CoreFs/include/CoreFatFsBase.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_FATFS_BASE_H_ -#define _LEKA_OS_LIB_FATFS_BASE_H_ +#pragma once #include @@ -29,5 +28,3 @@ class CoreFatFsBase }; } // namespace leka - -#endif // _LEKA_OS_LIB_FATFS_BASE_H_ diff --git a/drivers/CoreHTS/include/CoreHTS.h b/drivers/CoreHTS/include/CoreHTS.h index 3eb77cdf0d..e98fa009d2 100644 --- a/drivers/CoreHTS/include/CoreHTS.h +++ b/drivers/CoreHTS/include/CoreHTS.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_LK_CORE_HTS221_DRIVER_H_ -#define _LEKA_OS_DRIVER_LK_CORE_HTS221_DRIVER_H_ +#pragma once #include #include @@ -83,5 +82,3 @@ class CoreHTS : public interface::TemperatureSensor, public interface::HumidityS std::array _buffer {0}; }; } // namespace leka - -#endif //_LEKA_OS_DRIVER_LK_CORE_HTS221_DRIVER_H_ diff --git a/drivers/CoreI2C/include/CoreI2C.h b/drivers/CoreI2C/include/CoreI2C.h index 940903d618..b4197fce20 100644 --- a/drivers/CoreI2C/include/CoreI2C.h +++ b/drivers/CoreI2C/include/CoreI2C.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_LK_CORE_I2C_H_ -#define _LEKA_OS_DRIVER_LK_CORE_I2C_H_ +#pragma once #include "drivers/I2C.h" @@ -35,5 +34,3 @@ class CoreI2C : public interface::I2C }; } // namespace leka - -#endif //_LEKA_OS_DRIVER_LK_CORE_I2C_H_ diff --git a/drivers/CoreLED/include/CoreLED.h b/drivers/CoreLED/include/CoreLED.h index 178496c19c..1c8fe5224b 100644 --- a/drivers/CoreLED/include/CoreLED.h +++ b/drivers/CoreLED/include/CoreLED.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_LED_H_ -#define _LEKA_OS_DRIVER_CORE_LED_H_ +#pragma once #include @@ -138,5 +137,3 @@ class CoreLED : public interface::LED }; } // namespace leka - -#endif // _LEKA_OS_DRIVER_CORE_LED_H_ diff --git a/drivers/CoreLL/include/CoreLL.h b/drivers/CoreLL/include/CoreLL.h index 34fd523ac9..25882b9b13 100644 --- a/drivers/CoreLL/include/CoreLL.h +++ b/drivers/CoreLL/include/CoreLL.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LL_H_ -#define _LEKA_OS_LL_H_ +#pragma once #include @@ -20,5 +19,3 @@ class CoreLL }; } // namespace leka - -#endif // _LEKA_OS_LL_H_ diff --git a/drivers/CoreLightSensor/include/CoreLightSensor.h b/drivers/CoreLightSensor/include/CoreLightSensor.h index 0360dd5159..0abc262973 100644 --- a/drivers/CoreLightSensor/include/CoreLightSensor.h +++ b/drivers/CoreLightSensor/include/CoreLightSensor.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_LK_CORE_LIGHT_SENSOR_H_ -#define _LEKA_OS_DRIVER_LK_CORE_LIGHT_SENSOR_H_ +#pragma once #include "drivers/AnalogIn.h" @@ -33,5 +32,3 @@ class CoreLightSensor }; } // namespace leka - -#endif //_LEKA_OS_DRIVER_LK_CORE_LIGHT_SENSOR_H_ diff --git a/drivers/CoreMicrophone/include/CoreMicrophone.h b/drivers/CoreMicrophone/include/CoreMicrophone.h index 16b8f6872a..88f52c175c 100644 --- a/drivers/CoreMicrophone/include/CoreMicrophone.h +++ b/drivers/CoreMicrophone/include/CoreMicrophone.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_LK_CORE_MICROPHONE_H_ -#define _LEKA_OS_DRIVER_LK_CORE_MICROPHONE_H_ +#pragma once #include "drivers/AnalogIn.h" @@ -21,5 +20,3 @@ class CoreMicrophone }; } // namespace leka - -#endif //_LEKA_OS_DRIVER_LK_CORE_MICROPHONE_H_ diff --git a/drivers/CoreMotor/include/CoreMotor.h b/drivers/CoreMotor/include/CoreMotor.h index dd5691082e..ab6b619377 100644 --- a/drivers/CoreMotor/include/CoreMotor.h +++ b/drivers/CoreMotor/include/CoreMotor.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_MOTOR_H_ -#define _LEKA_OS_LIB_MOTOR_H_ +#pragma once #include "drivers/PwmOut.h" #include "drivers/interfaces/InterfaceDigitalOut.h" @@ -32,5 +31,3 @@ class CoreMotor : public CoreMotorBase }; } // namespace leka - -#endif // _LEKA_OS_LIB_MOTOR_H_ diff --git a/drivers/CoreMotor/include/CoreMotorBase.h b/drivers/CoreMotor/include/CoreMotorBase.h index 1c7306d0c0..1fcb8fee80 100644 --- a/drivers/CoreMotor/include/CoreMotorBase.h +++ b/drivers/CoreMotor/include/CoreMotorBase.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_MOTOR_BASE_H_ -#define _LEKA_OS_LIB_MOTOR_BASE_H_ +#pragma once namespace leka { @@ -26,5 +25,3 @@ class CoreMotorBase }; } // namespace leka - -#endif // _LEKA_OS_LIB_MOTOR_BASE_H_ diff --git a/drivers/CorePwm/include/CorePwm.h b/drivers/CorePwm/include/CorePwm.h index ea18a7aa1c..6cf553e2ab 100644 --- a/drivers/CorePwm/include/CorePwm.h +++ b/drivers/CorePwm/include/CorePwm.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_LK_CORE_PWM_OUT_H_ -#define _LEKA_OS_DRIVER_LK_CORE_PWM_OUT_H_ +#pragma once #include "drivers/PwmOut.h" @@ -24,5 +23,3 @@ class CorePwm : public interface::PwmOut }; } // namespace leka - -#endif //_LEKA_OS_DRIVER_LK_CORE_PWM_OUT_H_ diff --git a/drivers/CoreQSPI/include/CoreQSPI.h b/drivers/CoreQSPI/include/CoreQSPI.h index 1b6a2a6a3b..122ffdad49 100644 --- a/drivers/CoreQSPI/include/CoreQSPI.h +++ b/drivers/CoreQSPI/include/CoreQSPI.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_QSPI_H_ -#define _LEKA_OS_DRIVER_CORE_QSPI_H_ +#pragma once #include @@ -34,5 +33,3 @@ class CoreQSPI : public interface::QSPI }; } // namespace leka - -#endif // _LEKA_OS_DRIVER_CORE_QSPI_H_ diff --git a/drivers/CoreSPI/include/CoreSPI.h b/drivers/CoreSPI/include/CoreSPI.h index 9261327b20..5dfb901545 100644 --- a/drivers/CoreSPI/include/CoreSPI.h +++ b/drivers/CoreSPI/include/CoreSPI.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_SPI_H_ -#define _LEKA_OS_DRIVER_CORE_SPI_H_ +#pragma once #include "drivers/SPI.h" @@ -23,5 +22,3 @@ class CoreSPI : public interface::SPI }; } // namespace leka - -#endif //_LEKA_OS_DRIVER_CORE_SPI_H_ diff --git a/drivers/CoreSTM32Hal/include/CoreSTM32Hal.h b/drivers/CoreSTM32Hal/include/CoreSTM32Hal.h index 51c72fbd30..74935f94f9 100644 --- a/drivers/CoreSTM32Hal/include/CoreSTM32Hal.h +++ b/drivers/CoreSTM32Hal/include/CoreSTM32Hal.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_STM32_HAL_H_ -#define _LEKA_OS_STM32_HAL_H_ +#pragma once #include "CoreSTM32HalBase.h" #include "stm32f7xx_hal.h" @@ -90,5 +89,3 @@ class CoreSTM32Hal : public CoreSTM32HalBase }; } // namespace leka - -#endif // _LEKA_OS_STM32_HAL_H_ diff --git a/drivers/CoreSTM32Hal/include/CoreSTM32HalBase.h b/drivers/CoreSTM32Hal/include/CoreSTM32HalBase.h index bb3b174a21..f39c5543b5 100644 --- a/drivers/CoreSTM32Hal/include/CoreSTM32HalBase.h +++ b/drivers/CoreSTM32Hal/include/CoreSTM32HalBase.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_STM32_HAL_BASE_H_ -#define _LEKA_OS_STM32_HAL_BASE_H_ +#pragma once #include "stm32f7xx_hal.h" @@ -92,5 +91,3 @@ class CoreSTM32HalBase }; } // namespace leka - -#endif // _LEKA_OS_STM32_HAL_BASE_H_ diff --git a/drivers/CoreTicker/include/CoreTicker.h b/drivers/CoreTicker/include/CoreTicker.h index 9f7a5f7fac..10bd93afe8 100644 --- a/drivers/CoreTicker/include/CoreTicker.h +++ b/drivers/CoreTicker/include/CoreTicker.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_TICKER_H_ -#define _LEKA_OS_DRIVER_CORE_TICKER_H_ +#pragma once #include "drivers/LowPowerTicker.h" @@ -30,5 +29,3 @@ class CoreTicker : public interface::Ticker }; } // namespace leka - -#endif // _LEKA_OS_DRIVER_CORE_TICKER_H_ diff --git a/drivers/CoreTimeout/include/CoreTimeout.h b/drivers/CoreTimeout/include/CoreTimeout.h index 6069d58c32..2625956591 100644 --- a/drivers/CoreTimeout/include/CoreTimeout.h +++ b/drivers/CoreTimeout/include/CoreTimeout.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_TIMEOUT_H_ -#define _LEKA_OS_DRIVER_CORE_TIMEOUT_H_ +#pragma once #include "drivers/LowPowerTimeout.h" @@ -30,5 +29,3 @@ class CoreTimeout : public interface::Timeout }; } // namespace leka - -#endif // _LEKA_OS_DRIVER_CORE_TIMEOUT_H_ diff --git a/drivers/CoreVideo/include/CGColor.hpp b/drivers/CoreVideo/include/CGColor.hpp index 6e45c0107c..249fc8a58e 100644 --- a/drivers/CoreVideo/include/CGColor.hpp +++ b/drivers/CoreVideo/include/CGColor.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_CGCOLOR_H_ -#define _LEKA_OS_LIB_CGCOLOR_H_ +#pragma once #include @@ -39,5 +38,3 @@ constexpr CGColor CGColor::cyan {0x00, 0xFF, 0xFF}; constexpr CGColor CGColor::magenta {0xFF, 0x00, 0xFF}; } // namespace leka - -#endif diff --git a/drivers/CoreVideo/include/CGFont.hpp b/drivers/CoreVideo/include/CGFont.hpp index 062ddf3e07..bd1a3cc113 100644 --- a/drivers/CoreVideo/include/CGFont.hpp +++ b/drivers/CoreVideo/include/CGFont.hpp @@ -3,8 +3,7 @@ // SPDX-License-Identifier: BSD-3-Clause // Original file: https://github.com/STMicroelectronics/STM32CubeF7/blob/master/Utilities/Fonts/font24.c -#ifndef _LEKA_OS_DRIVER_CORE_VIDEO_FONT_TABLE_H_ -#define _LEKA_OS_DRIVER_CORE_VIDEO_FONT_TABLE_H_ +#pragma once #include #include @@ -2492,5 +2491,3 @@ constexpr auto CGFontTable = std::to_array({ }); } // namespace leka - -#endif // _LEKA_OS_DRIVER_CORE_VIDEO_FONT_TABLE_H_ diff --git a/drivers/CoreVideo/include/CGPixel.hpp b/drivers/CoreVideo/include/CGPixel.hpp index 0455324c9e..ab16fe439a 100644 --- a/drivers/CoreVideo/include/CGPixel.hpp +++ b/drivers/CoreVideo/include/CGPixel.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_CGPIXEL_H_ -#define _LEKA_OS_LIB_CGPIXEL_H_ +#pragma once #include @@ -35,5 +34,3 @@ struct CGPixel { }; } // namespace leka - -#endif diff --git a/drivers/CoreVideo/include/CoreDMA2D.hpp b/drivers/CoreVideo/include/CoreDMA2D.hpp index 42cc9be1e2..45dad07366 100644 --- a/drivers/CoreVideo/include/CoreDMA2D.hpp +++ b/drivers/CoreVideo/include/CoreDMA2D.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_DMA2D_H_ -#define _LEKA_OS_LIB_DMA2D_H_ +#pragma once #include "interface/DMA2D.hpp" @@ -29,5 +28,3 @@ class CoreDMA2D : public interface::DMA2DBase }; } // namespace leka - -#endif // _LEKA_OS_LIB_DMA2D_H_ diff --git a/drivers/CoreVideo/include/CoreDSI.hpp b/drivers/CoreVideo/include/CoreDSI.hpp index bed0596d9c..762951b52f 100644 --- a/drivers/CoreVideo/include/CoreDSI.hpp +++ b/drivers/CoreVideo/include/CoreDSI.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_DSI_H_ -#define _LEKA_OS_DRIVER_DSI_H_ +#pragma once #include "CoreSTM32HalBase.h" #include "interface/DSI.hpp" @@ -31,5 +30,3 @@ class CoreDSI : public interface::DSIBase }; } // namespace leka - -#endif // _LEKA_OS_DRIVER_DSI_H_ diff --git a/drivers/CoreVideo/include/CoreFont.hpp b/drivers/CoreVideo/include/CoreFont.hpp index c88a60a3bc..6be4ff3c84 100644 --- a/drivers/CoreVideo/include/CoreFont.hpp +++ b/drivers/CoreVideo/include/CoreFont.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_FONT_H_ -#define _LEKA_OS_LIB_FONT_H_ +#pragma once #include "CGColor.hpp" #include "CGPixel.hpp" @@ -31,5 +30,3 @@ class CoreFont : public interface::Font }; } // namespace leka - -#endif diff --git a/drivers/CoreVideo/include/CoreGraphics.hpp b/drivers/CoreVideo/include/CoreGraphics.hpp index 5a152ed745..6806dc1aa2 100644 --- a/drivers/CoreVideo/include/CoreGraphics.hpp +++ b/drivers/CoreVideo/include/CoreGraphics.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_GRAPHICS_H_ -#define _LEKA_OS_LIB_GRAPHICS_H_ +#pragma once #include "CGColor.hpp" #include "CoreLL.h" @@ -27,5 +26,3 @@ class CoreGraphics : public interface::Graphics }; } // namespace leka - -#endif diff --git a/drivers/CoreVideo/include/CoreJPEG.hpp b/drivers/CoreVideo/include/CoreJPEG.hpp index db644cbf57..54b0163f03 100644 --- a/drivers/CoreVideo/include/CoreJPEG.hpp +++ b/drivers/CoreVideo/include/CoreJPEG.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_JPEG_H_ -#define _LEKA_OS_DRIVER_JPEG_H_ +#pragma once #include #include @@ -67,5 +66,3 @@ class CoreJPEG : public interface::JPEGBase }; } // namespace leka - -#endif // _LEKA_OS_DRIVER_JPEG_H_ diff --git a/drivers/CoreVideo/include/CoreLCD.hpp b/drivers/CoreVideo/include/CoreLCD.hpp index 2336ef74ce..24c7a8943c 100644 --- a/drivers/CoreVideo/include/CoreLCD.hpp +++ b/drivers/CoreVideo/include/CoreLCD.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_LCD_H_ -#define _LEKA_OS_DRIVER_LCD_H_ +#pragma once #include "drivers/PwmOut.h" @@ -29,5 +28,3 @@ class CoreLCD : public interface::LCD }; } // namespace leka - -#endif // _LEKA_OS_DRIVER_LCD_H_ diff --git a/drivers/CoreVideo/include/CoreLCDDriverOTM8009A.hpp b/drivers/CoreVideo/include/CoreLCDDriverOTM8009A.hpp index 2ff9b6dd5c..c9b97ce528 100644 --- a/drivers/CoreVideo/include/CoreLCDDriverOTM8009A.hpp +++ b/drivers/CoreVideo/include/CoreLCDDriverOTM8009A.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_LK_CORE_OTM8009A_H_ -#define _LEKA_OS_DRIVER_LK_CORE_OTM8009A_H_ +#pragma once #include "drivers/PwmOut.h" @@ -343,5 +342,3 @@ namespace lcd::otm8009a { // #define OTM8009A_CMD_WRTESCN 0x44 // Write Tearing Effect Scan line command // #define OTM8009A_CMD_RDSCNL 0x45 // Read Tearing Effect Scan line command - -#endif // _LEKA_OS_DRIVER_LK_CORE_OTM8009A_H_ diff --git a/drivers/CoreVideo/include/CoreLTDC.hpp b/drivers/CoreVideo/include/CoreLTDC.hpp index b05707f28a..2daeab0b1b 100644 --- a/drivers/CoreVideo/include/CoreLTDC.hpp +++ b/drivers/CoreVideo/include/CoreLTDC.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_LTDC_H_ -#define _LEKA_OS_LIB_LTDC_H_ +#pragma once #include "CoreSTM32HalBase.h" #include "interface/DSI.hpp" @@ -32,5 +31,3 @@ class CoreLTDC : public interface::LTDCBase }; } // namespace leka - -#endif // _LEKA_OS_LIB_LTDC_H_ diff --git a/drivers/CoreVideo/include/CoreSDRAM.hpp b/drivers/CoreVideo/include/CoreSDRAM.hpp index 6ddeeffe46..dc24997429 100644 --- a/drivers/CoreVideo/include/CoreSDRAM.hpp +++ b/drivers/CoreVideo/include/CoreSDRAM.hpp @@ -4,8 +4,7 @@ // Original file: // https://github.com/STMicroelectronics/STM32CubeF7/blob/master/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_sdram.h -#ifndef _LEKA_OS_LIB_SDRAM_H_ -#define _LEKA_OS_LIB_SDRAM_H_ +#pragma once #include "CoreSTM32HalBase.h" #include "interface/SDRAM.hpp" @@ -119,5 +118,3 @@ namespace mode { // #define SDRAM_MEMORY_WIDTH FMC_SDRAM_MEM_BUS_WIDTH_16 // #define SDCLOCK_PERIOD FMC_SDRAM_CLOCK_PERIOD_3 - -#endif diff --git a/drivers/CoreVideo/include/CoreVideo.hpp b/drivers/CoreVideo/include/CoreVideo.hpp index 8719cf9335..bc2e518bb8 100644 --- a/drivers/CoreVideo/include/CoreVideo.hpp +++ b/drivers/CoreVideo/include/CoreVideo.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_VIDEO_H_ -#define _LEKA_OS_DRIVER_CORE_VIDEO_H_ +#pragma once #include "CoreSTM32HalBase.h" #include "interface/DMA2D.hpp" @@ -50,5 +49,3 @@ class CoreVideo }; } // namespace leka - -#endif // _LEKA_OS_DRIVER_CORE_VIDEO_H_ diff --git a/drivers/CoreVideo/include/interface/DMA2D.hpp b/drivers/CoreVideo/include/interface/DMA2D.hpp index 9498cb781c..1616e84426 100644 --- a/drivers/CoreVideo/include/interface/DMA2D.hpp +++ b/drivers/CoreVideo/include/interface/DMA2D.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_DMA2D_BASE_H_ -#define _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_DMA2D_BASE_H_ +#pragma once #include "CoreSTM32HalBase.h" @@ -25,5 +24,3 @@ class DMA2DBase }; } // namespace leka::interface - -#endif // _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_DMA2D_BASE_H_ diff --git a/drivers/CoreVideo/include/interface/DSI.hpp b/drivers/CoreVideo/include/interface/DSI.hpp index fcf51cb890..172e032494 100644 --- a/drivers/CoreVideo/include/interface/DSI.hpp +++ b/drivers/CoreVideo/include/interface/DSI.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_DSI_BASE_H_ -#define _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_DSI_BASE_H_ +#pragma once #include "stm32f7xx_hal.h" @@ -24,5 +23,3 @@ class DSIBase }; } // namespace leka::interface - -#endif // _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_DSI_BASE_H_ diff --git a/drivers/CoreVideo/include/interface/Font.hpp b/drivers/CoreVideo/include/interface/Font.hpp index 7dc21b9b53..ef93f63dbf 100644 --- a/drivers/CoreVideo/include/interface/Font.hpp +++ b/drivers/CoreVideo/include/interface/Font.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_FONT_H_ -#define _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_FONT_H_ +#pragma once // #include @@ -34,5 +33,3 @@ class Font }; } // namespace leka::interface - -#endif // _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_FONT_H_ diff --git a/drivers/CoreVideo/include/interface/Graphics.hpp b/drivers/CoreVideo/include/interface/Graphics.hpp index c1eef95e45..f083d72cd3 100644 --- a/drivers/CoreVideo/include/interface/Graphics.hpp +++ b/drivers/CoreVideo/include/interface/Graphics.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_GRAPHICS_H_ -#define _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_GRAPHICS_H_ +#pragma once #include "CGColor.hpp" #include "CGPixel.hpp" @@ -27,5 +26,3 @@ class Graphics }; } // namespace leka::interface - -#endif // _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_GRAPHICS_H_ diff --git a/drivers/CoreVideo/include/interface/JPEG.hpp b/drivers/CoreVideo/include/interface/JPEG.hpp index fa473b01e3..9691a715d3 100644 --- a/drivers/CoreVideo/include/interface/JPEG.hpp +++ b/drivers/CoreVideo/include/interface/JPEG.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_JPEG_BASE_H_ -#define _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_JPEG_BASE_H_ +#pragma once #include "storage/filesystem/fat/ChaN/ff.h" @@ -39,5 +38,3 @@ class JPEGBase }; } // namespace leka::interface - -#endif // _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_JPEG_BASE_H_ diff --git a/drivers/CoreVideo/include/interface/LCD.hpp b/drivers/CoreVideo/include/interface/LCD.hpp index 2a24ee2508..6db994153f 100644 --- a/drivers/CoreVideo/include/interface/LCD.hpp +++ b/drivers/CoreVideo/include/interface/LCD.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_LCD_BASE_H_ -#define _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_LCD_BASE_H_ +#pragma once namespace leka::interface { @@ -21,5 +20,3 @@ class LCD }; } // namespace leka::interface - -#endif // _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_LCD_BASE_H_ diff --git a/drivers/CoreVideo/include/interface/LCDDriver.hpp b/drivers/CoreVideo/include/interface/LCDDriver.hpp index 852dd85721..8d72adcff4 100644 --- a/drivers/CoreVideo/include/interface/LCDDriver.hpp +++ b/drivers/CoreVideo/include/interface/LCDDriver.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_LCD_DRIVER_H_ -#define _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_LCD_DRIVER_H_ +#pragma once namespace leka::interface { @@ -22,5 +21,3 @@ class LCDDriver }; } // namespace leka::interface - -#endif // _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_LCD_DRIVER_H_ diff --git a/drivers/CoreVideo/include/interface/LTDC.hpp b/drivers/CoreVideo/include/interface/LTDC.hpp index 58aed3cbd1..a1fbd193b2 100644 --- a/drivers/CoreVideo/include/interface/LTDC.hpp +++ b/drivers/CoreVideo/include/interface/LTDC.hpp @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_LTDC_BASE_H_ -#define _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_LTDC_BASE_H_ +#pragma once namespace leka::interface { @@ -15,5 +14,3 @@ class LTDCBase }; } // namespace leka::interface - -#endif // _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_LTDC_BASE_H_ diff --git a/drivers/CoreVideo/include/interface/SDRAM.hpp b/drivers/CoreVideo/include/interface/SDRAM.hpp index 4eef7e9549..84ae46b5da 100644 --- a/drivers/CoreVideo/include/interface/SDRAM.hpp +++ b/drivers/CoreVideo/include/interface/SDRAM.hpp @@ -5,8 +5,7 @@ // * Original file: // * https://github.com/STMicroelectronics/STM32CubeF7/blob/master/Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_sdram.h -#ifndef _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_SDRAM_H_ -#define _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_SDRAM_H_ +#pragma once #include "stm32f7xx_hal.h" @@ -25,5 +24,3 @@ class SDRAM }; } // namespace leka::interface - -#endif // _LEKA_OS_DRIVER_CORE_VIDEO_INTERFACE_SDRAM_H_ diff --git a/drivers/CoreVideo/include/internal/corevideo_config.h b/drivers/CoreVideo/include/internal/corevideo_config.h index 8b0b7e5c7f..6315fa91aa 100644 --- a/drivers/CoreVideo/include/internal/corevideo_config.h +++ b/drivers/CoreVideo/include/internal/corevideo_config.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LCD_PROPERTIES_H_ -#define _LEKA_OS_LCD_PROPERTIES_H_ +#pragma once #include "CoreLCDDriverOTM8009A.hpp" @@ -83,5 +82,3 @@ namespace graphics { } // namespace graphics } // namespace leka - -#endif // _LEKA_OS_LCD_PROPERTIES_H_ diff --git a/drivers/CoreWifi/include/CoreWifi.h b/drivers/CoreWifi/include/CoreWifi.h index 82f00000cb..9681eced1d 100644 --- a/drivers/CoreWifi/include/CoreWifi.h +++ b/drivers/CoreWifi/include/CoreWifi.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_WIFI_H_ -#define _LEKA_OS_DRIVER_CORE_WIFI_H_ +#pragma once // ? LCOV_EXCL_START - Exclude from coverage report @@ -49,5 +48,3 @@ class CoreWifi : public WiFiInterface } // namespace leka // ? LCOV_EXCL_STOP - Exclude from coverage report - -#endif // _LEKA_OS_DRIVER_CORE_WIFI_H_ diff --git a/drivers/CoreWifi/include/internal/CoreESP8266.h b/drivers/CoreWifi/include/internal/CoreESP8266.h index 896bd0182c..81cd01ff63 100644 --- a/drivers/CoreWifi/include/internal/CoreESP8266.h +++ b/drivers/CoreWifi/include/internal/CoreESP8266.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_CORE_WIFI_ESP8266_H_ -#define _LEKA_OS_DRIVER_CORE_WIFI_ESP8266_H_ +#pragma once // ? LCOV_EXCL_START - Exclude from coverage report @@ -22,5 +21,3 @@ class CoreESP8266 : public ESP8266Interface } // namespace leka // ? LCOV_EXCL_STOP - Exclude from coverage report - -#endif // _LEKA_OS_DRIVER_CORE_WIFI_ESP8266_H_ diff --git a/drivers/FastLED/include/FastLED.h b/drivers/FastLED/include/FastLED.h index deb96609e0..f2221e9d33 100644 --- a/drivers/FastLED/include/FastLED.h +++ b/drivers/FastLED/include/FastLED.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap & FastLED (https://github.com/FastLED/FastLED) // SPDX-License-Identifier: MIT -#ifndef _LEKA_OS_LIB_LED_H_ -#define _LEKA_OS_LIB_LED_H_ +#pragma once #include #include @@ -491,7 +490,7 @@ class CFastLED } } #endif - //@} + //@} #endif /// @name Adding 3rd party library controllers @@ -721,7 +720,7 @@ class CFastLED { return addLeds(data, nLedsOrOffset, nLedsIfOffset); } - //@} + //@} #endif /// Set the global brightness scaling @@ -843,5 +842,3 @@ extern CFastLED FastLED; #endif // FASTLED_NAMESPACE_END - -#endif // _LEKA_OS_LIB_LED_H_ diff --git a/include/interface/drivers/Battery.h b/include/interface/drivers/Battery.h index 3ee4d2dceb..48667c274f 100644 --- a/include/interface/drivers/Battery.h +++ b/include/interface/drivers/Battery.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_INTERFACE_BATTERY_H_ -#define _LEKA_OS_DRIVER_INTERFACE_BATTERY_H_ +#pragma once #include @@ -25,5 +24,3 @@ class Battery }; } // namespace leka::interface - -#endif //_LEKA_OS_DRIVER_INTERFACE_BATTERY_H_ diff --git a/include/interface/drivers/BufferedSerial.h b/include/interface/drivers/BufferedSerial.h index 30846c6de3..afa1246dab 100644 --- a/include/interface/drivers/BufferedSerial.h +++ b/include/interface/drivers/BufferedSerial.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_INTERFACE_DRIVER_BUFFERED_SERIAL_H_ -#define _LEKA_OS_INTERFACE_DRIVER_BUFFERED_SERIAL_H_ +#pragma once #include #include @@ -21,5 +20,3 @@ class BufferedSerial }; } // namespace leka::interface - -#endif // _LEKA_OS_INTERFACE_DRIVER_BUFFERED_SERIAL_H_ diff --git a/include/interface/drivers/EventQueue.h b/include/interface/drivers/EventQueue.h index a3c2f54e14..e4ac079a0d 100644 --- a/include/interface/drivers/EventQueue.h +++ b/include/interface/drivers/EventQueue.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_INTERFACE_DRIVER_EVENT_QUEUE_H_ -#define _LEKA_OS_INTERFACE_DRIVER_EVENT_QUEUE_H_ +#pragma once #include @@ -20,5 +19,3 @@ class EventQueue }; } // namespace leka::interface - -#endif // _LEKA_OS_INTERFACE_DRIVER_EVENT_QUEUE_H_ diff --git a/include/interface/drivers/FirmwareUpdate.h b/include/interface/drivers/FirmwareUpdate.h index cf1f96db8b..f8f624416b 100644 --- a/include/interface/drivers/FirmwareUpdate.h +++ b/include/interface/drivers/FirmwareUpdate.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_INTERFACE_DRIVERS_FIRMWARE_UPDATE_H_ -#define _LEKA_OS_INTERFACE_DRIVERS_FIRMWARE_UPDATE_H_ +#pragma once #include "FirmwareVersion.h" @@ -18,5 +17,3 @@ class FirmwareUpdate }; } // namespace leka::interface - -#endif // _LEKA_OS_INTERFACE_DRIVERS_FIRMWARE_UPDATE_H_ diff --git a/include/interface/drivers/FirmwareVersion.h b/include/interface/drivers/FirmwareVersion.h index 914544c041..c6108fa451 100644 --- a/include/interface/drivers/FirmwareVersion.h +++ b/include/interface/drivers/FirmwareVersion.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVERS_FIRMWARE_VERSION_H_ -#define _LEKA_OS_DRIVERS_FIRMWARE_VERSION_H_ +#pragma once #include @@ -16,5 +15,3 @@ struct FirmwareVersion { }; } // namespace leka - -#endif // _LEKA_OS_DRIVERS_FIRMWARE_VERSION_H_ diff --git a/include/interface/drivers/FlashManager.h b/include/interface/drivers/FlashManager.h index b85fa03a2e..1909dc8640 100644 --- a/include/interface/drivers/FlashManager.h +++ b/include/interface/drivers/FlashManager.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_INTERFACE_FLASH_MANAGER_H_ -#define _LEKA_OS_DRIVER_INTERFACE_FLASH_MANAGER_H_ +#pragma once #include @@ -26,5 +25,3 @@ class FlashManager virtual void erase() = 0; }; } // namespace leka::interface - -#endif //_LEKA_OS_DRIVER_INTERFACE_FLASH_MANAGER_H_ diff --git a/include/interface/drivers/FlashMemory.h b/include/interface/drivers/FlashMemory.h index 70da10f94c..41a45cc7e7 100644 --- a/include/interface/drivers/FlashMemory.h +++ b/include/interface/drivers/FlashMemory.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_INTERFACE_FLASH_MEMORY_DRIVER_H_ -#define _LEKA_OS_DRIVER_INTERFACE_FLASH_MEMORY_DRIVER_H_ +#pragma once #include #include @@ -23,5 +22,3 @@ class FlashMemory virtual void erase() = 0; }; } // namespace leka::interface - -#endif //_LEKA_OS_DRIVER_INTERFACE_FLASH_MEMORY_DRIVER_H_ diff --git a/include/interface/drivers/IOExpander.h b/include/interface/drivers/IOExpander.h index ccf3d7b8d9..12d85bba38 100644 --- a/include/interface/drivers/IOExpander.h +++ b/include/interface/drivers/IOExpander.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_INTERFACE_DRIVER_IO_EXPANDER_H_ -#define _LEKA_OS_INTERFACE_DRIVER_IO_EXPANDER_H_ +#pragma once #include @@ -26,5 +25,3 @@ class IOExpander }; } // namespace leka::interface - -#endif // _LEKA_OS_INTERFACE_DRIVER_IO_EXPANDER_H_ diff --git a/include/interface/drivers/LED.h b/include/interface/drivers/LED.h index 3cba7d28ec..ecd2a12b14 100644 --- a/include/interface/drivers/LED.h +++ b/include/interface/drivers/LED.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_INTERFACE_DRIVER_LED_H_ -#define _LEKA_OS_INTERFACE_DRIVER_LED_H_ +#pragma once #include #include @@ -39,5 +38,3 @@ class LED }; } // namespace leka::interface - -#endif // _LEKA_OS_INTERFACE_DRIVER_LED_H_ diff --git a/include/interface/drivers/PwmOut.h b/include/interface/drivers/PwmOut.h index 8375cd4a00..d124463a09 100644 --- a/include/interface/drivers/PwmOut.h +++ b/include/interface/drivers/PwmOut.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_INTERFACE_DRIVER_PWMOUT_H_ -#define _LEKA_OS_INTERFACE_DRIVER_PWMOUT_H_ +#pragma once namespace leka::interface { @@ -17,5 +16,3 @@ class PwmOut }; } // namespace leka::interface - -#endif // _LEKA_OS_INTERFACE_DRIVER_PWMOUT_H_ diff --git a/include/interface/drivers/QSPI.h b/include/interface/drivers/QSPI.h index a4ea798da2..94eec404eb 100644 --- a/include/interface/drivers/QSPI.h +++ b/include/interface/drivers/QSPI.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVER_INTERFACE_QSPI_H_ -#define _LEKA_OS_DRIVER_INTERFACE_QSPI_H_ +#pragma once #include #include @@ -30,5 +29,3 @@ class QSPI }; } // namespace leka::interface - -#endif // _LEKA_OS_DRIVER_INTERFACE_QSPI_H_ diff --git a/include/interface/drivers/SPI.h b/include/interface/drivers/SPI.h index c084f4919a..11e6b8c3d1 100644 --- a/include/interface/drivers/SPI.h +++ b/include/interface/drivers/SPI.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_INTERFACE_DRIVER_SPI_H_ -#define _LEKA_OS_INTERFACE_DRIVER_SPI_H_ +#pragma once #include #include @@ -19,5 +18,3 @@ class SPI }; } // namespace leka::interface - -#endif // _LEKA_OS_INTERFACE_DRIVER_SPI_H_ diff --git a/include/interface/drivers/Ticker.h b/include/interface/drivers/Ticker.h index 96b7292ae4..1285e2f915 100644 --- a/include/interface/drivers/Ticker.h +++ b/include/interface/drivers/Ticker.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_INTERFACE_LIB_TICKER_H_ -#define _LEKA_OS_INTERFACE_LIB_TICKER_H_ +#pragma once #include #include @@ -24,5 +23,3 @@ class Ticker }; } // namespace leka::interface - -#endif // _LEKA_OS_INTERFACE_LIB_TICKER_H_ diff --git a/include/interface/drivers/Timeout.h b/include/interface/drivers/Timeout.h index 3077b844ea..e3b14b9e66 100644 --- a/include/interface/drivers/Timeout.h +++ b/include/interface/drivers/Timeout.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_INTERFACE_LIB_TIMEOUT_H_ -#define _LEKA_OS_INTERFACE_LIB_TIMEOUT_H_ +#pragma once #include #include @@ -24,5 +23,3 @@ class Timeout }; } // namespace leka::interface - -#endif // _LEKA_OS_INTERFACE_LIB_TIMEOUT_H_ diff --git a/include/interface/platform/File.h b/include/interface/platform/File.h index 12cdedf61f..e513fdae46 100644 --- a/include/interface/platform/File.h +++ b/include/interface/platform/File.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_INTERFACE_PLATFORM_FILE_H_ -#define _LEKA_OS_INTERFACE_PLATFORM_FILE_H_ +#pragma once #include #include @@ -39,5 +38,3 @@ struct File { }; } // namespace leka::interface - -#endif // _LEKA_OS_INTERFACE_PLATFORM_FILE_H_ diff --git a/libs/BLEKit/include/CoreGattServer.h b/libs/BLEKit/include/CoreGattServer.h index e0cad4da2a..90ef890026 100644 --- a/libs/BLEKit/include/CoreGattServer.h +++ b/libs/BLEKit/include/CoreGattServer.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_CORE_GATT_SERVER_H_ -#define _LEKA_OS_LIB_CORE_GATT_SERVER_H_ +#pragma once #include @@ -32,5 +31,3 @@ class CoreGattServer }; } // namespace leka - -#endif // _LEKA_OS_LIB_CORE_GATT_SERVER_H_ diff --git a/libs/ContainerKit/include/CircularQueue.h b/libs/ContainerKit/include/CircularQueue.h index 0845646741..e1ccc804df 100644 --- a/libs/ContainerKit/include/CircularQueue.h +++ b/libs/ContainerKit/include/CircularQueue.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap (based on work by Mbed-OS) // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_CIRCULAR_QUEUE_H_ -#define _LEKA_OS_LIB_CIRCULAR_QUEUE_H_ +#pragma once #include #include @@ -261,5 +260,3 @@ class CircularQueue }; } // namespace leka - -#endif // _LEKA_OS_LIB_CIRCULAR_QUEUE_H_ diff --git a/libs/CriticalSection/include/CriticalSection.h b/libs/CriticalSection/include/CriticalSection.h index 34c17a547c..a41381d870 100644 --- a/libs/CriticalSection/include/CriticalSection.h +++ b/libs/CriticalSection/include/CriticalSection.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_CRITICAL_SECTION_H_ -#define _LEKA_OS_LIB_CRITICAL_SECTION_H_ +#pragma once namespace leka { @@ -17,5 +16,3 @@ class CriticalSection }; } // namespace leka - -#endif // _LEKA_OS_LIB_CRITICAL_SECTION_H_ diff --git a/libs/FileSystemKit/include/FileSystemKit.h b/libs/FileSystemKit/include/FileSystemKit.h index 3cd5553e55..78a7575d0b 100644 --- a/libs/FileSystemKit/include/FileSystemKit.h +++ b/libs/FileSystemKit/include/FileSystemKit.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_FILE_SYSTEM_KIT_H_ -#define _LEKA_OS_LIB_FILE_SYSTEM_KIT_H_ +#pragma once #include #include @@ -47,5 +46,3 @@ class FileSystemKit }; } // namespace leka - -#endif // _LEKA_OS_LIB_FILE_SYSTEM_KIT_H_ diff --git a/libs/FirmwareKit/include/FirmwareKit.h b/libs/FirmwareKit/include/FirmwareKit.h index 492df2650f..b84fbb0441 100644 --- a/libs/FirmwareKit/include/FirmwareKit.h +++ b/libs/FirmwareKit/include/FirmwareKit.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_FIRMWARE_KIT_H_ -#define _LEKA_OS_LIB_FIRMWARE_KIT_H_ +#pragma once #include #include @@ -32,5 +31,3 @@ class FirmwareKit : public interface::FirmwareUpdate }; } // namespace leka - -#endif // _LEKA_OS_LIB_FIRMWARE_KIT_H_ diff --git a/libs/HardwareTest/LekaMotors/include/LekaMotors.h b/libs/HardwareTest/LekaMotors/include/LekaMotors.h index 6d24ae76f7..b245e2bb26 100644 --- a/libs/HardwareTest/LekaMotors/include/LekaMotors.h +++ b/libs/HardwareTest/LekaMotors/include/LekaMotors.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_MOTORS_H_ -#define _LEKA_OS_LIB_MOTORS_H_ +#pragma once // #include @@ -35,5 +34,3 @@ class Motors : TwoMotorsBase }; } // namespace leka - -#endif diff --git a/libs/HardwareTest/LekaMotors/include/TwoMotorsBase.h b/libs/HardwareTest/LekaMotors/include/TwoMotorsBase.h index d48082ccc4..4232d1aed1 100644 --- a/libs/HardwareTest/LekaMotors/include/TwoMotorsBase.h +++ b/libs/HardwareTest/LekaMotors/include/TwoMotorsBase.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_TWO_MOTORS_BASE_H_ -#define _LEKA_OS_LIB_TWO_MOTORS_BASE_H_ +#pragma once namespace leka { @@ -24,5 +23,3 @@ class TwoMotorsBase }; } // namespace leka - -#endif // _LEKA_OS_LIB_TWO_MOTORS_BASE_H_ diff --git a/libs/HardwareTest/LekaSD/include/LekaSD.h b/libs/HardwareTest/LekaSD/include/LekaSD.h index 73dce8ecf0..466fde74e0 100644 --- a/libs/HardwareTest/LekaSD/include/LekaSD.h +++ b/libs/HardwareTest/LekaSD/include/LekaSD.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_SD_H_ -#define _LEKA_OS_LIB_SD_H_ +#pragma once #include @@ -25,5 +24,3 @@ class LekaSD private: }; - -#endif diff --git a/libs/HelloWorld/include/HelloWorld.h b/libs/HelloWorld/include/HelloWorld.h index 9fd864fffa..7ce11e5139 100644 --- a/libs/HelloWorld/include/HelloWorld.h +++ b/libs/HelloWorld/include/HelloWorld.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_HELLOWORLD_H_ -#define _LEKA_OS_LIB_HELLOWORLD_H_ +#pragma once #include @@ -40,5 +39,3 @@ class HelloWorld }; // class HelloWorld } // namespace leka - -#endif // _LEKA_OS_LIB_HELLOWORLD_H_ diff --git a/libs/IOKit/include/DigitalIn.h b/libs/IOKit/include/DigitalIn.h index 547a4a4e87..3ee60b1456 100644 --- a/libs/IOKit/include/DigitalIn.h +++ b/libs/IOKit/include/DigitalIn.h @@ -5,8 +5,7 @@ // * Project based on work by @AGlass0fMilk // * https://github.com/AGlass0fMilk/ep-oc-mcu/blob/refine-io-drivers/devices/MCP23008/ -#ifndef _LEKA_OS_LIB_IO_KIT_DIGITAL_IN_H_ -#define _LEKA_OS_LIB_IO_KIT_DIGITAL_IN_H_ +#pragma once #include "drivers/interfaces/InterfaceDigitalIn.h" @@ -32,5 +31,3 @@ class DigitalIn : public mbed::interface::DigitalIn, private internal::IO @@ -47,5 +46,3 @@ class Bluetooth bool _paired = false; // Check simultaneous pairing is possible bool _new_message = true; }; - -#endif diff --git a/libs/InvestigationDay/LekaBluetooth/include/internal/BM64Converter.h b/libs/InvestigationDay/LekaBluetooth/include/internal/BM64Converter.h index ca45ddbf94..21a31bbbd5 100644 --- a/libs/InvestigationDay/LekaBluetooth/include/internal/BM64Converter.h +++ b/libs/InvestigationDay/LekaBluetooth/include/internal/BM64Converter.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_BM64_CONVERTER_H_ -#define _LEKA_OS_LIB_BM64_CONVERTER_H_ +#pragma once #include #include @@ -35,5 +34,3 @@ size_t getCommand(const uint8_t *cmd, const size_t cmd_length, uint8_t *buffer); // void convertResponse(); // Events in datasheet }; // namespace BM64 - -#endif diff --git a/libs/InvestigationDay/LekaRFID/include/LekaRFID.h b/libs/InvestigationDay/LekaRFID/include/LekaRFID.h index 5968d610e5..eca2b89dbd 100644 --- a/libs/InvestigationDay/LekaRFID/include/LekaRFID.h +++ b/libs/InvestigationDay/LekaRFID/include/LekaRFID.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_RFID_H_ -#define _LEKA_OS_LIB_RFID_H_ +#pragma once #include @@ -58,5 +57,3 @@ class RFID uint8_t _answer[64]; size_t _answer_length = 0; }; - -#endif diff --git a/libs/InvestigationDay/LekaScreen/include/LekaScreen.h b/libs/InvestigationDay/LekaScreen/include/LekaScreen.h index 1a8264f080..8dde4b9df0 100644 --- a/libs/InvestigationDay/LekaScreen/include/LekaScreen.h +++ b/libs/InvestigationDay/LekaScreen/include/LekaScreen.h @@ -1,14 +1,8 @@ -/** - * @file LekaScreen.h - * @author Yann Locatelli - * - * @version 0.1 - * @date 2020-09-26 - * - * @copyright Copyright (c) 2020 - */ -#ifndef _LEKA_OS_LIB_SCREEN_H_ -#define _LEKA_OS_LIB_SCREEN_H_ +// Leka - LekaOS +// Copyright 2020 APF France handicap +// SPDX-License-Identifier: Apache-2.0 + +#pragma once #include "PinNames.h" @@ -30,5 +24,3 @@ class Screen mbed::PwmOut _brightness; LekaLCD _lcd; }; - -#endif diff --git a/libs/InvestigationDay/LekaTouch/include/LekaTouch.h b/libs/InvestigationDay/LekaTouch/include/LekaTouch.h index c1420f7b67..c38062c507 100644 --- a/libs/InvestigationDay/LekaTouch/include/LekaTouch.h +++ b/libs/InvestigationDay/LekaTouch/include/LekaTouch.h @@ -1,14 +1,8 @@ -/** - * @file LekaTouch.h - * @author Yann Locatelli - * - * @version 0.1 - * @date 2020-09-20 - * - * @copyright Copyright (c) 2020 - */ -#ifndef _LEKA_OS_LIB_LEKATOUCH_H_ -#define _LEKA_OS_LIB_LEKATOUCH_H_ +// Leka - LekaOS +// Copyright 2020 APF France handicap +// SPDX-License-Identifier: Apache-2.0 + +#pragma once // #include "LekaTouchPins.h" @@ -61,5 +55,3 @@ class Touch const uint8_t _write_address_right = 0xC2; const uint8_t _read_address = 0x4E; }; - -#endif diff --git a/libs/InvestigationDay/LekaWifi/include/LekaWifi.h b/libs/InvestigationDay/LekaWifi/include/LekaWifi.h index de7be41253..16845e90d1 100644 --- a/libs/InvestigationDay/LekaWifi/include/LekaWifi.h +++ b/libs/InvestigationDay/LekaWifi/include/LekaWifi.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_WIFI_H_ -#define _LEKA_OS_LIB_WIFI_H_ +#pragma once #include @@ -35,5 +34,3 @@ class Wifi char const *_network_name = "HUAWEI P smart 2019"; char const *_network_password; }; - -#endif diff --git a/libs/LKAnimationKit/include/LKAnimationKit.h b/libs/LKAnimationKit/include/LKAnimationKit.h index 69a39a7a23..d29f488863 100644 --- a/libs/LKAnimationKit/include/LKAnimationKit.h +++ b/libs/LKAnimationKit/include/LKAnimationKit.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_LKANIMATIONKIT_H_ -#define _LEKA_OS_LIB_LKANIMATIONKIT_H_ +#pragma once #include "events/EventQueue.h" #include "rtos/Thread.h" @@ -29,5 +28,3 @@ class LKAnimationKit }; } // namespace leka - -#endif // _LEKA_OS_LIB_LKANIMATIONKIT_H_ diff --git a/libs/LKAnimationKit/include/internal/BouncingSquare.h b/libs/LKAnimationKit/include/internal/BouncingSquare.h index 365689efa6..8a3a072a32 100644 --- a/libs/LKAnimationKit/include/internal/BouncingSquare.h +++ b/libs/LKAnimationKit/include/internal/BouncingSquare.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_ANIMATION_BOUNCINGSQUARE_H_ -#define _LEKA_OS_LIB_ANIMATION_BOUNCINGSQUARE_H_ +#pragma once // ? LCOV_EXCL_START - Exclude from coverage report @@ -46,5 +45,3 @@ class BouncingSquare : public interface::CGAnimation } // namespace leka::animation // ? LCOV_EXCL_STOP - Exclude from coverage report - -#endif diff --git a/libs/LKAnimationKit/include/internal/CGAnimation.h b/libs/LKAnimationKit/include/internal/CGAnimation.h index 4a9b2b7a51..6d36ae8f91 100644 --- a/libs/LKAnimationKit/include/internal/CGAnimation.h +++ b/libs/LKAnimationKit/include/internal/CGAnimation.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_CGANIMATION_H_ -#define _LEKA_OS_LIB_CGANIMATION_H_ +#pragma once #include @@ -20,5 +19,3 @@ class CGAnimation }; } // namespace leka::interface - -#endif diff --git a/libs/LKCalculatorKit/include/LKCalculatorKit.h b/libs/LKCalculatorKit/include/LKCalculatorKit.h index f48a57e744..92cd492786 100644 --- a/libs/LKCalculatorKit/include/LKCalculatorKit.h +++ b/libs/LKCalculatorKit/include/LKCalculatorKit.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_LKCALCULATORKIT_H_ -#define _LEKA_OS_LIB_LKCALCULATORKIT_H_ +#pragma once namespace leka { @@ -20,5 +19,3 @@ class LKCalculatorKit }; } // namespace leka - -#endif // _LEKA_OS_LIB_LKCALCULATORKIT_H_ diff --git a/libs/LogKit/include/LogKit.h b/libs/LogKit/include/LogKit.h index 38476c6f76..fa72fd3a92 100644 --- a/libs/LogKit/include/LogKit.h +++ b/libs/LogKit/include/LogKit.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_LOG_KIT_H_ -#define _LEKA_OS_LIB_LOG_KIT_H_ +#pragma once #include #include @@ -301,5 +300,3 @@ namespace internal { #define log_ll(data, size) #endif // not defined (ENABLE_LOG_DEBUG) - -#endif // _LEKA_OS_LIB_LOG_KIT_H_ diff --git a/libs/PrettyPrinter/include/PrettyPrinter.h b/libs/PrettyPrinter/include/PrettyPrinter.h index db6f3f321d..88fbb5e5da 100644 --- a/libs/PrettyPrinter/include/PrettyPrinter.h +++ b/libs/PrettyPrinter/include/PrettyPrinter.h @@ -2,8 +2,7 @@ // Copyright 2018 ARM Limited // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_BLE_PRETTY_PRINTER_H_ -#define _LEKA_OS_LIB_BLE_PRETTY_PRINTER_H_ +#pragma once #include "ble/BLE.h" @@ -15,5 +14,3 @@ void printMacAddress(); auto phy_to_string(::ble::phy_t phy) -> const char *; } // namespace leka::ble - -#endif // _LEKA_OS_LIB_BLE_PRETTY_PRINTER_H_ diff --git a/libs/RobotKit/include/Logger.h b/libs/RobotKit/include/Logger.h index b21054d467..ad9926903f 100644 --- a/libs/RobotKit/include/Logger.h +++ b/libs/RobotKit/include/Logger.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_ROBOT_KIT_STATE_MACHINE_LOGGER_H_ -#define _LEKA_OS_LIB_ROBOT_KIT_STATE_MACHINE_LOGGER_H_ +#pragma once #include "LogKit.h" #include "boost/sml.hpp" @@ -43,5 +42,3 @@ struct logger { }; } // namespace leka::system::robot::sm - -#endif // _LEKA_OS_LIB_ROBOT_KIT_STATE_MACHINE_LOGGER_H_ diff --git a/libs/RobotKit/include/RobotController.h b/libs/RobotKit/include/RobotController.h index 74d2024693..71d7851780 100644 --- a/libs/RobotKit/include/RobotController.h +++ b/libs/RobotKit/include/RobotController.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_ROBOT_CONTROLLER_H_ -#define _LEKA_OS_ROBOT_CONTROLLER_H_ +#pragma once #include "StateMachine.h" #include "interface/RobotController.h" @@ -55,5 +54,3 @@ class RobotController : public interface::RobotController }; } // namespace leka - -#endif // _LEKA_OS_ROBOT_CONTROLLER_H_ diff --git a/libs/RobotKit/include/StateMachine.h b/libs/RobotKit/include/StateMachine.h index 2611c5035c..436560b086 100644 --- a/libs/RobotKit/include/StateMachine.h +++ b/libs/RobotKit/include/StateMachine.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_ROBOT_KIT_STATE_MACHINE_H_ -#define _LEKA_OS_LIB_ROBOT_KIT_STATE_MACHINE_H_ +#pragma once #include "boost/sml.hpp" #include "interface/RobotController.h" @@ -84,5 +83,3 @@ struct StateMachine { }; } // namespace leka::system::robot - -#endif // _LEKA_OS_LIB_ROBOT_KIT_STATE_MACHINE_H_ diff --git a/libs/RobotKit/include/interface/RobotController.h b/libs/RobotKit/include/interface/RobotController.h index c7614e69d4..136635cf40 100644 --- a/libs/RobotKit/include/interface/RobotController.h +++ b/libs/RobotKit/include/interface/RobotController.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_ROBOT_KIT_INTERFACE_ROBOT_CONTROLLER_H_ -#define _LEKA_OS_LIB_ROBOT_KIT_INTERFACE_ROBOT_CONTROLLER_H_ +#pragma once #include "boost/sml.hpp" @@ -21,5 +20,3 @@ class RobotController }; } // namespace leka::interface - -#endif // _LEKA_OS_LIB_ROBOT_KIT_INTERFACE_ROBOT_CONTROLLER_H_ diff --git a/libs/RobotKit/tests/mocks/RobotController.h b/libs/RobotKit/tests/mocks/RobotController.h index 5ce9b93d3a..bd74441427 100644 --- a/libs/RobotKit/tests/mocks/RobotController.h +++ b/libs/RobotKit/tests/mocks/RobotController.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_ROBOT_KIT_TESTS_MOCK_ROBOT_CONTROLLER_H_ -#define _LEKA_OS_LIB_ROBOT_KIT_TESTS_MOCK_ROBOT_CONTROLLER_H_ +#pragma once #include "gmock/gmock.h" #include "interface/RobotController.h" @@ -19,5 +18,3 @@ struct RobotController : public interface::RobotController { }; } // namespace leka::mock - -#endif // _LEKA_OS_LIB_ROBOT_KIT_TESTS_MOCK_ROBOT_CONTROLLER_H_ diff --git a/libs/Utils/include/MathUtils.h b/libs/Utils/include/MathUtils.h index dbb2f41d10..9b03a7f3a6 100644 --- a/libs/Utils/include/MathUtils.h +++ b/libs/Utils/include/MathUtils.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_UTILS_MATH_H_ -#define _LEKA_OS_LIB_UTILS_MATH_H_ +#pragma once #include #include @@ -31,5 +30,3 @@ auto computeLinearCoefficients(Point p1, Point p2) -> LinearCoefficients; auto checksum8(std::span data) -> uint8_t; } // namespace leka::utils::math - -#endif // _LEKA_OS_LIB_UTILS_MATH_H_ diff --git a/libs/Utils/include/MemoryUtils.h b/libs/Utils/include/MemoryUtils.h index bf5cf45d30..cf3c054f8f 100644 --- a/libs/Utils/include/MemoryUtils.h +++ b/libs/Utils/include/MemoryUtils.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_UTILS_MEMORY_H_ -#define _LEKA_OS_LIB_UTILS_MEMORY_H_ +#pragma once #include @@ -20,5 +19,3 @@ constexpr auto getHighByte(uint16_t value) noexcept -> uint8_t } } // namespace leka::utils::memory - -#endif // _LEKA_OS_LIB_UTILS_MEMORY_H_ diff --git a/libs/Utils/include/Utils.h b/libs/Utils/include/Utils.h index 235de18dd2..37c3ca4ffc 100644 --- a/libs/Utils/include/Utils.h +++ b/libs/Utils/include/Utils.h @@ -2,10 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LIB_UTILS_H_ -#define _LEKA_OS_LIB_UTILS_H_ +#pragma once #include "MathUtils.h" #include "MemoryUtils.h" - -#endif // _LEKA_OS_LIB_UTILS_H_ diff --git a/spikes/lk_file_reception/WebKit.h b/spikes/lk_file_reception/WebKit.h index 8d8f6d406a..ec331442b4 100644 --- a/spikes/lk_file_reception/WebKit.h +++ b/spikes/lk_file_reception/WebKit.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_WIFI_KIT_H_ -#define _LEKA_OS_WIFI_KIT_H_ +#pragma once #include @@ -47,5 +46,3 @@ class WebKit }; } // namespace leka - -#endif // _LEKA_OS_WIFI_KIT_H_ diff --git a/tests/functional/cert/emc_ble_bt_lcd_led_motors/LedUtils.h b/tests/functional/cert/emc_ble_bt_lcd_led_motors/LedUtils.h index 6f95c5b1e9..fd306e6583 100644 --- a/tests/functional/cert/emc_ble_bt_lcd_led_motors/LedUtils.h +++ b/tests/functional/cert/emc_ble_bt_lcd_led_motors/LedUtils.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_SPIKE_LED_UTILS_H_ -#define _LEKA_OS_SPIKE_LED_UTILS_H_ +#pragma once #include "PinNames.h" @@ -190,5 +189,3 @@ void led_thread() rtos::ThisThread::sleep_for(10ms); } } - -#endif // _LEKA_OS_SPIKE_LED_UTILS_H_ diff --git a/tests/functional/cert/emc_ble_bt_lcd_led_motors/WatchdogUtils.h b/tests/functional/cert/emc_ble_bt_lcd_led_motors/WatchdogUtils.h index 3302be0100..8aef40a9b5 100644 --- a/tests/functional/cert/emc_ble_bt_lcd_led_motors/WatchdogUtils.h +++ b/tests/functional/cert/emc_ble_bt_lcd_led_motors/WatchdogUtils.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_SPIKE_WATCHDOG_UTILS_H_ -#define _LEKA_OS_SPIKE_WATCHDOG_UTILS_H_ +#pragma once #include "mbed.h" @@ -17,5 +16,3 @@ void watchdog_thread() rtos::ThisThread::sleep_for(4000ms); } } - -#endif // _LEKA_OS_SPIKE_WATCHDOG_UTILS_H_ diff --git a/tests/functional/cert/emc_ble_led_motors/LedUtils.h b/tests/functional/cert/emc_ble_led_motors/LedUtils.h index 6f95c5b1e9..fd306e6583 100644 --- a/tests/functional/cert/emc_ble_led_motors/LedUtils.h +++ b/tests/functional/cert/emc_ble_led_motors/LedUtils.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_SPIKE_LED_UTILS_H_ -#define _LEKA_OS_SPIKE_LED_UTILS_H_ +#pragma once #include "PinNames.h" @@ -190,5 +189,3 @@ void led_thread() rtos::ThisThread::sleep_for(10ms); } } - -#endif // _LEKA_OS_SPIKE_LED_UTILS_H_ diff --git a/tests/functional/cert/emc_ble_led_motors/WatchdogUtils.h b/tests/functional/cert/emc_ble_led_motors/WatchdogUtils.h index bb5b254db5..7df4394123 100644 --- a/tests/functional/cert/emc_ble_led_motors/WatchdogUtils.h +++ b/tests/functional/cert/emc_ble_led_motors/WatchdogUtils.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_SPIKE_WATCHDOG_UTILS_H_ -#define _LEKA_OS_SPIKE_WATCHDOG_UTILS_H_ +#pragma once #include "mbed.h" @@ -15,5 +14,3 @@ void watchdog_thread() rtos::ThisThread::sleep_for(4000ms); } } - -#endif // _LEKA_OS_SPIKE_WATCHDOG_UTILS_H_ diff --git a/tests/functional/cert/emc_lcd_led_motors/LedUtils.h b/tests/functional/cert/emc_lcd_led_motors/LedUtils.h index 6f95c5b1e9..fd306e6583 100644 --- a/tests/functional/cert/emc_lcd_led_motors/LedUtils.h +++ b/tests/functional/cert/emc_lcd_led_motors/LedUtils.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_SPIKE_LED_UTILS_H_ -#define _LEKA_OS_SPIKE_LED_UTILS_H_ +#pragma once #include "PinNames.h" @@ -190,5 +189,3 @@ void led_thread() rtos::ThisThread::sleep_for(10ms); } } - -#endif // _LEKA_OS_SPIKE_LED_UTILS_H_ diff --git a/tests/functional/cert/emc_lcd_led_motors/WatchdogUtils.h b/tests/functional/cert/emc_lcd_led_motors/WatchdogUtils.h index bb5b254db5..7df4394123 100644 --- a/tests/functional/cert/emc_lcd_led_motors/WatchdogUtils.h +++ b/tests/functional/cert/emc_lcd_led_motors/WatchdogUtils.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_SPIKE_WATCHDOG_UTILS_H_ -#define _LEKA_OS_SPIKE_WATCHDOG_UTILS_H_ +#pragma once #include "mbed.h" @@ -15,5 +14,3 @@ void watchdog_thread() rtos::ThisThread::sleep_for(4000ms); } } - -#endif // _LEKA_OS_SPIKE_WATCHDOG_UTILS_H_ diff --git a/tests/functional/hardware/motors_test_reduction_and_wheels/BLEUtils.h b/tests/functional/hardware/motors_test_reduction_and_wheels/BLEUtils.h index 85dfd9b86a..0af21b41b7 100644 --- a/tests/functional/hardware/motors_test_reduction_and_wheels/BLEUtils.h +++ b/tests/functional/hardware/motors_test_reduction_and_wheels/BLEUtils.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_SPIKE_BLE_UTILS_H_ -#define _LEKA_OS_SPIKE_BLE_UTILS_H_ +#pragma once #include #include @@ -171,5 +170,3 @@ class MotorsBLEProgram : ble::Gap::EventHandler uint8_t _adv_buffer[ble::LEGACY_ADVERTISING_MAX_SIZE]; ble::AdvertisingDataBuilder _adv_data_builder; }; - -#endif diff --git a/tests/functional/hardware/motors_test_reduction_and_wheels/MotorsUtils.h b/tests/functional/hardware/motors_test_reduction_and_wheels/MotorsUtils.h index 65d4fe74b3..11c5c93d09 100644 --- a/tests/functional/hardware/motors_test_reduction_and_wheels/MotorsUtils.h +++ b/tests/functional/hardware/motors_test_reduction_and_wheels/MotorsUtils.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_SPIKE_MOTORS_UTILS_H_ -#define _LEKA_OS_SPIKE_MOTORS_UTILS_H_ +#pragma once #include "PinNames.h" @@ -133,5 +132,3 @@ void motor_thread() rtos::ThisThread::sleep_for(1s); } } - -#endif // _LEKA_OS_SPIKE_MOTORS_UTILS_H_ diff --git a/tests/functional/include/MotorsUtils.h b/tests/functional/include/MotorsUtils.h index 2dd7f7443e..384d570425 100644 --- a/tests/functional/include/MotorsUtils.h +++ b/tests/functional/include/MotorsUtils.h @@ -2,8 +2,7 @@ // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_SPIKE_MOTORS_UTILS_H_ -#define _LEKA_OS_SPIKE_MOTORS_UTILS_H_ +#pragma once #include @@ -45,5 +44,3 @@ void motor_thread(Motors *motors) rtos::ThisThread::sleep_for(5s); } } - -#endif // _LEKA_OS_SPIKE_MOTORS_UTILS_H_ diff --git a/tests/unit/mocks/mocks/leka/Battery.h b/tests/unit/mocks/mocks/leka/Battery.h index 131c722c3f..1e0f975866 100644 --- a/tests/unit/mocks/mocks/leka/Battery.h +++ b/tests/unit/mocks/mocks/leka/Battery.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_BATTERY_MOCK_H_ -#define _LEKA_OS_BATTERY_MOCK_H_ +#pragma once #include "gmock/gmock.h" #include "interface/drivers/Battery.h" @@ -22,5 +21,3 @@ class Battery : public interface::Battery }; } // namespace leka::mock - -#endif // _LEKA_OS_BATTERY_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CGAnimation.h b/tests/unit/mocks/mocks/leka/CGAnimation.h index b9ea6c7f18..974cf9b5cb 100644 --- a/tests/unit/mocks/mocks/leka/CGAnimation.h +++ b/tests/unit/mocks/mocks/leka/CGAnimation.h @@ -3,8 +3,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_ANIMATION_MOCK_H_ -#define _LEKA_OS_ANIMATION_MOCK_H_ +#pragma once #include "CGAnimation.h" #include "gmock/gmock.h" @@ -20,5 +19,3 @@ class CGAnimationMock : public interface::CGAnimation }; } // namespace leka::animation - -#endif // _LEKA_OS_ANIMATION_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreBufferedSerial.h b/tests/unit/mocks/mocks/leka/CoreBufferedSerial.h index 126ca730ec..53dcf12d2c 100644 --- a/tests/unit/mocks/mocks/leka/CoreBufferedSerial.h +++ b/tests/unit/mocks/mocks/leka/CoreBufferedSerial.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_BUFFERED_SERIAL_MOCK_H_ -#define _LEKA_OS_BUFFERED_SERIAL_MOCK_H_ +#pragma once #include "CoreBufferedSerial.h" #include "gmock/gmock.h" @@ -19,5 +18,3 @@ class CoreBufferedSerialMock : public interface::BufferedSerial }; } // namespace leka - -#endif // _LEKA_OS_BUFFERED_SERIAL_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreDMA2D.h b/tests/unit/mocks/mocks/leka/CoreDMA2D.h index 2cdf403a55..3fb17bd326 100644 --- a/tests/unit/mocks/mocks/leka/CoreDMA2D.h +++ b/tests/unit/mocks/mocks/leka/CoreDMA2D.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DMA2D_MOCK_H_ -#define _LEKA_OS_DMA2D_MOCK_H_ +#pragma once #include "gmock/gmock.h" #include "interface/DMA2D.hpp" @@ -24,5 +23,3 @@ class CoreDMA2DMock : public interface::DMA2DBase }; } // namespace leka - -#endif // _LEKA_OS_DMA2D_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreDSI.h b/tests/unit/mocks/mocks/leka/CoreDSI.h index 47849e3d46..5a37552f8d 100644 --- a/tests/unit/mocks/mocks/leka/CoreDSI.h +++ b/tests/unit/mocks/mocks/leka/CoreDSI.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DSI_MOCK_H_ -#define _LEKA_OS_DSI_MOCK_H_ +#pragma once #include "gmock/gmock.h" #include "interface/DSI.hpp" @@ -21,5 +20,3 @@ class CoreDSIMock : public interface::DSIBase }; } // namespace leka - -#endif // _LEKA_OS_DSI_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreFatFs.h b/tests/unit/mocks/mocks/leka/CoreFatFs.h index 0c3fef3287..e6ae87b5fc 100644 --- a/tests/unit/mocks/mocks/leka/CoreFatFs.h +++ b/tests/unit/mocks/mocks/leka/CoreFatFs.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_FATFS_MOCK_H_ -#define _LEKA_OS_FATFS_MOCK_H_ +#pragma once #include "CoreFatFsBase.h" #include "gmock/gmock.h" @@ -25,5 +24,3 @@ class CoreFatFsMock : public CoreFatFsBase }; } // namespace leka - -#endif // _LEKA_OS_FATFS_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreFont.h b/tests/unit/mocks/mocks/leka/CoreFont.h index d0227f6edc..d6b6a57d1d 100644 --- a/tests/unit/mocks/mocks/leka/CoreFont.h +++ b/tests/unit/mocks/mocks/leka/CoreFont.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_FONT_MOCK_H_ -#define _LEKA_OS_FONT_MOCK_H_ +#pragma once #include "gmock/gmock.h" #include "interface/Font.hpp" @@ -23,5 +22,3 @@ class CoreFontMock : public interface::Font }; } // namespace leka - -#endif // _LEKA_OS_FONT_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreGraphics.h b/tests/unit/mocks/mocks/leka/CoreGraphics.h index 8fc1a82fd9..230ec81e5f 100644 --- a/tests/unit/mocks/mocks/leka/CoreGraphics.h +++ b/tests/unit/mocks/mocks/leka/CoreGraphics.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_GRAPHICS_MOCK_H_ -#define _LEKA_OS_GRAPHICS_MOCK_H_ +#pragma once #include "gmock/gmock.h" #include "interface/Graphics.hpp" @@ -18,5 +17,3 @@ class CoreGraphicsMock : public interface::Graphics }; } // namespace leka - -#endif // _LEKA_OS_GRAPHICS_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreI2C.h b/tests/unit/mocks/mocks/leka/CoreI2C.h index 212ccd912d..e6205f0c1b 100644 --- a/tests/unit/mocks/mocks/leka/CoreI2C.h +++ b/tests/unit/mocks/mocks/leka/CoreI2C.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_I2C_MOCK_H_ -#define _LEKA_OS_I2C_MOCK_H_ +#pragma once #include "CoreI2C.h" #include "gmock/gmock.h" @@ -18,5 +17,3 @@ class CoreI2CMock : public interface::I2C }; } // namespace leka - -#endif // _LEKA_OS_I2C_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreJPEG.h b/tests/unit/mocks/mocks/leka/CoreJPEG.h index e12289b8c3..304fb2c0a5 100644 --- a/tests/unit/mocks/mocks/leka/CoreJPEG.h +++ b/tests/unit/mocks/mocks/leka/CoreJPEG.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_JPEG_MOCK_H_ -#define _LEKA_OS_JPEG_MOCK_H_ +#pragma once #include "gmock/gmock.h" #include "interface/JPEG.hpp" @@ -29,5 +28,3 @@ class CoreJPEGMock : public interface::JPEGBase }; } // namespace leka - -#endif // _LEKA_OS_JPEG_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreLCD.h b/tests/unit/mocks/mocks/leka/CoreLCD.h index 3a3da4ba22..8707805120 100644 --- a/tests/unit/mocks/mocks/leka/CoreLCD.h +++ b/tests/unit/mocks/mocks/leka/CoreLCD.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LCD_MOCK_H_ -#define _LEKA_OS_LCD_MOCK_H_ +#pragma once #include "gmock/gmock.h" #include "interface/LCD.hpp" @@ -20,5 +19,3 @@ class CoreLCDMock : public interface::LCD }; } // namespace leka - -#endif // _LEKA_OS_LCD_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreLCDDriver.h b/tests/unit/mocks/mocks/leka/CoreLCDDriver.h index a3333df33a..d066a8d757 100644 --- a/tests/unit/mocks/mocks/leka/CoreLCDDriver.h +++ b/tests/unit/mocks/mocks/leka/CoreLCDDriver.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LCD_DRIVER_MOCK_H_ -#define _LEKA_OS_LCD_DRIVER_MOCK_H_ +#pragma once #include "gmock/gmock.h" #include "interface/LCDDriver.hpp" @@ -21,5 +20,3 @@ class CoreLCDDriverMock : public interface::LCDDriver }; } // namespace leka - -#endif // _LEKA_OS_LCD_DRIVER_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreLL.h b/tests/unit/mocks/mocks/leka/CoreLL.h index 66b0897721..fd539be6eb 100644 --- a/tests/unit/mocks/mocks/leka/CoreLL.h +++ b/tests/unit/mocks/mocks/leka/CoreLL.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LL_MOCK_H_ -#define _LEKA_OS_LL_MOCK_H_ +#pragma once #include "gmock/gmock.h" @@ -16,5 +15,3 @@ class CoreLLMock : public CoreLL }; } // namespace leka - -#endif // _LEKA_OS_LL_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreLTDC.h b/tests/unit/mocks/mocks/leka/CoreLTDC.h index 9f9107fc3a..11e8289137 100644 --- a/tests/unit/mocks/mocks/leka/CoreLTDC.h +++ b/tests/unit/mocks/mocks/leka/CoreLTDC.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_LTDC_MOCK_H_ -#define _LEKA_OS_LTDC_MOCK_H_ +#pragma once #include "gmock/gmock.h" #include "interface/LTDC.hpp" @@ -17,5 +16,3 @@ class CoreLTDCMock : public interface::LTDCBase }; } // namespace leka - -#endif // _LEKA_OS_LTDC_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreSDRAM.h b/tests/unit/mocks/mocks/leka/CoreSDRAM.h index b42b840053..1abfa388bc 100644 --- a/tests/unit/mocks/mocks/leka/CoreSDRAM.h +++ b/tests/unit/mocks/mocks/leka/CoreSDRAM.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_SDRAM_MOCK_H_ -#define _LEKA_OS_SDRAM_MOCK_H_ +#pragma once #include "gmock/gmock.h" #include "interface/SDRAM.hpp" @@ -23,5 +22,3 @@ class CoreSDRAMMock : public interface::SDRAM }; } // namespace leka - -#endif // _LEKA_OS_SDRAM_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/CoreSTM32Hal.h b/tests/unit/mocks/mocks/leka/CoreSTM32Hal.h index c0f60a3a0c..962e2754e5 100644 --- a/tests/unit/mocks/mocks/leka/CoreSTM32Hal.h +++ b/tests/unit/mocks/mocks/leka/CoreSTM32Hal.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_STM32_HAL_MOCK_H_ -#define _LEKA_OS_STM32_HAL_MOCK_H_ +#pragma once #include "CoreSTM32HalBase.h" #include "gmock/gmock.h" @@ -96,5 +95,3 @@ class CoreSTM32HalMock : public CoreSTM32HalBase }; } // namespace leka - -#endif // _LEKA_OS_STM32_HAL_H_ diff --git a/tests/unit/mocks/mocks/leka/File.h b/tests/unit/mocks/mocks/leka/File.h index b6e75e751e..b98363b4d3 100644 --- a/tests/unit/mocks/mocks/leka/File.h +++ b/tests/unit/mocks/mocks/leka/File.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_PLATFORM_FILE_MOCK_H_ -#define _LEKA_OS_PLATFORM_FILE_MOCK_H_ +#pragma once #include @@ -35,5 +34,3 @@ class File : public interface::File }; } // namespace leka::mock - -#endif // _LEKA_OS_PLATFORM_FILE_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/FlashManager.h b/tests/unit/mocks/mocks/leka/FlashManager.h index da9a6b9b99..eb5700e922 100644 --- a/tests/unit/mocks/mocks/leka/FlashManager.h +++ b/tests/unit/mocks/mocks/leka/FlashManager.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVERS_FLASH_MANAGER_MOCK_H_ -#define _LEKA_OS_DRIVERS_FLASH_MANAGER_MOCK_H_ +#pragma once #include "gmock/gmock.h" #include "interface/drivers/FlashManager.h" @@ -26,5 +25,3 @@ class FlashManager : public interface::FlashManager }; } // namespace leka::mock - -#endif // _LEKA_OS_DRIVERS_FLASH_MANAGER_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/FlashMemory.h b/tests/unit/mocks/mocks/leka/FlashMemory.h index 34718f8d62..e4c8147085 100644 --- a/tests/unit/mocks/mocks/leka/FlashMemory.h +++ b/tests/unit/mocks/mocks/leka/FlashMemory.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVERS_FLASH_MEMORY_MOCK_H_ -#define _LEKA_OS_DRIVERS_FLASH_MEMORY_MOCK_H_ +#pragma once #include @@ -24,5 +23,3 @@ class FlashMemory : public interface::FlashMemory }; } // namespace leka::mock - -#endif // _LEKA_OS_DRIVERS_FLASH_MEMORY_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/IOExpander.h b/tests/unit/mocks/mocks/leka/IOExpander.h index 92543a2ed0..f8818c92e3 100644 --- a/tests/unit/mocks/mocks/leka/IOExpander.h +++ b/tests/unit/mocks/mocks/leka/IOExpander.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_MOCK_DRIVERS_IO_EXPANDER_H_ -#define _LEKA_OS_MOCK_DRIVERS_IO_EXPANDER_H_ +#pragma once #include "gmock/gmock.h" #include "interface/drivers/IOExpander.h" @@ -22,5 +21,3 @@ class IOExpander : public interface::IOExpander }; } // namespace leka::mock - -#endif // _LEKA_OS_MOCK_DRIVERS_IO_EXPANDER_H_ diff --git a/tests/unit/mocks/mocks/leka/PwmOut.h b/tests/unit/mocks/mocks/leka/PwmOut.h index 4993faa612..463e9f430a 100644 --- a/tests/unit/mocks/mocks/leka/PwmOut.h +++ b/tests/unit/mocks/mocks/leka/PwmOut.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVERS_PWMOUT_H_ -#define _LEKA_OS_DRIVERS_PWMOUT_H_ +#pragma once #include "gmock/gmock.h" #include "interface/drivers/PwmOut.h" @@ -18,5 +17,3 @@ class PwmOut : public interface::PwmOut }; } // namespace leka::mock - -#endif // _LEKA_OS_DRIVERS_PWMOUT_H_ diff --git a/tests/unit/mocks/mocks/leka/QSPI.h b/tests/unit/mocks/mocks/leka/QSPI.h index 91663c3ea5..190f4a061b 100644 --- a/tests/unit/mocks/mocks/leka/QSPI.h +++ b/tests/unit/mocks/mocks/leka/QSPI.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_DRIVERS_QSPI_H_ -#define _LEKA_OS_DRIVERS_QSPI_H_ +#pragma once #include @@ -26,5 +25,3 @@ class QSPI : public interface::QSPI }; } // namespace leka::mock - -#endif // _LEKA_OS_DRIVERS_QSPI_H_ diff --git a/tests/unit/mocks/mocks/leka/SPI.h b/tests/unit/mocks/mocks/leka/SPI.h index 1c6ec62007..a1af127434 100644 --- a/tests/unit/mocks/mocks/leka/SPI.h +++ b/tests/unit/mocks/mocks/leka/SPI.h @@ -2,8 +2,7 @@ // Copyright 2022 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_SPI_MOCK_H_ -#define _LEKA_OS_SPI_MOCK_H_ +#pragma once #include @@ -19,5 +18,3 @@ class SPI : public interface::SPI }; } // namespace leka::mock - -#endif // _LEKA_OS_SPI_MOCK_H_ diff --git a/tests/unit/mocks/mocks/leka/Ticker.h b/tests/unit/mocks/mocks/leka/Ticker.h index 66821e2298..aa8cf69ab5 100644 --- a/tests/unit/mocks/mocks/leka/Ticker.h +++ b/tests/unit/mocks/mocks/leka/Ticker.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_MOCK_DRIVERS_TICKER_H_ -#define _LEKA_OS_MOCK_DRIVERS_TICKER_H_ +#pragma once #include "gmock/gmock.h" #include "interface/drivers/Ticker.h" @@ -20,5 +19,3 @@ class Ticker : public interface::Ticker }; } // namespace leka::mock - -#endif // _LEKA_OS_MOCK_DRIVERS_TICKER_H_ diff --git a/tests/unit/mocks/mocks/leka/Timeout.h b/tests/unit/mocks/mocks/leka/Timeout.h index 571ab2c92b..6c705b8366 100644 --- a/tests/unit/mocks/mocks/leka/Timeout.h +++ b/tests/unit/mocks/mocks/leka/Timeout.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_MOCK_DRIVERS_TIMEOUT_H_ -#define _LEKA_OS_MOCK_DRIVERS_TIMEOUT_H_ +#pragma once #include "gmock/gmock.h" #include "interface/drivers/Timeout.h" @@ -20,5 +19,3 @@ class Timeout : public interface::Timeout }; } // namespace leka::mock - -#endif // _LEKA_OS_MOCK_DRIVERS_TIMEOUT_H_ diff --git a/tests/unit/mocks/mocks/mbed/DigitalIn.h b/tests/unit/mocks/mocks/mbed/DigitalIn.h index 5acedcba26..34ea8c4b5c 100644 --- a/tests/unit/mocks/mocks/mbed/DigitalIn.h +++ b/tests/unit/mocks/mocks/mbed/DigitalIn.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_MBED_MOCK_DIGITAL_IN_H_ -#define _LEKA_OS_MBED_MOCK_DIGITAL_IN_H_ +#pragma once #include "PinNames.h" @@ -22,5 +21,3 @@ class DigitalIn : public mbed::interface::DigitalIn }; } // namespace mbed::mock - -#endif // _LEKA_OS_MBED_MOCK_DIGITAL_IN_H_ diff --git a/tests/unit/mocks/mocks/mbed/DigitalOut.h b/tests/unit/mocks/mocks/mbed/DigitalOut.h index 77e0642e44..828aecd23b 100644 --- a/tests/unit/mocks/mocks/mbed/DigitalOut.h +++ b/tests/unit/mocks/mocks/mbed/DigitalOut.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_MBED_MOCK_DIGITAL_OUT_H_ -#define _LEKA_OS_MBED_MOCK_DIGITAL_OUT_H_ +#pragma once #include "PinNames.h" @@ -22,5 +21,3 @@ class DigitalOut : public mbed::interface::DigitalOut }; } // namespace mbed::mock - -#endif // _LEKA_OS_MBED_MOCK_DIGITAL_OUT_H_ diff --git a/tests/unit/mocks/mocks/mbed/FileHandle.h b/tests/unit/mocks/mocks/mbed/FileHandle.h index 70a77b476c..1b5f4db725 100644 --- a/tests/unit/mocks/mocks/mbed/FileHandle.h +++ b/tests/unit/mocks/mocks/mbed/FileHandle.h @@ -2,8 +2,7 @@ // Copyright 2021 APF France handicap // SPDX-License-Identifier: Apache-2.0 -#ifndef _LEKA_OS_MBED_MOCK_FILE_HANDLE_H_ -#define _LEKA_OS_MBED_MOCK_FILE_HANDLE_H_ +#pragma once #include "PinNames.h" @@ -23,5 +22,3 @@ class FileHandle : public mbed::FileHandle }; } // namespace mbed::mock - -#endif // _LEKA_OS_MBED_MOCK_FILE_HANDLE_H_