未验证 提交 5a0fea69 编写于 作者: mysterywolf's avatar mysterywolf 提交者: GitHub

[Kconfig][libcpu] 增加ARCH_CPU_BIG_ENDIAN (#5547)

* [cpu] 增加ARCH_CPU_BIG_ENDIAN
- 之前RT_USING_BIG_ENDIAN的命名并不合理,予以替换为ARCH_CPU_BIG_ENDIAN
- 删除一处多余的ARCH_CPU_64BIT
- 整理了libcpu/Kconfig的格式

* [libcpu][Kconfig] Cortex-M4&7 select ARCH_ARM_CORTEX_FPU

* revert last commit
上级 382e19cc
...@@ -41,11 +41,11 @@ ...@@ -41,11 +41,11 @@
#include <stdint.h> #include <stdint.h>
#ifndef BYTE_ORDER #ifndef BYTE_ORDER
#ifdef RT_USING_BIG_ENDIAN #ifdef ARCH_CPU_BIG_ENDIAN
#define BYTE_ORDER BIG_ENDIAN #define BYTE_ORDER BIG_ENDIAN
#else #else
#define BYTE_ORDER LITTLE_ENDIAN #define BYTE_ORDER LITTLE_ENDIAN
#endif /* RT_USING_BIG_ENDIAN */ #endif /* ARCH_CPU_BIG_ENDIAN */
#endif /* BYTE_ORDER */ #endif /* BYTE_ORDER */
typedef uint8_t u8_t; typedef uint8_t u8_t;
......
...@@ -40,11 +40,11 @@ ...@@ -40,11 +40,11 @@
#include <string.h> #include <string.h>
#ifndef BYTE_ORDER #ifndef BYTE_ORDER
#ifdef RT_USING_BIG_ENDIAN #ifdef ARCH_CPU_BIG_ENDIAN
#define BYTE_ORDER BIG_ENDIAN #define BYTE_ORDER BIG_ENDIAN
#else #else
#define BYTE_ORDER LITTLE_ENDIAN #define BYTE_ORDER LITTLE_ENDIAN
#endif /* RT_USING_BIG_ENDIAN */ #endif /* ARCH_CPU_BIG_ENDIAN */
#endif /* BYTE_ORDER */ #endif /* BYTE_ORDER */
#define U16_F "hu" #define U16_F "hu"
......
...@@ -40,11 +40,11 @@ ...@@ -40,11 +40,11 @@
#include <string.h> #include <string.h>
#ifndef BYTE_ORDER #ifndef BYTE_ORDER
#ifdef RT_USING_BIG_ENDIAN #ifdef ARCH_CPU_BIG_ENDIAN
#define BYTE_ORDER BIG_ENDIAN #define BYTE_ORDER BIG_ENDIAN
#else #else
#define BYTE_ORDER LITTLE_ENDIAN #define BYTE_ORDER LITTLE_ENDIAN
#endif /* RT_USING_BIG_ENDIAN */ #endif /* ARCH_CPU_BIG_ENDIAN */
#endif /* BYTE_ORDER */ #endif /* BYTE_ORDER */
#define U16_F "hu" #define U16_F "hu"
......
config ARCH_CPU_64BIT config ARCH_CPU_64BIT
bool bool
config ARCH_CPU_BIG_ENDIAN
bool
config ARCH_ARM config ARCH_ARM
bool bool
...@@ -103,9 +106,6 @@ config ARCH_MIPS64 ...@@ -103,9 +106,6 @@ config ARCH_MIPS64
bool bool
select ARCH_CPU_64BIT select ARCH_CPU_64BIT
config ARCH_CPU_64BIT
bool
config ARCH_MIPS_XBURST config ARCH_MIPS_XBURST
bool bool
select ARCH_MIPS select ARCH_MIPS
......
...@@ -8,10 +8,6 @@ config RT_NAME_MAX ...@@ -8,10 +8,6 @@ config RT_NAME_MAX
Each kernel object, such as thread, timer, semaphore etc, has a name, Each kernel object, such as thread, timer, semaphore etc, has a name,
the RT_NAME_MAX is the maximal size of this object name. the RT_NAME_MAX is the maximal size of this object name.
config RT_USING_BIG_ENDIAN
bool
default n
config RT_USING_ARCH_DATA_TYPE config RT_USING_ARCH_DATA_TYPE
bool "Use the data types defined in ARCH_CPU" bool "Use the data types defined in ARCH_CPU"
default n default n
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册