mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-06 10:27:34 +00:00
Updated clock prescaler, tested profiler and delayUs
This commit is contained in:
@@ -9,7 +9,16 @@
|
||||
#define STA_DEBUGGING_PROFILING_HPP
|
||||
|
||||
#include <sta/debug/debug.hpp>
|
||||
#ifdef STA_DEBUGGING_ENABLED
|
||||
|
||||
#ifdef STA_PROFILING_ENABLED
|
||||
|
||||
#ifndef STA_DEBUGGING_ENABLED
|
||||
# error "Debugging has to be enabled in order to use profiling."
|
||||
#endif // STA_DEBUGGING_ENABLED
|
||||
|
||||
#ifndef STA_STM32_DELAY_US_TIM
|
||||
# error "A microsecond timer has to be defined in order to use profiling."
|
||||
#endif // STA_STM32_DELAY_US_TIM
|
||||
|
||||
namespace sta
|
||||
{
|
||||
@@ -29,8 +38,10 @@ namespace sta
|
||||
*/
|
||||
#define STA_TIME_IT(name) sta::Profiler profiler(name);
|
||||
|
||||
#endif // STA_DEBUGGING_ENABLED
|
||||
#else
|
||||
|
||||
#define STA_TIME_IT(name) ((void)0)
|
||||
|
||||
#endif // // STA_PROFILING_ENABLED
|
||||
|
||||
#endif // STA_DEBUGGING_PROFILING_HPP
|
||||
|
Reference in New Issue
Block a user