diff options
| author | hathach <[email protected]> | 2013-11-26 13:15:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-26 13:15:40 +0700 |
| commit | 8f70a6a886aa557dd87086b807367eef662a7e77 (patch) | |
| tree | 062c136d68c807be53bf74677c8210940bc5d661 /tinyusb/common/compiler | |
| parent | 51def3f7ed6b1ac849cb357a9868328d8c5e3117 (diff) | |
change endian conversion to native to be & be to native
completely deferred xfer isr event to usbd task
complete read10, write10 sequence for large data transfer
Diffstat (limited to 'tinyusb/common/compiler')
| -rw-r--r-- | tinyusb/common/compiler/compiler_gcc.h | 6 | ||||
| -rw-r--r-- | tinyusb/common/compiler/compiler_iar.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tinyusb/common/compiler/compiler_gcc.h b/tinyusb/common/compiler/compiler_gcc.h index 8f759ec9a..f300661a5 100644 --- a/tinyusb/common/compiler/compiler_gcc.h +++ b/tinyusb/common/compiler/compiler_gcc.h @@ -130,9 +130,9 @@ * @{ */ -// built-in function to convert 32-bit Big-Endian to Little-Endian -#define __be2le __builtin_bswap32 -#define __le2be __be2le +// built-in function to convert 32-bit from native to Big Endian +#define __be2n __builtin_bswap32 +#define __n2be __be2n //#define __le2be_16 __builtin_bswap16 diff --git a/tinyusb/common/compiler/compiler_iar.h b/tinyusb/common/compiler/compiler_iar.h index c611d0b2a..2d079b85f 100644 --- a/tinyusb/common/compiler/compiler_iar.h +++ b/tinyusb/common/compiler/compiler_iar.h @@ -82,8 +82,8 @@ #define ATTR_UNUSED // built-in function to convert 32-bit Big-Endian to Little-Endian -#define __be2le __REV -#define __le2be __be2le +#define __be2n __REV +#define __n2be __be2n #ifdef __cplusplus } |
