summaryrefslogtreecommitdiff
path: root/include/rthw.h
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-05-09 12:57:47 +0800
committerGitHub <[email protected]>2019-05-09 12:57:47 +0800
commit2bf9ba0675dd7a6ab84f79abf2abfd8096710013 (patch)
tree70d1a96ac794a686007dbdcbfb10537dcf5fbc5b /include/rthw.h
parentfa2d77ac72533f4b8bdcbdd4a48a562abe525edd (diff)
parent43c1236ec9fd0d8530714370b7a664efd6d9bf3a (diff)
Merge pull request #2661 from BernardXiong/pre-release_v4.0.1
Pre-release for v4.0.1
Diffstat (limited to 'include/rthw.h')
-rw-r--r--include/rthw.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rthw.h b/include/rthw.h
index dee10b0bee..fc9cb3cd16 100644
--- a/include/rthw.h
+++ b/include/rthw.h
@@ -153,10 +153,10 @@ extern rt_hw_spinlock_t _rt_critical_lock;
#define __RT_HW_SPIN_LOCK_INITIALIZER(lockname) {0}
-#define __RT_HW_SPIN_LOCK_UNLOCKED(lockname) \
- (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)
-#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)
/**
* ipi function