mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 00:45:22 +08:00
[BSP][raspberry-pi/raspi2]Add cpuport.h (#10158)
Create cpuport.h Add support for spinlock
This commit is contained in:
12
bsp/raspberry-pi/raspi2/cpu/cpuport.h
Normal file
12
bsp/raspberry-pi/raspi2/cpu/cpuport.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef CPUPORT_H__
|
||||
#define CPUPORT_H__
|
||||
|
||||
typedef union {
|
||||
unsigned long slock;
|
||||
struct __arch_tickets {
|
||||
unsigned short owner;
|
||||
unsigned short next;
|
||||
} tickets;
|
||||
} rt_hw_spinlock_t;
|
||||
|
||||
#endif /*CPUPORT_H__*/
|
||||
Reference in New Issue
Block a user