diff options
| author | Huan Nguyen <[email protected]> | 2025-05-12 11:09:46 -0600 |
|---|---|---|
| committer | Huan Nguyen <[email protected]> | 2025-05-12 11:19:26 -0600 |
| commit | ca06d3421df0a5ce07925abae17d2ef712399150 (patch) | |
| tree | e2083975830412a110e76593b5363517c04e8ad7 | |
| parent | 1f66e3c13da212d2c2db2ea215bc84d42727f4ab (diff) | |
Fix _ux_utility_time_elapsed define and pass tests
| -rw-r--r-- | common/core/inc/ux_utility.h | 2 | ||||
| -rw-r--r-- | test/regression/usbx_ux_utility_time_elapsed_test.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/core/inc/ux_utility.h b/common/core/inc/ux_utility.h index 8a8ea98..c2fd8f4 100644 --- a/common/core/inc/ux_utility.h +++ b/common/core/inc/ux_utility.h @@ -172,7 +172,7 @@ extern ULONG _ux_utility_time_get(VOID); #endif #ifndef _ux_utility_time_elapsed -#define _ux_utility_time_elapsed(a,b) (((b)>=(a)) ? ((b)-(a)) : (0xFFFFFFFFul-(b)+(a)+1)) +#define _ux_utility_time_elapsed(a,b) (((b)>=(a)) ? ((b)-(a)) : (0xFFFFFFFFul-(a)+(b)+1)) #else extern ALIGN_TYPE _ux_utility_time_elapsed(ALIGN_TYPE, ALIGN_TYPE); #endif diff --git a/test/regression/usbx_ux_utility_time_elapsed_test.c b/test/regression/usbx_ux_utility_time_elapsed_test.c index 550e828..f651867 100644 --- a/test/regression/usbx_ux_utility_time_elapsed_test.c +++ b/test/regression/usbx_ux_utility_time_elapsed_test.c @@ -1,4 +1,4 @@ -/* This test is designed to test the ux_utility_timer_.... */ +/* This test is designed to test the ux_utility_time_elapsed macro.... */ #include <stdio.h> #include "tx_api.h" |
