Skip to content

Commit eed0db4

Browse files
committed
[fix]Fix cm33 compilation problem when block is turned on
1 parent 9da813b commit eed0db4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

libcpu/arm/cortex-m33/cpuport.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2006-2020, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
*/
9+
10+
#ifndef CPUPORT_H__
11+
#define CPUPORT_H__
12+
13+
#ifdef RT_USING_SMP
14+
typedef union {
15+
unsigned long slock;
16+
struct __arch_tickets {
17+
unsigned short owner;
18+
unsigned short next;
19+
} tickets;
20+
} rt_hw_spinlock_t;
21+
#endif
22+
23+
#endif /*CPUPORT_H__*/

0 commit comments

Comments
 (0)