SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
endian.h
Go to the documentation of this file.
1#ifndef __ARM32_ENDIAN_H__
2#define __ARM32_ENDIAN_H__
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define LITTLE_ENDIAN (0x1234)
9#define BIG_ENDIAN (0x4321)
10
11#if (!defined(__LITTLE_ENDIAN) && !defined(__BIG_ENDIAN))
12#define __LITTLE_ENDIAN
13#endif
14
15#if defined(__LITTLE_ENDIAN)
16#define BYTE_ORDER LITTLE_ENDIAN
17#elif defined(__BIG_ENDIAN)
18#define BYTE_ORDER BIG_ENDIAN
19#else
20#error "Unknown byte order!"
21#endif
22
23#ifdef __cplusplus
24}
25#endif
26
27#endif /* __ARM32_ENDIAN_H__ */