diff options
| author | Chaoqiong Xiao <[email protected]> | 2023-05-12 07:01:07 +0000 |
|---|---|---|
| committer | Chaoqiong Xiao <[email protected]> | 2023-05-12 07:01:07 +0000 |
| commit | ef2fa7717be8ab751fdfb5d3f91e24fbbaea8dd6 (patch) | |
| tree | e252f4e5e52617043c6d6ed59a6891a173d07781 /ports/cortex_m0/gnu | |
| parent | 3af3626c9b4b5fefbe4016582b896ad79287df62 (diff) | |
Update on 12 May 2023. Expand to see details.
8b59a1d4 Add support for Get String requests with 0 wIndex
106c1b06 Update cfs usage
2d45d315 Optimize SRAM for extracted USB descriptors
cf97e6e9 Fixed allocated buffer pointer checking issue.
6468c588 Guard basic types.
60b3a232 Update CFS usage
Diffstat (limited to 'ports/cortex_m0/gnu')
| -rw-r--r-- | ports/cortex_m0/gnu/inc/ux_port.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/ports/cortex_m0/gnu/inc/ux_port.h b/ports/cortex_m0/gnu/inc/ux_port.h index a015ba1..6eba5b5 100644 --- a/ports/cortex_m0/gnu/inc/ux_port.h +++ b/ports/cortex_m0/gnu/inc/ux_port.h @@ -26,7 +26,7 @@ /* PORT SPECIFIC C INFORMATION RELEASE */ /* */ /* ux_port.h Cortex-M0/GNU */ -/* 6.1.10 */ +/* 6.x */ /* */ /* AUTHOR */ /* */ @@ -48,6 +48,10 @@ /* moved tx_api.h include and */ /* typedefs from ux_api.h, */ /* resulting in version 6.1.10 */ +/* xx-xx-xxxx Chaoqiong Xiao Modified comment(s), */ +/* added basic types guards, */ +/* improved SLONG typedef, */ +/* resulting in version 6.x */ /* */ /**************************************************************************/ @@ -82,7 +86,8 @@ #if !defined(TX_API_H) && !defined(TX_PORT_H) #include <stdint.h> -typedef void VOID; +#ifndef VOID +#define VOID void typedef char CHAR; typedef unsigned char UCHAR; typedef int INT; @@ -91,10 +96,16 @@ typedef long LONG; typedef unsigned long ULONG; typedef short SHORT; typedef unsigned short USHORT; +#endif + +#ifndef ULONG64_DEFINED typedef uint64_t ULONG64; +#define ULONG64_DEFINED +#endif #ifndef ALIGN_TYPE_DEFINED #define ALIGN_TYPE ULONG +#define ALIGN_TYPE_DEFINED #endif #endif @@ -112,7 +123,10 @@ typedef uint64_t ULONG64; /* Define additional generic USBX types. */ -typedef long SLONG; +#ifndef SLONG_DEFINED +typedef LONG SLONG; +#define SLONG_DEFINED +#endif /* Generic USBX Project constants follow. */ |
