Parcourir la source

[libcpu/cortex-a] Fix the problem of circular include of cpuport.h

guozhanxin il y a 1 an
Parent
commit
d8a2084c05
2 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 0
      libcpu/arm/cortex-a/backtrace.h
  2. 0 2
      libcpu/arm/cortex-a/cpuport.h

+ 1 - 0
libcpu/arm/cortex-a/backtrace.h

@@ -2,6 +2,7 @@
 #define __BACKTRACE_H
 
 #ifndef __ASSEMBLY__
+#include <rtthread.h>
 #include <cpuport.h>
 
 /* Unwind reason code according the the ARM EABI documents */

+ 0 - 2
libcpu/arm/cortex-a/cpuport.h

@@ -10,8 +10,6 @@
 #ifndef  CPUPORT_H__
 #define  CPUPORT_H__
 
-#include <rtthread.h>
-
 /* the exception stack without VFP registers */
 struct rt_hw_exp_stack
 {