Merge pull request #5201 from mysterywolf/bigendin
[kernel] define RT_USING_BIG_ENDIAN for the long-term version
This commit is contained in:
commit
06efd7ccf2
|
@ -39,7 +39,9 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
|
||||||
#ifndef BYTE_ORDER
|
#ifdef RT_USING_BIG_ENDIAN
|
||||||
|
#define BYTE_ORDER BIG_ENDIAN
|
||||||
|
#else
|
||||||
#define BYTE_ORDER LITTLE_ENDIAN
|
#define BYTE_ORDER LITTLE_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,9 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
|
||||||
#ifndef BYTE_ORDER
|
#ifdef RT_USING_BIG_ENDIAN
|
||||||
|
#define BYTE_ORDER BIG_ENDIAN
|
||||||
|
#else
|
||||||
#define BYTE_ORDER LITTLE_ENDIAN
|
#define BYTE_ORDER LITTLE_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,9 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
|
||||||
#ifndef BYTE_ORDER
|
#ifdef RT_USING_BIG_ENDIAN
|
||||||
|
#define BYTE_ORDER BIG_ENDIAN
|
||||||
|
#else
|
||||||
#define BYTE_ORDER LITTLE_ENDIAN
|
#define BYTE_ORDER LITTLE_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,9 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
|
||||||
#ifndef BYTE_ORDER
|
#ifdef RT_USING_BIG_ENDIAN
|
||||||
|
#define BYTE_ORDER BIG_ENDIAN
|
||||||
|
#else
|
||||||
#define BYTE_ORDER LITTLE_ENDIAN
|
#define BYTE_ORDER LITTLE_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue