Make queue max message size configurable
Summary ------- This commit fixes the issue #424 Details -------- - Add a the configuration option TX_QUEUE_MESSAGE_MAX_SIZE in the tx_api.h with default value set to TX_ULONG_16 to keep backword compatibility. - Update the txe_queue_create() to check on TX_QUEUE_MESSAGE_MAX_SIZE rather than TX_ULONG_16 as max message size. - Add a new unitary test to cover the new change.
This commit is contained in:
@@ -171,6 +171,7 @@ void threadx_queue_basic_two_word_application_define(void *);
|
||||
void threadx_queue_basic_four_word_application_define(void *);
|
||||
void threadx_queue_basic_eight_word_application_define(void *);
|
||||
void threadx_queue_basic_sixteen_word_application_define(void *);
|
||||
void threadx_queue_basic_max_message_size_application_define(void *);
|
||||
void threadx_queue_empty_suspension_application_define(void *);
|
||||
void threadx_queue_full_suspension_application_define(void *);
|
||||
void threadx_queue_suspension_timeout_application_define(void *);
|
||||
@@ -287,6 +288,7 @@ TEST_ENTRY test_control_tests[] =
|
||||
threadx_queue_basic_four_word_application_define,
|
||||
threadx_queue_basic_eight_word_application_define,
|
||||
threadx_queue_basic_sixteen_word_application_define,
|
||||
threadx_queue_basic_max_message_size_application_define,
|
||||
threadx_queue_empty_suspension_application_define,
|
||||
threadx_queue_full_suspension_application_define,
|
||||
threadx_queue_suspension_timeout_application_define,
|
||||
@@ -1193,6 +1195,7 @@ void test_control_return(UINT status)
|
||||
|
||||
UINT old_posture = TX_INT_ENABLE;
|
||||
|
||||
printf("********** Running Queue Max Message Size Test (%u) ************** \n ", TX_QUEUE_MESSAGE_MAX_SIZE);
|
||||
|
||||
/* Save the status in a global. */
|
||||
test_control_return_status = status;
|
||||
|
||||
Reference in New Issue
Block a user