Skip to content

Commit 98589e6

Browse files
authored
[BSP][raspberry-pi/raspi2]Add cpuport.h (#10158)
Create cpuport.h Add support for spinlock
1 parent 4d826ca commit 98589e6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

bsp/raspberry-pi/raspi2/cpu/cpuport.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#ifndef CPUPORT_H__
2+
#define CPUPORT_H__
3+
4+
typedef union {
5+
unsigned long slock;
6+
struct __arch_tickets {
7+
unsigned short owner;
8+
unsigned short next;
9+
} tickets;
10+
} rt_hw_spinlock_t;
11+
12+
#endif /*CPUPORT_H__*/

0 commit comments

Comments
 (0)