diff options
| author | Bernard Xiong <[email protected]> | 2019-05-09 12:57:47 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-09 12:57:47 +0800 |
| commit | 2bf9ba0675dd7a6ab84f79abf2abfd8096710013 (patch) | |
| tree | 70d1a96ac794a686007dbdcbfb10537dcf5fbc5b /include | |
| parent | fa2d77ac72533f4b8bdcbdd4a48a562abe525edd (diff) | |
| parent | 43c1236ec9fd0d8530714370b7a664efd6d9bf3a (diff) | |
Merge pull request #2661 from BernardXiong/pre-release_v4.0.1
Pre-release for v4.0.1
Diffstat (limited to 'include')
| -rw-r--r-- | include/rthw.h | 6 |
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 |
