text: /* SPDX-License-Identifier: MIT */
  /*
   * Copyright(c) 2021 Sanpe <sanpeqf@gmail.com>
   */
  
  #ifndef __CSKY_ENDIAN_H__
  #define __CSKY_ENDIAN_H__
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  #ifndef LITTLE_ENDIAN
  #define LITTLE_ENDIAN	(0x1234)
  #endif
  #ifndef BIG_ENDIAN
  #define BIG_ENDIAN		(0x4321)
  #endif
  
  #if ( !defined(__LITTLE_ENDIAN) && !defined(__BIG_ENDIAN) )
  #define __LITTLE_ENDIAN
  #endif
  
  #if defined(__LITTLE_ENDIAN)
  #define BYTE_ORDER		LITTLE_ENDIAN
  #elif defined(__BIG_ENDIAN)
  #define BYTE_ORDER		BIG_ENDIAN
  #else
  #error "Unknown byte order!"
  #endif
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* __CSKY_ENDIAN_H__ */
  