mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-10 16:55:58 +00:00
Cleanup doxygen
This commit is contained in:
parent
a7466d6417
commit
4204c028a2
@ -1,6 +1,11 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* @brief Assertion handling.
|
* @brief Assertion handling.
|
||||||
|
*
|
||||||
|
* Configuration:
|
||||||
|
* * STA_ASSERT_FORCE: Ignore debug defines and always enable assertions
|
||||||
|
* * DEBUG: Enables assertions when defined
|
||||||
|
* * NDEBUG: Disables assertions when defined (overrides DEBUG)
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_ASSERT_HPP
|
#ifndef STA_CORE_ASSERT_HPP
|
||||||
#define STA_CORE_ASSERT_HPP
|
#define STA_CORE_ASSERT_HPP
|
||||||
@ -22,52 +27,24 @@
|
|||||||
* @brief Assertion handling.
|
* @brief Assertion handling.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef DOXYGEN
|
|
||||||
/**
|
|
||||||
* @def STA_ASSERT_ENABLE
|
|
||||||
* @brief Enable module.
|
|
||||||
*
|
|
||||||
* Automatically defined if DEBUG is defined.
|
|
||||||
* Automatically disabled if NDEBUG is defined.
|
|
||||||
*
|
|
||||||
* @ingroup staCoreBuildConfig
|
|
||||||
*/
|
|
||||||
# define STA_ASSERT_ENABLE
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def STA_ASSERT_DISABLE
|
|
||||||
* @brief Force disable module.
|
|
||||||
*
|
|
||||||
* Overrides STA_ASSERT_ENABLE option.
|
|
||||||
*
|
|
||||||
* @ingroup staCoreBuildConfig
|
|
||||||
*/
|
|
||||||
# define STA_ASSERT_DISABLE
|
|
||||||
#endif // DOXYGEN
|
|
||||||
|
|
||||||
|
|
||||||
#include <sta/config.hpp>
|
#include <sta/config.hpp>
|
||||||
|
|
||||||
#ifdef DEBUG
|
// Determine if module should be enabled
|
||||||
# ifndef STA_ASSERT_ENABLE
|
// Condition:
|
||||||
# define STA_ASSERT_ENABLE
|
// STA_ASSERT_FORCE is defined
|
||||||
# endif // !STA_ASSERT_ENABLE
|
// or
|
||||||
#endif // DEBUG
|
// DEBUG is defined but not NDEBUG
|
||||||
|
#ifdef STA_ASSERT_FORCE
|
||||||
#if defined(NDEBUG) || defined(STA_ASSERT_DISABLE)
|
# define STA_ASSERT_ENABLED
|
||||||
# ifdef STA_ASSERT_ENABLE
|
#else // !STA_ASSERT_FORCE
|
||||||
# undef STA_ASSERT_ENABLE
|
# if defined(DEBUG) && !defined(NDEBUG)
|
||||||
# endif // STA_ASSERT_ENABLE
|
# define STA_ASSERT_ENABLED
|
||||||
#endif // NDEBUG || STA_ASSERT_DISABLE
|
# endif // DEBUG && !NDEBUG
|
||||||
|
#endif // !STA_ASSERT_FORCE
|
||||||
|
|
||||||
|
|
||||||
// Show enabled module in doxygen output
|
#if defined(STA_ASSERT_ENABLED) || defined(DOXYGEN)
|
||||||
#ifdef DOXYGEN
|
|
||||||
# define STA_ASSERT_ENABLE
|
|
||||||
#endif // DOXYGEN
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef STA_ASSERT_ENABLE
|
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
@ -152,7 +129,7 @@ namespace sta
|
|||||||
|
|
||||||
# define STA_ASSERT_EXTRA(expr) expr;
|
# define STA_ASSERT_EXTRA(expr) expr;
|
||||||
|
|
||||||
#else // !STA_ASSERT_ENABLE
|
#else // !STA_ASSERT_ENABLED
|
||||||
|
|
||||||
# define STA_ASSERT(expr) ((void)0)
|
# define STA_ASSERT(expr) ((void)0)
|
||||||
# define STA_ASSERT_MSG(expr, msg) ((void)0)
|
# define STA_ASSERT_MSG(expr, msg) ((void)0)
|
||||||
@ -161,7 +138,7 @@ namespace sta
|
|||||||
|
|
||||||
# define STA_ASSERT_EXTRA(expr) ((void)0)
|
# define STA_ASSERT_EXTRA(expr) ((void)0)
|
||||||
|
|
||||||
#endif // !STA_ASSERT_ENABLE
|
#endif // !STA_ASSERT_ENABLED
|
||||||
|
|
||||||
|
|
||||||
#endif // STA_CORE_ASSERT_HPP
|
#endif // STA_CORE_ASSERT_HPP
|
||||||
|
@ -1,14 +1,19 @@
|
|||||||
/**
|
/**
|
||||||
|
* @file
|
||||||
* @brief Atomic mutex implementation.
|
* @brief Atomic mutex implementation.
|
||||||
*
|
*
|
||||||
* Configuration:
|
* Configuration:
|
||||||
* STA_ATOMIC_ENABLE: Enable module
|
* STA_STDLIB_HAS_ATOMIC: Enable module
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_ATOMIC_MUTEX_HPP
|
#ifndef STA_CORE_ATOMIC_MUTEX_HPP
|
||||||
#define STA_CORE_ATOMIC_MUTEX_HPP
|
#define STA_CORE_ATOMIC_MUTEX_HPP
|
||||||
|
|
||||||
#include <sta/config.hpp>
|
#include <sta/config.hpp>
|
||||||
#ifdef STA_ATOMIC_ENABLE
|
#ifdef STA_STDLIB_HAS_ATOMIC
|
||||||
|
# define STA_ATOMIC_ENABLED
|
||||||
|
#endif // STA_STDLIB_HAS_ATOMIC
|
||||||
|
|
||||||
|
#if defined(STA_ATOMIC_ENABLED) || defined(DOXYGEN)
|
||||||
|
|
||||||
#include <sta/mutex.hpp>
|
#include <sta/mutex.hpp>
|
||||||
|
|
||||||
@ -34,6 +39,6 @@ namespace sta
|
|||||||
} // namespace sta
|
} // namespace sta
|
||||||
|
|
||||||
|
|
||||||
#endif // STA_ATOMIC_ENABLE
|
#endif // STA_ATOMIC_ENABLED
|
||||||
|
|
||||||
#endif // STA_CORE_ATOMIC_MUTEX_HPP
|
#endif // STA_CORE_ATOMIC_MUTEX_HPP
|
||||||
|
@ -1,14 +1,19 @@
|
|||||||
/**
|
/**
|
||||||
|
* @file
|
||||||
* @brief Atomic signal implementation.
|
* @brief Atomic signal implementation.
|
||||||
*
|
*
|
||||||
* Configuration:
|
* Configuration:
|
||||||
* STA_ATOMIC_ENABLE: Enable module
|
* STA_STDLIB_HAS_ATOMIC: Enable module
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_ATOMIC_SIGNAL_HPP
|
#ifndef STA_CORE_ATOMIC_SIGNAL_HPP
|
||||||
#define STA_CORE_ATOMIC_SIGNAL_HPP
|
#define STA_CORE_ATOMIC_SIGNAL_HPP
|
||||||
|
|
||||||
#include <sta/config.hpp>
|
#include <sta/config.hpp>
|
||||||
#ifdef STA_ATOMIC_ENABLE
|
#ifdef STA_STDLIB_HAS_ATOMIC
|
||||||
|
# define STA_ATOMIC_ENABLED
|
||||||
|
#endif // STA_STDLIB_HAS_ATOMIC
|
||||||
|
|
||||||
|
#if defined(STA_ATOMIC_ENABLED) || defined(DOXYGEN)
|
||||||
|
|
||||||
#include <sta/signal.hpp>
|
#include <sta/signal.hpp>
|
||||||
|
|
||||||
@ -36,6 +41,6 @@ namespace sta
|
|||||||
} // namespace sta
|
} // namespace sta
|
||||||
|
|
||||||
|
|
||||||
#endif // STA_ATOMIC_ENABLE
|
#endif // STA_ATOMIC_ENABLED
|
||||||
|
|
||||||
#endif // STA_CORE_ATOMIC_SIGNAL_HPP
|
#endif // STA_CORE_ATOMIC_SIGNAL_HPP
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* @brief Custom iterators for CAN controllers.
|
||||||
|
*/
|
||||||
#ifndef STA_CORE_CAN_ITER_HPP
|
#ifndef STA_CORE_CAN_ITER_HPP
|
||||||
#define STA_CORE_CAN_ITER_HPP
|
#define STA_CORE_CAN_ITER_HPP
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
* @brief Debug output via UART.
|
* @brief Debug output via UART.
|
||||||
*
|
*
|
||||||
* Configuration:
|
* Configuration:
|
||||||
* STA_DEBUG_SERIAL_UART: UART interface for output
|
* * STA_DEBUG_SERIAL_UART: UART interface for output
|
||||||
* STA_DEBUG_SERIAL_FORCE: Ignore debug defines and always enable output
|
* * STA_DEBUG_SERIAL_FORCE: Ignore debug defines and always enable output
|
||||||
* DEBUG: Enables output when defined
|
* * DEBUG: Enables output when defined
|
||||||
* NDEBUG: Disables output when defined (overrides DEBUG)
|
* * NDEBUG: Disables output when defined (overrides DEBUG)
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_DEBUG_SERIAL_HPP
|
#ifndef STA_CORE_DEBUG_SERIAL_HPP
|
||||||
#define STA_CORE_DEBUG_SERIAL_HPP
|
#define STA_CORE_DEBUG_SERIAL_HPP
|
||||||
@ -17,28 +17,6 @@
|
|||||||
* @brief Debug serial output.
|
* @brief Debug serial output.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef DOXYGEN
|
|
||||||
/**
|
|
||||||
* @def STA_DEBUG_SERIAL_UART
|
|
||||||
* @brief UART interface for debug output.
|
|
||||||
*
|
|
||||||
* @ingroup staCoreBuildConfig
|
|
||||||
*/
|
|
||||||
# define STA_DEBUG_SERIAL_UART
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def STA_DEBUG_SERIAL_FORCE
|
|
||||||
* @brief Force enable module.
|
|
||||||
*
|
|
||||||
* Enables debug output even if NDEBUG is defined
|
|
||||||
* or DEBUG is not defined.
|
|
||||||
*
|
|
||||||
* @ingroup staCoreBuildConfig
|
|
||||||
*/
|
|
||||||
# define STA_DEBUG_SERIAL_FORCE
|
|
||||||
#endif // DOXYGEN
|
|
||||||
|
|
||||||
|
|
||||||
#include <sta/config.hpp>
|
#include <sta/config.hpp>
|
||||||
|
|
||||||
// Determine if module should be enabled
|
// Determine if module should be enabled
|
||||||
@ -57,14 +35,7 @@
|
|||||||
# endif // !STA_DEBUG_SERIAL_FORCE
|
# endif // !STA_DEBUG_SERIAL_FORCE
|
||||||
#endif // STA_DEBUG_SERIAL_UART
|
#endif // STA_DEBUG_SERIAL_UART
|
||||||
|
|
||||||
|
#if defined(STA_DEBUG_SERIAL_ENABLED) || defined(DOXYGEN)
|
||||||
// Show enabled module in doxygen output
|
|
||||||
#ifdef DOXYGEN
|
|
||||||
# define STA_DEBUG_SERIAL_ENABLED
|
|
||||||
#endif // DOXYGEN
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef STA_DEBUG_SERIAL_ENABLED
|
|
||||||
|
|
||||||
#include <sta/printable_uart.hpp>
|
#include <sta/printable_uart.hpp>
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
|
* @file
|
||||||
* @brief GPIO pin interface definitions.
|
* @brief GPIO pin interface definitions.
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_GPIO_PIN_HPP
|
#ifndef STA_CORE_GPIO_PIN_HPP
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
|
* @file
|
||||||
* @brief Mutex interface definition.
|
* @brief Mutex interface definition.
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_MUTEX_HPP
|
#ifndef STA_CORE_MUTEX_HPP
|
||||||
|
@ -1,29 +1,14 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* @brief Compatibility layer for different printf implementations.
|
* @brief Compatibility layer for different printf implementations.
|
||||||
|
*
|
||||||
|
* Configuration:
|
||||||
|
* * STA_PRINTF_USE_STDLIB: Use printf implementation from standard library
|
||||||
|
* * STA_PRINTF_USE_MPALAND: Use printf implementation from Marco Paland
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_PRINTF_HPP
|
#ifndef STA_CORE_PRINTF_HPP
|
||||||
#define STA_CORE_PRINTF_HPP
|
#define STA_CORE_PRINTF_HPP
|
||||||
|
|
||||||
#ifdef DOXYGEN
|
|
||||||
/**
|
|
||||||
* @def STA_PRINTF_USE_STDLIB
|
|
||||||
* @brief Use printf implementation from STD library.
|
|
||||||
*
|
|
||||||
* @ingroup staCoreBuildConfig
|
|
||||||
*/
|
|
||||||
# define STA_PRINTF_USE_STDLIB
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def STA_PRINTF_USE_MPALAND
|
|
||||||
* @brief Use printf implementation from Marco Paland.
|
|
||||||
*
|
|
||||||
* @ingroup staCoreBuildConfig
|
|
||||||
*/
|
|
||||||
# define STA_PRINTF_USE_MPALAND
|
|
||||||
#endif // DOXYGEN
|
|
||||||
|
|
||||||
|
|
||||||
#include <sta/config.hpp>
|
#include <sta/config.hpp>
|
||||||
|
|
||||||
#if !defined(STA_PRINTF_USE_STDLIB) && !defined(STA_PRINTF_USE_MPALAND)
|
#if !defined(STA_PRINTF_USE_STDLIB) && !defined(STA_PRINTF_USE_MPALAND)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
|
* @file
|
||||||
* @brief Signal interface definition.
|
* @brief Signal interface definition.
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_SIGNAL_HPP
|
#ifndef STA_CORE_SIGNAL_HPP
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* @brief Implementation of CanController using STM32 HAL.
|
* @brief Implementation of CanController using STM32 HAL.
|
||||||
|
*
|
||||||
|
* Configuration:
|
||||||
|
* * STA_STM32_CAN_GLOBAL: Create global CanBus object using this CAN instance
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_STM32_CAN_HPP
|
#ifndef STA_CORE_STM32_CAN_HPP
|
||||||
#define STA_CORE_STM32_CAN_HPP
|
#define STA_CORE_STM32_CAN_HPP
|
||||||
@ -13,18 +16,6 @@
|
|||||||
* Check @ref stm32BuildConfig for configuration options.
|
* Check @ref stm32BuildConfig for configuration options.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef DOXYGEN
|
|
||||||
/**
|
|
||||||
* @def STA_STM32_CAN_GLOBAL
|
|
||||||
* @brief Create global CanBus object using this CAN instance.
|
|
||||||
*
|
|
||||||
* @ingroup stm32BuildConfig
|
|
||||||
*/
|
|
||||||
# define STA_STM32_CAN_GLOBAL
|
|
||||||
#endif // DOXYGEN
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Only enable module on STM32 platform w/ HAL CAN module enabled
|
// Only enable module on STM32 platform w/ HAL CAN module enabled
|
||||||
#include <sta/config.hpp>
|
#include <sta/config.hpp>
|
||||||
#ifdef STA_PLATFORM_STM32
|
#ifdef STA_PLATFORM_STM32
|
||||||
@ -35,7 +26,7 @@
|
|||||||
#endif // STA_PLATFORM_STM32
|
#endif // STA_PLATFORM_STM32
|
||||||
|
|
||||||
|
|
||||||
#ifdef STA_STM32_CAN_ENABLED
|
#if defined(STA_STM32_CAN_ENABLED) || defined(DOXYGEN)
|
||||||
|
|
||||||
#include <sta/can/controller.hpp>
|
#include <sta/can/controller.hpp>
|
||||||
|
|
||||||
@ -104,7 +95,7 @@ namespace sta
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef STA_STM32_CAN_GLOBAL
|
#if defined(STA_STM32_CAN_GLOBAL) || DOXYGEN
|
||||||
/**
|
/**
|
||||||
* @brief Global CAN instance.
|
* @brief Global CAN instance.
|
||||||
*
|
*
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
// Only enable module on STM32 platform
|
// Only enable module on STM32 platform
|
||||||
#include <sta/config.hpp>
|
#include <sta/config.hpp>
|
||||||
#ifdef STA_PLATFORM_STM32
|
#if defined(STA_PLATFORM_STM32) || defined(DOXYGEN)
|
||||||
|
|
||||||
#include <sta/stm32/hal.hpp>
|
#include <sta/stm32/hal.hpp>
|
||||||
|
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* @brief Delay functions.
|
* @brief Delay functions.
|
||||||
|
*
|
||||||
|
* Configuration:
|
||||||
|
* * STA_STM32_DELAY_US_TIM: 1 MHz TIM instance used by sta::delayUs
|
||||||
|
*
|
||||||
|
* NOTE: TIM time base must be started before use of sta::delayUs by calling sta::initHAL.
|
||||||
|
* When using startup system task this is handled automatically.
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_STM32_DELAY_HPP
|
#ifndef STA_CORE_STM32_DELAY_HPP
|
||||||
#define STA_CORE_STM32_DELAY_HPP
|
#define STA_CORE_STM32_DELAY_HPP
|
||||||
@ -11,23 +17,9 @@
|
|||||||
* @brief STM32 Delay module.
|
* @brief STM32 Delay module.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef DOXYGEN
|
|
||||||
/**
|
|
||||||
* @def STA_STM32_DELAY_US_TIM
|
|
||||||
* @brief 1 MHz TIM instance used by sta::delayUs.
|
|
||||||
*
|
|
||||||
* NOTE: TIM time base must be started before use of sta::delayUs by calling sta::initHAL.
|
|
||||||
* When using startup system task this is handled automatically.
|
|
||||||
*
|
|
||||||
* @ingroup stm32BuildConfig
|
|
||||||
*/
|
|
||||||
# define STA_STM32_DELAY_US_TIM
|
|
||||||
#endif // DOXYGEN
|
|
||||||
|
|
||||||
|
|
||||||
// Only enable module on STM32 platform
|
// Only enable module on STM32 platform
|
||||||
#include <sta/config.hpp>
|
#include <sta/config.hpp>
|
||||||
#ifdef STA_PLATFORM_STM32
|
#if defined(STA_PLATFORM_STM32) || defined(DOXYGEN)
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
@ -43,7 +35,7 @@ namespace sta
|
|||||||
*/
|
*/
|
||||||
void delayMs(uint32_t ms);
|
void delayMs(uint32_t ms);
|
||||||
|
|
||||||
#ifdef STA_STM32_DELAY_US_TIM
|
#if defined(STA_STM32_DELAY_US_TIM) || defined(DOXYGEN)
|
||||||
/**
|
/**
|
||||||
* @brief Microsecond delay.
|
* @brief Microsecond delay.
|
||||||
*
|
*
|
||||||
|
@ -11,17 +11,6 @@
|
|||||||
* @brief STM32 GPIO module.
|
* @brief STM32 GPIO module.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef DOXYGEN
|
|
||||||
/**
|
|
||||||
* @def STA_STM32_GPIO_ENABLE
|
|
||||||
* @brief Enable module.
|
|
||||||
*
|
|
||||||
* @ingroup stm32BuildConfig
|
|
||||||
*/
|
|
||||||
# define STA_STM32_GPIO_ENABLE
|
|
||||||
#endif // DOXYGEN
|
|
||||||
|
|
||||||
|
|
||||||
// Only enable module on STM32 platform w/ HAL GPIO module enabled
|
// Only enable module on STM32 platform w/ HAL GPIO module enabled
|
||||||
#include <sta/config.hpp>
|
#include <sta/config.hpp>
|
||||||
#ifdef STA_PLATFORM_STM32
|
#ifdef STA_PLATFORM_STM32
|
||||||
@ -32,7 +21,7 @@
|
|||||||
#endif // STA_PLATFORM_STM32
|
#endif // STA_PLATFORM_STM32
|
||||||
|
|
||||||
|
|
||||||
#ifdef STA_STM32_GPIO_ENABLED
|
#if defined(STA_STM32_GPIO_ENABLED) || defined(DOXYGEN)
|
||||||
|
|
||||||
#include <sta/gpio_pin.hpp>
|
#include <sta/gpio_pin.hpp>
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* @brief Generic header for including the STM32 HAL headers.
|
||||||
|
*/
|
||||||
#ifndef STA_CORE_STM32_HAL_HPP
|
#ifndef STA_CORE_STM32_HAL_HPP
|
||||||
#define STA_CORE_STM32_HAL_HPP
|
#define STA_CORE_STM32_HAL_HPP
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
|
* @file
|
||||||
* @brief Configuration for STM32F411xE family.
|
* @brief Configuration for STM32F411xE family.
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_STM32_MCU_STM32F411xE_HPP
|
#ifndef STA_CORE_STM32_MCU_STM32F411xE_HPP
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
|
* @file
|
||||||
* @brief Configuration for STM32F413xx family.
|
* @brief Configuration for STM32F413xx family.
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_STM32_MCU_STM32F413xx_HPP
|
#ifndef STA_CORE_STM32_MCU_STM32F413xx_HPP
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
|
* @file
|
||||||
* @brief Common configuration for STM32 MCUs
|
* @brief Common configuration for STM32 MCUs
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_STM32_MCU_COMMON_HPP
|
#ifndef STA_CORE_STM32_MCU_COMMON_HPP
|
||||||
|
@ -24,8 +24,7 @@
|
|||||||
# endif // HAL_SPI_MODULE_ENABLED
|
# endif // HAL_SPI_MODULE_ENABLED
|
||||||
#endif // STA_PLATFORM_STM32
|
#endif // STA_PLATFORM_STM32
|
||||||
|
|
||||||
|
#if defined(STA_STM32_SPI_ENABLED) || defined(DOXYGEN)
|
||||||
#ifdef STA_STM32_SPI_ENABLED
|
|
||||||
|
|
||||||
#include <sta/spi/device.hpp>
|
#include <sta/spi/device.hpp>
|
||||||
#include <sta/spi/interface.hpp>
|
#include <sta/spi/interface.hpp>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#endif // STA_PLATFORM_STM32
|
#endif // STA_PLATFORM_STM32
|
||||||
|
|
||||||
|
|
||||||
#ifdef STA_STM32_UART_ENABLED
|
#if defined(STA_STM32_UART_ENABLED) || defined(DOXYGEN)
|
||||||
|
|
||||||
#include <sta/uart.hpp>
|
#include <sta/uart.hpp>
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
|
* @file
|
||||||
* @brief Signatures for time related functions.
|
* @brief Signatures for time related functions.
|
||||||
*/
|
*/
|
||||||
#ifndef STA_CORE_TIME_HPP
|
#ifndef STA_CORE_TIME_HPP
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <sta/assert.hpp>
|
#include <sta/assert.hpp>
|
||||||
#ifdef STA_ASSERT_ENABLE
|
#ifdef STA_ASSERT_ENABLED
|
||||||
|
|
||||||
#include <sta/debug_serial.hpp>
|
#include <sta/debug_serial.hpp>
|
||||||
#include <sta/lang.hpp>
|
#include <sta/lang.hpp>
|
||||||
@ -27,4 +27,4 @@ namespace sta
|
|||||||
} // namespace sta
|
} // namespace sta
|
||||||
|
|
||||||
|
|
||||||
#endif // STA_ASSERT_ENABLE
|
#endif // STA_ASSERT_ENABLED
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <sta/atomic/mutex.hpp>
|
#include <sta/atomic/mutex.hpp>
|
||||||
#ifdef STA_ATOMIC_ENABLE
|
#ifdef STA_ATOMIC_ENABLED
|
||||||
|
|
||||||
|
|
||||||
namespace sta
|
namespace sta
|
||||||
@ -20,4 +20,4 @@ namespace sta
|
|||||||
} // namespace sta
|
} // namespace sta
|
||||||
|
|
||||||
|
|
||||||
#endif // STA_ATOMIC_ENABLE
|
#endif // STA_ATOMIC_ENABLED
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <sta/atomic/signal.hpp>
|
#include <sta/atomic/signal.hpp>
|
||||||
#ifdef STA_ATOMIC_ENABLE
|
#ifdef STA_ATOMIC_ENABLED
|
||||||
|
|
||||||
|
|
||||||
namespace sta
|
namespace sta
|
||||||
@ -30,4 +30,4 @@ namespace sta
|
|||||||
} // namespace sta
|
} // namespace sta
|
||||||
|
|
||||||
|
|
||||||
#endif // STA_ATOMIC_ENABLE
|
#endif // STA_ATOMIC_ENABLED
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
#include <sta/assert.hpp>
|
#include <sta/assert.hpp>
|
||||||
|
|
||||||
#ifdef STA_STM32_DELAY_US_TIM
|
#ifdef STA_STM32_DELAY_US_TIM
|
||||||
|
|
||||||
|
#ifndef HAL_TIM_MODULE_ENABLED
|
||||||
|
# error "STM32 HAL TIM module not enabled!"
|
||||||
|
#endif // HAL_TIM_MODULE_ENABLED
|
||||||
|
|
||||||
#include <tim.h>
|
#include <tim.h>
|
||||||
|
|
||||||
#endif // STA_STM32_DELAY_US_TIM
|
#endif // STA_STM32_DELAY_US_TIM
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user