arch/sim: Make up_internal.h includable in host environment

to avoid the declaration repetition

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-07-26 18:06:26 +08:00
committed by liuguo09
parent 3543950766
commit 8ce0ff5ce4
15 changed files with 47 additions and 132 deletions
+3 -4
View File
@@ -41,7 +41,6 @@
****************************************************************************/
#include <stdint.h>
#include <stdbool.h>
/****************************************************************************
* Pre-processor Definitions
@@ -49,15 +48,15 @@
/* Must match definitions in up_testset.c */
#define SP_UNLOCKED false /* The Un-locked state */
#define SP_LOCKED true /* The Locked state */
#define SP_UNLOCKED 0 /* The Un-locked state */
#define SP_LOCKED 1 /* The Locked state */
/****************************************************************************
* Public Types
****************************************************************************/
/* Must match definitions in up_testset.c */
typedef bool spinlock_t;
typedef uint8_t spinlock_t;
/****************************************************************************
* Public Functions