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:
@@ -3,9 +3,8 @@
|
||||
* @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)
|
||||
* * STA_ASSERT_ENABLED: Enable assertions
|
||||
* * STA_ASSERT_FORCE: Enable assertions. Still there for backwards compatibility.
|
||||
*/
|
||||
#ifndef STA_CORE_ASSERT_HPP
|
||||
#define STA_CORE_ASSERT_HPP
|
||||
@@ -24,18 +23,10 @@
|
||||
|
||||
#include <sta/config.hpp>
|
||||
|
||||
// Determine if module should be enabled
|
||||
// Condition:
|
||||
// STA_ASSERT_FORCE is defined
|
||||
// or
|
||||
// DEBUG is defined but not NDEBUG
|
||||
// Keep STA_ASSERT_FORCE for backwards comapatibility.
|
||||
#ifdef STA_ASSERT_FORCE
|
||||
# define STA_ASSERT_ENABLED
|
||||
#else // !STA_ASSERT_FORCE
|
||||
# if defined(DEBUG) && !defined(NDEBUG)
|
||||
# define STA_ASSERT_ENABLED
|
||||
# endif // DEBUG && !NDEBUG
|
||||
#endif // !STA_ASSERT_FORCE
|
||||
# define STA_ASSERT_ENABLED
|
||||
#endif // STA_ASSERT_FORCE
|
||||
|
||||
|
||||
#if defined(STA_ASSERT_ENABLED) || defined(DOXYGEN)
|
||||
|
Reference in New Issue
Block a user