diff options
| author | Frédéric Desbiens <[email protected]> | 2025-09-28 23:22:13 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-28 23:22:13 +0100 |
| commit | c4ad279b85fcf836c0b42d3e140fc32f0554e7b5 (patch) | |
| tree | 5e2593fe4ed0d57041ad46fd0f3d88b2c88b8561 /common | |
| parent | 12dac1d67d0dfe1c06f839ee285e190c759865a7 (diff) | |
| parent | 8a744afc1c4a3891db948d5cb5a93b86d1485cef (diff) | |
Merge pull request #468 from eclipse-threadx/devv6.4.3.202503_rel
Merge changes included in the v6.4.3.202503 release.
Diffstat (limited to 'common')
| -rw-r--r-- | common/inc/tx_api.h | 10 | ||||
| -rw-r--r-- | common/inc/tx_thread.h | 2 | ||||
| -rw-r--r-- | common/inc/tx_user_sample.h | 7 | ||||
| -rw-r--r-- | common/src/txe_queue_create.c | 4 |
4 files changed, 19 insertions, 4 deletions
diff --git a/common/inc/tx_api.h b/common/inc/tx_api.h index 3ff05f4b..629d1ab9 100644 --- a/common/inc/tx_api.h +++ b/common/inc/tx_api.h @@ -148,7 +148,9 @@ extern "C" { #define AZURE_RTOS_THREADX #define THREADX_MAJOR_VERSION 6 #define THREADX_MINOR_VERSION 4 -#define THREADX_PATCH_VERSION 2 +#define THREADX_PATCH_VERSION 3 +#define THREADX_BUILD_VERSION 202503 +#define THREADX_HOTFIX_VERSION '' /* Define the following symbol for backward compatibility */ #define EL_PRODUCT_THREADX @@ -328,6 +330,12 @@ extern "C" { #define TX_TIMER_TICKS_PER_SECOND (100UL) #endif +/* Define the default maximum message size in a queue. The default value is TX_16_ULONG, but may + be customized in tx_user.h or as a compilation option. */ + +#ifndef TX_QUEUE_MESSAGE_MAX_SIZE +#define TX_QUEUE_MESSAGE_MAX_SIZE TX_16_ULONG +#endif /* Event numbers 0 through 4095 are reserved by Azure RTOS. Specific event assignments are: diff --git a/common/inc/tx_thread.h b/common/inc/tx_thread.h index 6500d40d..8729263d 100644 --- a/common/inc/tx_thread.h +++ b/common/inc/tx_thread.h @@ -239,7 +239,7 @@ _tx_thread_stack_error_handler((thread_ptr)); \ TX_DISABLE \ } \ - if (*(((ULONG *) (thread_ptr) -> tx_thread_stack_highest_ptr) - 1) != TX_STACK_FILL) \ + else if (*(((ULONG *) (thread_ptr) -> tx_thread_stack_highest_ptr) - 1) != TX_STACK_FILL) \ { \ TX_RESTORE \ _tx_thread_stack_analyze((thread_ptr)); \ diff --git a/common/inc/tx_user_sample.h b/common/inc/tx_user_sample.h index e7ecb56a..f8d809b5 100644 --- a/common/inc/tx_user_sample.h +++ b/common/inc/tx_user_sample.h @@ -117,6 +117,13 @@ #define TX_TIMER_THREAD_PRIORITY ???? */ +/* Define the maximum size of a message in the a queue. the Default value is TX_ULONG_16. + the new value must be a multiple of ULONG. */ + +/* +#define TX_QUEUE_MESSAGE_MAX_SIZE TX_ULONG_16 +*/ + /* Define the common timer tick reference for use by other middleware components. The default value is 10ms (i.e. 100 ticks, defined in tx_api.h), but may be replaced by a port-specific version in tx_port.h or here. diff --git a/common/src/txe_queue_create.c b/common/src/txe_queue_create.c index 68d3540a..2d91cc9f 100644 --- a/common/src/txe_queue_create.c +++ b/common/src/txe_queue_create.c @@ -178,8 +178,8 @@ TX_THREAD *thread_ptr; status = TX_SIZE_ERROR; } - /* Check for an invalid message size - greater than 16. */ - else if (message_size > TX_16_ULONG) + /* Check for an invalid message size - greater than TX_QUEUE_MESSAGE_MAX_SIZE 16 by default. */ + else if (message_size > TX_QUEUE_MESSAGE_MAX_SIZE) { /* Invalid message size specified. */ |
