Change include guard prefix to STA_CORE

This commit is contained in:
Henrik Stickann
2023-01-19 23:35:15 +01:00
parent c4ef41ddf7
commit 7f2f4a4df9
38 changed files with 121 additions and 121 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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 <main.h>
#endif // STA_STM32_HAL_HPP
#endif // STA_CORE_STM32_HAL_HPP

View File

@@ -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

View File

@@ -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

View File

@@ -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 <sta/stm32/mcu/common.hpp>
#endif // STA_STM32_MCU_STM32F413xx_HPP
#endif // STA_CORE_STM32_MCU_STM32F413xx_HPP

View File

@@ -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

View File

@@ -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

View File

@@ -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