Skip to content

Commit

Permalink
updated to 6.0.1 and added additional processors/toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Larson committed Jul 13, 2020
1 parent b652166 commit 05d00d4
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions common/core/inc/ux_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/* APPLICATION INTERFACE DEFINITION RELEASE */
/* */
/* ux_api.h PORTABLE C */
/* 6.0 */
/* 6.0.1 */
/* AUTHOR */
/* */
/* Chaoqiong Xiao, Microsoft Corporation */
Expand All @@ -44,6 +44,11 @@
/* DATE NAME DESCRIPTION */
/* */
/* 05-19-2020 Chaoqiong Xiao Initial Version 6.0 */
/* 06-30-2020 Chaoqiong Xiao Modified comment(s), and */
/* updated product constants, */
/* avoided div 0 in overflow */
/* checking macro, */
/* resulting in version 6.0.1 */
/* */
/**************************************************************************/

Expand Down Expand Up @@ -128,6 +133,12 @@ typedef signed char SCHAR;
#define UX_HOST_HNP_POLLING_THREAD_STACK UX_THREAD_STACK_SIZE
#endif

/* Define basic constants for the USBX Stack. */
#define AZURE_RTOS_USBX
#define USBX_MAJOR_VERSION 6
#define USBX_MINOR_VERSION 0
#define USBX_PATCH_VERSION 1

/* Macros for concatenating tokens, where UX_CONCATn concatenates n tokens. */

#define UX_CONCAT_BASE(x,y) x ## y
Expand Down Expand Up @@ -155,9 +166,9 @@ typedef signed char SCHAR;
#define UX_UNDERFLOW_CHECK_MINUS(a, b) ((a) < (b))

/* Overflow check optimized in case multiplying a 2nd factor of const. */
#define UX_OVERFLOW_CHECK_MULC_ULONG(v, c) ((v) > 0xFFFFFFFFul / (c))
#define UX_OVERFLOW_CHECK_MULC_USHORT(v, c) ((v) > 0xFFFFul / (c))
#define UX_OVERFLOW_CHECK_MULC_UCHAR(v, c) ((v) > 0xFFul / (c))
#define UX_OVERFLOW_CHECK_MULC_ULONG(v, c) (((c) != 0) && ((v) > 0xFFFFFFFFul / (c)))
#define UX_OVERFLOW_CHECK_MULC_USHORT(v, c) (((c) != 0) && ((v) > 0xFFFFul / (c)))
#define UX_OVERFLOW_CHECK_MULC_UCHAR(v, c) (((c) != 0) && ((v) > 0xFFul / (c)))

/* Overflow check optimized in case multiplying factors of variables and division instruction unavailable. */
#define UX_OVERFLOW_CHECK_MULV_ULONG(v, v1) ((v) * (v1) < UX_MIN(v, v1))
Expand Down

0 comments on commit 05d00d4

Please sign in to comment.