Use endian macros from kernel

This commit is contained in:
Christian kimocoder 2017-10-24 15:03:25 +02:00 committed by GitHub
parent 88030586b4
commit d2300a2790

View File

@ -21,18 +21,10 @@
#define _RTL871X_BYTEORDER_H_
#if defined(CONFIG_LITTLE_ENDIAN) && defined (CONFIG_BIG_ENDIAN)
#error "Shall be CONFIG_LITTLE_ENDIAN or CONFIG_BIG_ENDIAN, but not both!\n"
#endif
#if defined(CONFIG_LITTLE_ENDIAN)
#ifndef CONFIG_PLATFORM_MSTAR389
#include <byteorder/little_endian.h>
#endif
#elif defined (CONFIG_BIG_ENDIAN)
#include <byteorder/big_endian.h>
#if defined(__LITTLE_ENDIAN)
#include <byteorder/little_endian.h>
#else
# error "Must be LITTLE/BIG Endian Host"
#include <byteorder/big_endian.h>
#endif
#endif /* _RTL871X_BYTEORDER_H_ */