summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShell <[email protected]>2024-04-19 13:13:31 +0800
committerMeco Man <[email protected]>2024-04-19 21:30:12 -0400
commitd1bb01621beec12a03fbe1489419cabde5461919 (patch)
tree98dfd4409d81bc6c72bc62031d7dbc6bf2eb0662 /include
parent8c4db32d041153abab4484ac4118b147cf40fe32 (diff)
fixup: add Kconfig option
Diffstat (limited to 'include')
-rw-r--r--include/rttypes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rttypes.h b/include/rttypes.h
index f082fa0b61..fa84df1b1e 100644
--- a/include/rttypes.h
+++ b/include/rttypes.h
@@ -184,7 +184,7 @@ struct rt_spinlock
#define _SPIN_UNLOCK_DEBUG_OWNER(lock) RT_UNUSED(lock)
#endif /* RT_DEBUGING_SPINLOCK */
-#ifdef RT_USING_DEBUG
+#ifdef RT_DEBUGING_CRITICAL
#define _SPIN_LOCK_DEBUG_CRITICAL(lock) \
do \
{ \
@@ -197,11 +197,11 @@ struct rt_spinlock
(critical) = (lock)->critical_level; \
} while (0)
-#else /* !RT_USING_DEBUG */
+#else /* !RT_DEBUGING_CRITICAL */
#define _SPIN_LOCK_DEBUG_CRITICAL(lock) RT_UNUSED(lock)
#define _SPIN_UNLOCK_DEBUG_CRITICAL(lock, critical) do {critical = 0; RT_UNUSED(lock);} while (0)
-#endif /* RT_USING_DEBUG */
+#endif /* RT_DEBUGING_CRITICAL */
#define RT_SPIN_LOCK_DEBUG(lock) \
do \