From 7f2f4a4df90f8c1deace8eba737f801b43506a96 Mon Sep 17 00:00:00 2001 From: Henrik Stickann <4376396-Mithradir@users.noreply.gitlab.com> Date: Thu, 19 Jan 2023 23:35:15 +0100 Subject: [PATCH] Change include guard prefix to STA_CORE --- include/sta/assert.hpp | 6 +++--- include/sta/atomic/mutex.hpp | 6 +++--- include/sta/atomic/signal.hpp | 6 +++--- include/sta/can/controller.hpp | 6 +++--- include/sta/can/filter.hpp | 6 +++--- include/sta/can/headers.hpp | 6 +++--- include/sta/can/id.hpp | 6 +++--- include/sta/can/iter.hpp | 6 +++--- include/sta/can/subscribable.hpp | 6 +++--- include/sta/can/subscribable.tpp | 12 ++++++------ include/sta/debug_serial.hpp | 6 +++--- include/sta/endian.hpp | 6 +++--- include/sta/enum_flags.hpp | 6 +++--- include/sta/enum_flags.tpp | 10 +++++----- include/sta/fifo_buffer.hpp | 6 +++--- include/sta/fifo_buffer.tpp | 10 +++++----- include/sta/gpio_pin.hpp | 6 +++--- include/sta/lang.hpp | 6 +++--- include/sta/mutex.hpp | 6 +++--- include/sta/printable_uart.hpp | 6 +++--- include/sta/printf.hpp | 6 +++--- include/sta/signal.hpp | 6 +++--- include/sta/spi/device.hpp | 6 +++--- include/sta/spi/interface.hpp | 6 +++--- include/sta/spi/settings.hpp | 6 +++--- include/sta/stm32/can.hpp | 6 +++--- include/sta/stm32/clocks.hpp | 6 +++--- include/sta/stm32/delay.hpp | 6 +++--- include/sta/stm32/gpio_pin.hpp | 6 +++--- include/sta/stm32/hal.hpp | 6 +++--- include/sta/stm32/init.hpp | 6 +++--- include/sta/stm32/mcu/STM32F411xE.hpp | 6 +++--- include/sta/stm32/mcu/STM32F413xx.hpp | 6 +++--- include/sta/stm32/mcu/common.hpp | 6 +++--- include/sta/stm32/spi.hpp | 6 +++--- include/sta/stm32/uart.hpp | 6 +++--- include/sta/time.hpp | 6 +++--- include/sta/uart.hpp | 6 +++--- 38 files changed, 121 insertions(+), 121 deletions(-) diff --git a/include/sta/assert.hpp b/include/sta/assert.hpp index a3aa2a8..adf08ac 100644 --- a/include/sta/assert.hpp +++ b/include/sta/assert.hpp @@ -2,8 +2,8 @@ * @file * @brief Assertion handling. */ -#ifndef STA_ASSERT_HPP -#define STA_ASSERT_HPP +#ifndef STA_CORE_ASSERT_HPP +#define STA_CORE_ASSERT_HPP /** * @defgroup staCore Core @@ -164,4 +164,4 @@ namespace sta #endif // !STA_ASSERT_ENABLE -#endif // STA_ASSERT_HPP +#endif // STA_CORE_ASSERT_HPP diff --git a/include/sta/atomic/mutex.hpp b/include/sta/atomic/mutex.hpp index a41b89f..2001152 100644 --- a/include/sta/atomic/mutex.hpp +++ b/include/sta/atomic/mutex.hpp @@ -4,8 +4,8 @@ * Configuration: * STA_ATOMIC_ENABLE: Enable module */ -#ifndef STA_ATOMIC_MUTEX_HPP -#define STA_ATOMIC_MUTEX_HPP +#ifndef STA_CORE_ATOMIC_MUTEX_HPP +#define STA_CORE_ATOMIC_MUTEX_HPP #include #ifdef STA_ATOMIC_ENABLE @@ -36,4 +36,4 @@ namespace sta #endif // STA_ATOMIC_ENABLE -#endif // STA_ATOMIC_MUTEX_HPP +#endif // STA_CORE_ATOMIC_MUTEX_HPP diff --git a/include/sta/atomic/signal.hpp b/include/sta/atomic/signal.hpp index b84f030..8d9df3b 100644 --- a/include/sta/atomic/signal.hpp +++ b/include/sta/atomic/signal.hpp @@ -4,8 +4,8 @@ * Configuration: * STA_ATOMIC_ENABLE: Enable module */ -#ifndef STA_ATOMIC_SIGNAL_HPP -#define STA_ATOMIC_SIGNAL_HPP +#ifndef STA_CORE_ATOMIC_SIGNAL_HPP +#define STA_CORE_ATOMIC_SIGNAL_HPP #include #ifdef STA_ATOMIC_ENABLE @@ -38,4 +38,4 @@ namespace sta #endif // STA_ATOMIC_ENABLE -#endif // STA_ATOMIC_SIGNAL_HPP +#endif // STA_CORE_ATOMIC_SIGNAL_HPP diff --git a/include/sta/can/controller.hpp b/include/sta/can/controller.hpp index 73aee6d..305eeff 100644 --- a/include/sta/can/controller.hpp +++ b/include/sta/can/controller.hpp @@ -2,8 +2,8 @@ * @file * @brief CAN controller driver interface. */ -#ifndef STA_CAN_CONTROLLER_HPP -#define STA_CAN_CONTROLLER_HPP +#ifndef STA_CORE_CAN_CONTROLLER_HPP +#define STA_CORE_CAN_CONTROLLER_HPP /** * @defgroup can CAN @@ -117,4 +117,4 @@ namespace sta } // namespace sta -#endif // STA_CAN_CONTROLLER_HPP +#endif // STA_CORE_CAN_CONTROLLER_HPP diff --git a/include/sta/can/filter.hpp b/include/sta/can/filter.hpp index a38c6d1..f8a98a8 100644 --- a/include/sta/can/filter.hpp +++ b/include/sta/can/filter.hpp @@ -2,8 +2,8 @@ * @file * @brief CAN message filter types. */ -#ifndef STA_CAN_FILTER_HPP -#define STA_CAN_FILTER_HPP +#ifndef STA_CORE_CAN_FILTER_HPP +#define STA_CORE_CAN_FILTER_HPP #include @@ -46,4 +46,4 @@ namespace sta } // namespace sta -#endif // STA_CAN_FILTER_HPP +#endif // STA_CORE_CAN_FILTER_HPP diff --git a/include/sta/can/headers.hpp b/include/sta/can/headers.hpp index a7667dc..99f0d81 100644 --- a/include/sta/can/headers.hpp +++ b/include/sta/can/headers.hpp @@ -2,8 +2,8 @@ * @file * @brief CAN frame headers. */ -#ifndef STA_CAN_HEADERS_HPP -#define STA_CAN_HEADERS_HPP +#ifndef STA_CORE_CAN_HEADERS_HPP +#define STA_CORE_CAN_HEADERS_HPP #include @@ -45,4 +45,4 @@ namespace sta } // namespace sta -#endif // STA_CAN_HEADERS_HPP +#endif // STA_CORE_CAN_HEADERS_HPP diff --git a/include/sta/can/id.hpp b/include/sta/can/id.hpp index f0202bd..0cd9f57 100644 --- a/include/sta/can/id.hpp +++ b/include/sta/can/id.hpp @@ -2,8 +2,8 @@ * @file * @brief CAN frame ID types. */ -#ifndef STA_CAN_ID_HPP -#define STA_CAN_ID_HPP +#ifndef STA_CORE_CAN_ID_HPP +#define STA_CORE_CAN_ID_HPP #include @@ -115,4 +115,4 @@ namespace sta #define CAN_EID_MAX UINT32_C(0x3FFFF) -#endif // STA_CAN_ID_HPP +#endif // STA_CORE_CAN_ID_HPP diff --git a/include/sta/can/iter.hpp b/include/sta/can/iter.hpp index fbd7722..5f2d8a3 100644 --- a/include/sta/can/iter.hpp +++ b/include/sta/can/iter.hpp @@ -1,5 +1,5 @@ -#ifndef STA_CAN_ITER_HPP -#define STA_CAN_ITER_HPP +#ifndef STA_CORE_CAN_ITER_HPP +#define STA_CORE_CAN_ITER_HPP #include @@ -60,4 +60,4 @@ namespace sta } // namespace sta -#endif // STA_CAN_ITER_HPP +#endif // STA_CORE_CAN_ITER_HPP diff --git a/include/sta/can/subscribable.hpp b/include/sta/can/subscribable.hpp index 87bdeef..0251cc6 100644 --- a/include/sta/can/subscribable.hpp +++ b/include/sta/can/subscribable.hpp @@ -2,8 +2,8 @@ * @file * @brief Subscription interface for CAN controller drivers. */ -#ifndef STA_CAN_SUBSCRIBABLE_HPP -#define STA_CAN_SUBSCRIBABLE_HPP +#ifndef STA_CORE_CAN_SUBSCRIBABLE_HPP +#define STA_CORE_CAN_SUBSCRIBABLE_HPP #include #include @@ -101,4 +101,4 @@ namespace sta #include -#endif // STA_CAN_SUBSCRIBABLE_HPP +#endif // STA_CORE_CAN_SUBSCRIBABLE_HPP diff --git a/include/sta/can/subscribable.tpp b/include/sta/can/subscribable.tpp index e50008c..d05fc9c 100644 --- a/include/sta/can/subscribable.tpp +++ b/include/sta/can/subscribable.tpp @@ -1,12 +1,12 @@ /** * @brief Implementation of template class CanController. */ -#ifndef STA_CAN_SUBSCRIBABLE_TPP -#define STA_CAN_SUBSCRIBABLE_TPP +#ifndef STA_CORE_CAN_SUBSCRIBABLE_TPP +#define STA_CORE_CAN_SUBSCRIBABLE_TPP -#ifndef STA_CAN_SUBSCRIBABLE_HPP -#error "Direct use of internal header. Use instead" -#endif // !STA_CAN_SUBSCRIBABLE_HPP +#ifndef STA_CORE_CAN_SUBSCRIBABLE_HPP +#error "Direct use of internal header. Use instead" +#endif // !STA_CORE_CAN_SUBSCRIBABLE_HPP #ifndef STA_STDLIB_DISABLE # include // fill_n @@ -117,4 +117,4 @@ namespace sta } // namespace sta -#endif // STA_CAN_SUBSCRIBABLE_TPP +#endif // STA_CORE_CAN_SUBSCRIBABLE_TPP diff --git a/include/sta/debug_serial.hpp b/include/sta/debug_serial.hpp index 6a2b964..68cb77d 100644 --- a/include/sta/debug_serial.hpp +++ b/include/sta/debug_serial.hpp @@ -13,8 +13,8 @@ * the default internal linkage of const namespace variables * will cause undefined reference errors otherwise. */ -#ifndef STA_DEBUG_SERIAL_HPP -#define STA_DEBUG_SERIAL_HPP +#ifndef STA_CORE_DEBUG_SERIAL_HPP +#define STA_CORE_DEBUG_SERIAL_HPP /** * @defgroup staCoreDebug Debug Serial @@ -105,4 +105,4 @@ namespace sta #endif // !STA_DEBUG_SERIAL_ENABLE -#endif // STA_DEBUG_SERIAL_HPP +#endif // STA_CORE_DEBUG_SERIAL_HPP diff --git a/include/sta/endian.hpp b/include/sta/endian.hpp index 41abaa2..7abf201 100644 --- a/include/sta/endian.hpp +++ b/include/sta/endian.hpp @@ -2,8 +2,8 @@ * @file * @brief Helper macros for managing endian handling. */ -#ifndef STA_ENDIAN_HPP -#define STA_ENDIAN_HPP +#ifndef STA_CORE_ENDIAN_HPP +#define STA_CORE_ENDIAN_HPP /** * @defgroup staCoreEndian Endian @@ -201,4 +201,4 @@ #endif // STA_MCU_BIG_ENDIAN -#endif // STA_ENDIAN_HPP +#endif // STA_CORE_ENDIAN_HPP diff --git a/include/sta/enum_flags.hpp b/include/sta/enum_flags.hpp index f848487..f7704e6 100644 --- a/include/sta/enum_flags.hpp +++ b/include/sta/enum_flags.hpp @@ -2,8 +2,8 @@ * @file * @brief Helper for using enum values as flags. */ -#ifndef STA_ENUM_FLAGS_HPP -#define STA_ENUM_FLAGS_HPP +#ifndef STA_CORE_ENUM_FLAGS_HPP +#define STA_CORE_ENUM_FLAGS_HPP #include @@ -195,4 +195,4 @@ namespace sta #include -#endif // STA_ENUM_FLAGS_HPP +#endif // STA_CORE_ENUM_FLAGS_HPP diff --git a/include/sta/enum_flags.tpp b/include/sta/enum_flags.tpp index 3321973..9251b05 100644 --- a/include/sta/enum_flags.tpp +++ b/include/sta/enum_flags.tpp @@ -1,12 +1,12 @@ /** * @brief Template class implementation for `EnumFlags`. */ -#ifndef STA_ENUM_FLAGS_TPP -#define STA_ENUM_FLAGS_TPP +#ifndef STA_CORE_ENUM_FLAGS_TPP +#define STA_CORE_ENUM_FLAGS_TPP -#ifndef STA_ENUM_FLAGS_HPP +#ifndef STA_CORE_ENUM_FLAGS_HPP # error "Direct use of internal header. Use instead" -#endif // !STA_ENUM_FLAGS_HPP +#endif // !STA_CORE_ENUM_FLAGS_HPP namespace sta @@ -113,4 +113,4 @@ namespace sta } // namespace sta -#endif // STA_ENUM_FLAGS_TPP +#endif // STA_CORE_ENUM_FLAGS_TPP diff --git a/include/sta/fifo_buffer.hpp b/include/sta/fifo_buffer.hpp index 2971712..646aff3 100644 --- a/include/sta/fifo_buffer.hpp +++ b/include/sta/fifo_buffer.hpp @@ -2,8 +2,8 @@ * @file * @brief FIFO buffer type. */ -#ifndef STA_FIFO_BUFFER_HPP -#define STA_FIFO_BUFFER_HPP +#ifndef STA_CORE_FIFO_BUFFER_HPP +#define STA_CORE_FIFO_BUFFER_HPP namespace sta @@ -115,4 +115,4 @@ namespace sta #include -#endif // STA_FIFO_BUFFER_HPP +#endif // STA_CORE_FIFO_BUFFER_HPP diff --git a/include/sta/fifo_buffer.tpp b/include/sta/fifo_buffer.tpp index b593d53..c02db2e 100644 --- a/include/sta/fifo_buffer.tpp +++ b/include/sta/fifo_buffer.tpp @@ -1,9 +1,9 @@ -#ifndef STA_FIFO_BUFFER_TPP -#define STA_FIFO_BUFFER_TPP +#ifndef STA_CORE_FIFO_BUFFER_TPP +#define STA_CORE_FIFO_BUFFER_TPP -#ifndef STA_FIFO_BUFFER_HPP +#ifndef STA_CORE_FIFO_BUFFER_HPP # error "Internal header. Include instead" -#endif // !STA_FIFO_BUFFER_HPP +#endif // !STA_CORE_FIFO_BUFFER_HPP #include @@ -100,4 +100,4 @@ namespace sta } // namespace sta -#endif // STA_FIFO_BUFFER_TPP +#endif // STA_CORE_FIFO_BUFFER_TPP diff --git a/include/sta/gpio_pin.hpp b/include/sta/gpio_pin.hpp index f91d27c..090c0f1 100644 --- a/include/sta/gpio_pin.hpp +++ b/include/sta/gpio_pin.hpp @@ -1,8 +1,8 @@ /** * @brief GPIO pin interface definitions. */ -#ifndef STA_GPIO_PIN_HPP -#define STA_GPIO_PIN_HPP +#ifndef STA_CORE_GPIO_PIN_HPP +#define STA_CORE_GPIO_PIN_HPP namespace sta @@ -32,4 +32,4 @@ namespace sta } // namespace sta -#endif // STA_GPIO_PIN_HPP +#endif // STA_CORE_GPIO_PIN_HPP diff --git a/include/sta/lang.hpp b/include/sta/lang.hpp index a09b2ba..6f83b4b 100644 --- a/include/sta/lang.hpp +++ b/include/sta/lang.hpp @@ -2,8 +2,8 @@ * @file * @brief Helper for useful compiler features. */ -#ifndef STA_LANG_HPP -#define STA_LANG_HPP +#ifndef STA_CORE_LANG_HPP +#define STA_CORE_LANG_HPP /** * @defgroup staCoreLang Lang @@ -113,4 +113,4 @@ /** @} */ -#endif // STA_LANG_HPP +#endif // STA_CORE_LANG_HPP diff --git a/include/sta/mutex.hpp b/include/sta/mutex.hpp index 5f1334a..e19f47e 100644 --- a/include/sta/mutex.hpp +++ b/include/sta/mutex.hpp @@ -1,8 +1,8 @@ /** * @brief Mutex interface definition. */ -#ifndef STA_MUTEX_HPP -#define STA_MUTEX_HPP +#ifndef STA_CORE_MUTEX_HPP +#define STA_CORE_MUTEX_HPP namespace sta @@ -27,4 +27,4 @@ namespace sta } // namespace sta -#endif // STA_MUTEX_HPP +#endif // STA_CORE_MUTEX_HPP diff --git a/include/sta/printable_uart.hpp b/include/sta/printable_uart.hpp index 5117dee..a5e2843 100644 --- a/include/sta/printable_uart.hpp +++ b/include/sta/printable_uart.hpp @@ -2,8 +2,8 @@ * @file * @brief Printable UART interface definition. */ -#ifndef STA_PRINTABLE_UART_HPP -#define STA_PRINTABLE_UART_HPP +#ifndef STA_CORE_PRINTABLE_UART_HPP +#define STA_CORE_PRINTABLE_UART_HPP #include @@ -201,4 +201,4 @@ namespace sta } // namespace sta -#endif // STA_PRINTABLE_UART_HPP +#endif // STA_CORE_PRINTABLE_UART_HPP diff --git a/include/sta/printf.hpp b/include/sta/printf.hpp index a48de80..3f02595 100644 --- a/include/sta/printf.hpp +++ b/include/sta/printf.hpp @@ -2,8 +2,8 @@ * @file * @brief Compatibility layer for different printf implementations. */ -#ifndef STA_PRINTF_HPP -#define STA_PRINTF_HPP +#ifndef STA_CORE_PRINTF_HPP +#define STA_CORE_PRINTF_HPP #ifdef DOXYGEN /** @@ -39,4 +39,4 @@ #endif // STA_PRINTF_USE_MPALAND -#endif // STA_PRINTF_HPP +#endif // STA_CORE_PRINTF_HPP diff --git a/include/sta/signal.hpp b/include/sta/signal.hpp index b38abf3..ffb0e1e 100644 --- a/include/sta/signal.hpp +++ b/include/sta/signal.hpp @@ -1,8 +1,8 @@ /** * @brief Signal interface definition. */ -#ifndef STA_SIGNAL_HPP -#define STA_SIGNAL_HPP +#ifndef STA_CORE_SIGNAL_HPP +#define STA_CORE_SIGNAL_HPP namespace sta @@ -37,4 +37,4 @@ namespace sta } // namespace sta -#endif // STA_SIGNAL_HPP +#endif // STA_CORE_SIGNAL_HPP diff --git a/include/sta/spi/device.hpp b/include/sta/spi/device.hpp index 727e880..80c0dce 100644 --- a/include/sta/spi/device.hpp +++ b/include/sta/spi/device.hpp @@ -2,8 +2,8 @@ * @file * @brief SPI device interface. */ -#ifndef STA_SPI_DEVICE_HPP -#define STA_SPI_DEVICE_HPP +#ifndef STA_CORE_SPI_DEVICE_HPP +#define STA_CORE_SPI_DEVICE_HPP #include #include @@ -112,4 +112,4 @@ namespace sta } // namespace sta -#endif // STA_SPI_DEVICE_HPP +#endif // STA_CORE_SPI_DEVICE_HPP diff --git a/include/sta/spi/interface.hpp b/include/sta/spi/interface.hpp index d139860..b830526 100644 --- a/include/sta/spi/interface.hpp +++ b/include/sta/spi/interface.hpp @@ -2,8 +2,8 @@ * @file * @brief SPI interface definition. */ -#ifndef STA_SPI_INTERFACE_HPP -#define STA_SPI_INTERFACE_HPP +#ifndef STA_CORE_SPI_INTERFACE_HPP +#define STA_CORE_SPI_INTERFACE_HPP #include #include @@ -100,4 +100,4 @@ namespace sta } // namespace sta -#endif // STA_SPI_INTERFACE_HPP +#endif // STA_CORE_SPI_INTERFACE_HPP diff --git a/include/sta/spi/settings.hpp b/include/sta/spi/settings.hpp index 172309f..bbd0e35 100644 --- a/include/sta/spi/settings.hpp +++ b/include/sta/spi/settings.hpp @@ -2,8 +2,8 @@ * @file * @brief SPI settings. */ -#ifndef STA_SPI_SETTINGS_HPP -#define STA_SPI_SETTINGS_HPP +#ifndef STA_CORE_SPI_SETTINGS_HPP +#define STA_CORE_SPI_SETTINGS_HPP /** * @defgroup staCoreSPI SPI @@ -111,4 +111,4 @@ namespace sta } // namespace sta -#endif // STA_SPI_SETTINGS_HPP +#endif // STA_CORE_SPI_SETTINGS_HPP diff --git a/include/sta/stm32/can.hpp b/include/sta/stm32/can.hpp index 537a5f8..f440ece 100644 --- a/include/sta/stm32/can.hpp +++ b/include/sta/stm32/can.hpp @@ -2,8 +2,8 @@ * @file * @brief Implementation of CanController using STM32 HAL. */ -#ifndef STA_STM32_CAN_HPP -#define STA_STM32_CAN_HPP +#ifndef STA_CORE_STM32_CAN_HPP +#define STA_CORE_STM32_CAN_HPP /** * @defgroup stm32CAN CAN @@ -126,4 +126,4 @@ namespace sta #endif // STA_STM32_CAN_ENABLE -#endif // STA_STM32_CAN_HPP +#endif // STA_CORE_STM32_CAN_HPP diff --git a/include/sta/stm32/clocks.hpp b/include/sta/stm32/clocks.hpp index 748f3c8..4828ae7 100644 --- a/include/sta/stm32/clocks.hpp +++ b/include/sta/stm32/clocks.hpp @@ -2,8 +2,8 @@ * @file * @brief Helper macros for STM32 clock queries. */ -#ifndef STA_STM32_CLOCKS_HPP -#define STA_STM32_CLOCKS_HPP +#ifndef STA_CORE_STM32_CLOCKS_HPP +#define STA_CORE_STM32_CLOCKS_HPP /** * @defgroup stm32 STM32 @@ -96,4 +96,4 @@ /** @} */ -#endif // STA_STM32_CLOCKS_HPP +#endif // STA_CORE_STM32_CLOCKS_HPP diff --git a/include/sta/stm32/delay.hpp b/include/sta/stm32/delay.hpp index fee499c..a9400dc 100644 --- a/include/sta/stm32/delay.hpp +++ b/include/sta/stm32/delay.hpp @@ -2,8 +2,8 @@ * @file * @brief Delay functions. */ -#ifndef STA_STM32_DELAY_HPP -#define STA_STM32_DELAY_HPP +#ifndef STA_CORE_STM32_DELAY_HPP +#define STA_CORE_STM32_DELAY_HPP /** * @defgroup stm32Delay Delay @@ -65,4 +65,4 @@ namespace sta #endif // STA_STM32_DELAY_ENABLE -#endif // STA_STM32_DELAY_HPP +#endif // STA_CORE_STM32_DELAY_HPP diff --git a/include/sta/stm32/gpio_pin.hpp b/include/sta/stm32/gpio_pin.hpp index f93cffc..8ed6910 100644 --- a/include/sta/stm32/gpio_pin.hpp +++ b/include/sta/stm32/gpio_pin.hpp @@ -2,8 +2,8 @@ * @file * @brief Wrapper for STM32 GPIO pins. */ -#ifndef STA_STM32_GPIO_PIN_HPP -#define STA_STM32_GPIO_PIN_HPP +#ifndef STA_CORE_STM32_GPIO_PIN_HPP +#define STA_CORE_STM32_GPIO_PIN_HPP /** * @defgroup stm32GPIO GPIO @@ -105,4 +105,4 @@ namespace sta #endif // STA_STM32_GPIO_ENABLE -#endif // STA_STM32_GPIO_PIN_HPP +#endif // STA_CORE_STM32_GPIO_PIN_HPP diff --git a/include/sta/stm32/hal.hpp b/include/sta/stm32/hal.hpp index 322b44e..fb3dedd 100644 --- a/include/sta/stm32/hal.hpp +++ b/include/sta/stm32/hal.hpp @@ -1,8 +1,8 @@ -#ifndef STA_STM32_HAL_HPP -#define STA_STM32_HAL_HPP +#ifndef STA_CORE_STM32_HAL_HPP +#define STA_CORE_STM32_HAL_HPP // Include STM32 HAL headers #include -#endif // STA_STM32_HAL_HPP +#endif // STA_CORE_STM32_HAL_HPP diff --git a/include/sta/stm32/init.hpp b/include/sta/stm32/init.hpp index 7b1f350..fcff1c1 100644 --- a/include/sta/stm32/init.hpp +++ b/include/sta/stm32/init.hpp @@ -2,8 +2,8 @@ * @file * @brief Global STM32 HAL initialization. */ -#ifndef STA_STM32_INIT_HPP -#define STA_STM32_INIT_HPP +#ifndef STA_CORE_STM32_INIT_HPP +#define STA_CORE_STM32_INIT_HPP namespace sta @@ -17,4 +17,4 @@ namespace sta } // namespace sta -#endif // STA_STM32_INIT_HPP +#endif // STA_CORE_STM32_INIT_HPP diff --git a/include/sta/stm32/mcu/STM32F411xE.hpp b/include/sta/stm32/mcu/STM32F411xE.hpp index 1d4060b..48e0ecb 100644 --- a/include/sta/stm32/mcu/STM32F411xE.hpp +++ b/include/sta/stm32/mcu/STM32F411xE.hpp @@ -1,8 +1,8 @@ /** * @brief Configuration for STM32F411xE family. */ -#ifndef STA_STM32_MCU_STM32F411xE_HPP -#define STA_STM32_MCU_STM32F411xE_HPP +#ifndef STA_CORE_STM32_MCU_STM32F411xE_HPP +#define STA_CORE_STM32_MCU_STM32F411xE_HPP #ifndef STM32F411xE @@ -74,4 +74,4 @@ #define STA_STM32_husart6_PCLK_IDX STA_STM32_USART_6_PCLK_IDX -#endif // STA_STM32_MCU_STM32F411xE_HPP +#endif // STA_CORE_STM32_MCU_STM32F411xE_HPP diff --git a/include/sta/stm32/mcu/STM32F413xx.hpp b/include/sta/stm32/mcu/STM32F413xx.hpp index dc02bbe..cd0e2a5 100644 --- a/include/sta/stm32/mcu/STM32F413xx.hpp +++ b/include/sta/stm32/mcu/STM32F413xx.hpp @@ -1,8 +1,8 @@ /** * @brief Configuration for STM32F413xx family. */ -#ifndef STA_STM32_MCU_STM32F413xx_HPP -#define STA_STM32_MCU_STM32F413xx_HPP +#ifndef STA_CORE_STM32_MCU_STM32F413xx_HPP +#define STA_CORE_STM32_MCU_STM32F413xx_HPP #ifndef STM32F413xx @@ -13,4 +13,4 @@ #include -#endif // STA_STM32_MCU_STM32F413xx_HPP +#endif // STA_CORE_STM32_MCU_STM32F413xx_HPP diff --git a/include/sta/stm32/mcu/common.hpp b/include/sta/stm32/mcu/common.hpp index afe4d55..f10bd2a 100644 --- a/include/sta/stm32/mcu/common.hpp +++ b/include/sta/stm32/mcu/common.hpp @@ -1,12 +1,12 @@ /** * @brief Common configuration for STM32 MCUs */ -#ifndef STA_STM32_MCU_COMMON_HPP -#define STA_STM32_MCU_COMMON_HPP +#ifndef STA_CORE_STM32_MCU_COMMON_HPP +#define STA_CORE_STM32_MCU_COMMON_HPP // TODO: Are all STM32 MCUs little endian? #define STA_MCU_LITTLE_ENDIAN -#endif // STA_STM32_MCU_COMMON_HPP +#endif // STA_CORE_STM32_MCU_COMMON_HPP diff --git a/include/sta/stm32/spi.hpp b/include/sta/stm32/spi.hpp index 4aa709f..dbb1a2a 100644 --- a/include/sta/stm32/spi.hpp +++ b/include/sta/stm32/spi.hpp @@ -2,8 +2,8 @@ * @file * @brief Implementations for SpiInterface and SpiDevice using STM32 HAL. */ -#ifndef STA_STM32_SPI_HPP -#define STA_STM32_SPI_HPP +#ifndef STA_CORE_STM32_SPI_HPP +#define STA_CORE_STM32_SPI_HPP /** * @defgroup stm32SPI SPI @@ -130,4 +130,4 @@ namespace sta #endif // STA_STM32_SPI_ENABLE -#endif // STA_STM32_SPI_HPP +#endif // STA_CORE_STM32_SPI_HPP diff --git a/include/sta/stm32/uart.hpp b/include/sta/stm32/uart.hpp index e98c30d..18fd891 100644 --- a/include/sta/stm32/uart.hpp +++ b/include/sta/stm32/uart.hpp @@ -2,8 +2,8 @@ * @file * @brief Implementation of UART using STM32 HAL. */ -#ifndef STA_STM32_UART_HPP -#define STA_STM32_UART_HPP +#ifndef STA_CORE_STM32_UART_HPP +#define STA_CORE_STM32_UART_HPP /** * @defgroup stm32UART UART @@ -63,4 +63,4 @@ namespace sta #endif // STA_STM32_UART_ENABLE -#endif // STA_STM32_UART_HPP +#endif // STA_CORE_STM32_UART_HPP diff --git a/include/sta/time.hpp b/include/sta/time.hpp index 2dd772a..da7ecd7 100644 --- a/include/sta/time.hpp +++ b/include/sta/time.hpp @@ -1,8 +1,8 @@ /** * @brief Signatures for time related functions. */ -#ifndef STA_TIME_HPP -#define STA_TIME_HPP +#ifndef STA_CORE_TIME_HPP +#define STA_CORE_TIME_HPP #include @@ -24,4 +24,4 @@ namespace sta } // namespace sta -#endif // STA_TIME_HPP +#endif // STA_CORE_TIME_HPP diff --git a/include/sta/uart.hpp b/include/sta/uart.hpp index e707c51..765216e 100644 --- a/include/sta/uart.hpp +++ b/include/sta/uart.hpp @@ -2,8 +2,8 @@ * @file * @brief UART interface definition. */ -#ifndef STA_INTF_UART_HPP -#define STA_INTF_UART_HPP +#ifndef STA_CORE_UART_HPP +#define STA_CORE_UART_HPP #include #include @@ -47,4 +47,4 @@ namespace sta } // namespace sta -#endif // STA_INTF_UART_HPP +#endif // STA_CORE_UART_HPP