diff options
| author | hathach <[email protected]> | 2013-09-25 16:20:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-09-25 16:20:38 +0700 |
| commit | 1fee50b9fe64c32f62baa8f96e1fa3687fa7da5d (patch) | |
| tree | def8c534d35e86c914da89517d6ecd3334a51716 /tinyusb/common | |
| parent | cf65f859be27d71fb64c1c0bca07585f4df37f75 (diff) | |
add tusbh_msc_status
reanme PRINTF_TARGET_DEBUG_CONSOLE to PRINTF_TARGET_SEMIHOST
add read10 implementation
able to read fat root sector
Diffstat (limited to 'tinyusb/common')
| -rw-r--r-- | tinyusb/common/compiler/compiler_gcc.h | 3 | ||||
| -rw-r--r-- | tinyusb/common/compiler/compiler_iar.h | 1 |
2 files changed, 4 insertions, 0 deletions
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 |
