We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4127cc1 commit 21cd524Copy full SHA for 21cd524
include/rthw.h
@@ -153,10 +153,10 @@ extern rt_hw_spinlock_t _rt_critical_lock;
153
154
#define __RT_HW_SPIN_LOCK_INITIALIZER(lockname) {0}
155
156
-#define __RT_HW_SPIN_LOCK_UNLOCKED(lockname) \
157
- (struct rt_hw_spinlock ) __RT_HW_SPIN_LOCK_INITIALIZER(lockname)
+#define __RT_HW_SPIN_LOCK_UNLOCKED(lockname) \
+ (rt_hw_spinlock_t) __RT_HW_SPIN_LOCK_INITIALIZER(lockname)
158
159
-#define RT_DEFINE_SPINLOCK(x) struct rt_hw_spinlock x = __RT_HW_SPIN_LOCK_UNLOCKED(x)
+#define RT_DEFINE_SPINLOCK(x) rt_hw_spinlock_t x = __RT_HW_SPIN_LOCK_UNLOCKED(x)
160
161
/**
162
* ipi function
0 commit comments