浏览代码

[BSP][raspberry-pi/raspi2]Add cpuport.h (#10158)

Create cpuport.h

Add support for spinlock
qilian 4 月之前
父节点
当前提交
98589e6229
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      bsp/raspberry-pi/raspi2/cpu/cpuport.h

+ 12 - 0
bsp/raspberry-pi/raspi2/cpu/cpuport.h

@@ -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__*/