From 1fee50b9fe64c32f62baa8f96e1fa3687fa7da5d Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 25 Sep 2013 16:20:38 +0700 Subject: add tusbh_msc_status reanme PRINTF_TARGET_DEBUG_CONSOLE to PRINTF_TARGET_SEMIHOST add read10 implementation able to read fat root sector --- tinyusb/common/compiler/compiler_gcc.h | 3 +++ tinyusb/common/compiler/compiler_iar.h | 1 + 2 files changed, 4 insertions(+) (limited to 'tinyusb/common') diff --git a/tinyusb/common/compiler/compiler_gcc.h b/tinyusb/common/compiler/compiler_gcc.h index b0fff10c0..0202bf314 100644 --- a/tinyusb/common/compiler/compiler_gcc.h +++ b/tinyusb/common/compiler/compiler_gcc.h @@ -132,6 +132,9 @@ // built-in function to convert 32-bit Big-Endian to Little-Endian #define __be2le __builtin_bswap32 +#define __le2be __be2le + +//#define __le2be_16 __builtin_bswap16 /** You can use the built-in function \b __builtin_constant_p to determine if a value is known to be constant at compile time and hence that GCC can perform constant-folding on expressions involving that value. The argument of the function is the value to test. The function returns the integer 1 if the argument is known to be a compile-time constant and 0 if it is not known to be a compile-time constant. A return of 0 does not indicate that the value is not a constant, but merely that GCC cannot prove it is a constant with the specified value of the -O option. diff --git a/tinyusb/common/compiler/compiler_iar.h b/tinyusb/common/compiler/compiler_iar.h index 82f5079df..baba783d8 100644 --- a/tinyusb/common/compiler/compiler_iar.h +++ b/tinyusb/common/compiler/compiler_iar.h @@ -85,6 +85,7 @@ // built-in function to convert 32-bit Big-Endian to Little-Endian #define __be2le __REV +#define __le2be __be2le #if 0 -- cgit v1.3.1