Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ (style): Replace header guards with #pragma once #506

Merged
merged 1 commit into from
Feb 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions drivers/CoreBattery/include/CoreBattery.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -53,5 +52,3 @@ class CoreBattery : public interface::Battery
};

} // namespace leka

#endif //_LEKA_OS_DRIVER_CORE_BATTERY_H_
5 changes: 1 addition & 4 deletions drivers/CoreBufferedSerial/include/CoreBufferedSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -25,5 +24,3 @@ class CoreBufferedSerial : public interface::BufferedSerial
};

} // namespace leka

#endif //_LEKA_OS_DRIVER_CORE_BUFFERED_SERIAL_H_
5 changes: 1 addition & 4 deletions drivers/CoreEventQueue/include/CoreEventQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -30,5 +29,3 @@ class CoreEventQueue : public interface::EventQueue
};

} // namespace leka

#endif //_LEKA_OS_DRIVER_CORE_EVENT_QUEUE_H_
5 changes: 1 addition & 4 deletions drivers/CoreFlashMemory/include/CoreFlashIS25LP016D.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cstdint>
#include <span>
Expand Down Expand Up @@ -49,5 +48,3 @@ namespace command {
// } // namespace status

} // namespace flash::is25lp016d

#endif //_LEKA_OS_DRIVER_CORE_FLASH_MEMORY_IS25LP016D_H_
5 changes: 1 addition & 4 deletions drivers/CoreFlashMemory/include/CoreFlashManagerIS25LP016D.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <chrono>

Expand Down Expand Up @@ -71,5 +70,3 @@ namespace status {
} // namespace status

} // namespace flash::is25lp016d

#endif //_LEKA_OS_DRIVER_CORE_FLASH_MEMORY_MANAGER_IS25LP016D_H_
5 changes: 1 addition & 4 deletions drivers/CoreFs/include/CoreFatFs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -29,5 +28,3 @@ class CoreFatFs : public CoreFatFsBase
};

} // namespace leka

#endif // _LEKA_OS_LIB_FATFS_H_
5 changes: 1 addition & 4 deletions drivers/CoreFs/include/CoreFatFsBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cstdint>

Expand All @@ -29,5 +28,3 @@ class CoreFatFsBase
};

} // namespace leka

#endif // _LEKA_OS_LIB_FATFS_BASE_H_
5 changes: 1 addition & 4 deletions drivers/CoreHTS/include/CoreHTS.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <array>
#include <tuple>
Expand Down Expand Up @@ -83,5 +82,3 @@ class CoreHTS : public interface::TemperatureSensor, public interface::HumidityS
std::array<uint8_t, 32> _buffer {0};
};
} // namespace leka

#endif //_LEKA_OS_DRIVER_LK_CORE_HTS221_DRIVER_H_
5 changes: 1 addition & 4 deletions drivers/CoreI2C/include/CoreI2C.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -35,5 +34,3 @@ class CoreI2C : public interface::I2C
};

} // namespace leka

#endif //_LEKA_OS_DRIVER_LK_CORE_I2C_H_
5 changes: 1 addition & 4 deletions drivers/CoreLED/include/CoreLED.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <algorithm>

Expand Down Expand Up @@ -138,5 +137,3 @@ class CoreLED : public interface::LED
};

} // namespace leka

#endif // _LEKA_OS_DRIVER_CORE_LED_H_
5 changes: 1 addition & 4 deletions drivers/CoreLL/include/CoreLL.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cstdint>

Expand All @@ -20,5 +19,3 @@ class CoreLL
};

} // namespace leka

#endif // _LEKA_OS_LL_H_
5 changes: 1 addition & 4 deletions drivers/CoreLightSensor/include/CoreLightSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -33,5 +32,3 @@ class CoreLightSensor
};

} // namespace leka

#endif //_LEKA_OS_DRIVER_LK_CORE_LIGHT_SENSOR_H_
5 changes: 1 addition & 4 deletions drivers/CoreMicrophone/include/CoreMicrophone.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -21,5 +20,3 @@ class CoreMicrophone
};

} // namespace leka

#endif //_LEKA_OS_DRIVER_LK_CORE_MICROPHONE_H_
5 changes: 1 addition & 4 deletions drivers/CoreMotor/include/CoreMotor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -32,5 +31,3 @@ class CoreMotor : public CoreMotorBase
};

} // namespace leka

#endif // _LEKA_OS_LIB_MOTOR_H_
5 changes: 1 addition & 4 deletions drivers/CoreMotor/include/CoreMotorBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -26,5 +25,3 @@ class CoreMotorBase
};

} // namespace leka

#endif // _LEKA_OS_LIB_MOTOR_BASE_H_
5 changes: 1 addition & 4 deletions drivers/CorePwm/include/CorePwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -24,5 +23,3 @@ class CorePwm : public interface::PwmOut
};

} // namespace leka

#endif //_LEKA_OS_DRIVER_LK_CORE_PWM_OUT_H_
5 changes: 1 addition & 4 deletions drivers/CoreQSPI/include/CoreQSPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <span>

Expand Down Expand Up @@ -34,5 +33,3 @@ class CoreQSPI : public interface::QSPI
};

} // namespace leka

#endif // _LEKA_OS_DRIVER_CORE_QSPI_H_
5 changes: 1 addition & 4 deletions drivers/CoreSPI/include/CoreSPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -23,5 +22,3 @@ class CoreSPI : public interface::SPI
};

} // namespace leka

#endif //_LEKA_OS_DRIVER_CORE_SPI_H_
5 changes: 1 addition & 4 deletions drivers/CoreSTM32Hal/include/CoreSTM32Hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -90,5 +89,3 @@ class CoreSTM32Hal : public CoreSTM32HalBase
};

} // namespace leka

#endif // _LEKA_OS_STM32_HAL_H_
5 changes: 1 addition & 4 deletions drivers/CoreSTM32Hal/include/CoreSTM32HalBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -92,5 +91,3 @@ class CoreSTM32HalBase
};

} // namespace leka

#endif // _LEKA_OS_STM32_HAL_BASE_H_
5 changes: 1 addition & 4 deletions drivers/CoreTicker/include/CoreTicker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -30,5 +29,3 @@ class CoreTicker : public interface::Ticker
};

} // namespace leka

#endif // _LEKA_OS_DRIVER_CORE_TICKER_H_
5 changes: 1 addition & 4 deletions drivers/CoreTimeout/include/CoreTimeout.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -30,5 +29,3 @@ class CoreTimeout : public interface::Timeout
};

} // namespace leka

#endif // _LEKA_OS_DRIVER_CORE_TIMEOUT_H_
5 changes: 1 addition & 4 deletions drivers/CoreVideo/include/CGColor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cstdint>

Expand Down Expand Up @@ -39,5 +38,3 @@ constexpr CGColor CGColor::cyan {0x00, 0xFF, 0xFF};
constexpr CGColor CGColor::magenta {0xFF, 0x00, 0xFF};

} // namespace leka

#endif
5 changes: 1 addition & 4 deletions drivers/CoreVideo/include/CGFont.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <array>
#include <cstdint>
Expand Down Expand Up @@ -2492,5 +2491,3 @@ constexpr auto CGFontTable = std::to_array<uint8_t>({
});

} // namespace leka

#endif // _LEKA_OS_DRIVER_CORE_VIDEO_FONT_TABLE_H_
5 changes: 1 addition & 4 deletions drivers/CoreVideo/include/CGPixel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cstdint>

Expand Down Expand Up @@ -35,5 +34,3 @@ struct CGPixel {
};

} // namespace leka

#endif
Loading