File tree Expand file tree Collapse file tree 4 files changed +430
-7
lines changed Expand file tree Collapse file tree 4 files changed +430
-7
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,8 @@ TX_THREAD *thread_ptr;
178178 status = TX_SIZE_ERROR ;
179179 }
180180
181- /* Check for an invalid message size - greater than 16 . */
182- else if (message_size > TX_16_ULONG )
181+ /* Check for an invalid message sizegreater than TX_QUEUE_MESSAGE_MAX_SIZE 16 by default . */
182+ else if (message_size > TX_QUEUE_MESSAGE_MAX_SIZE )
183183 {
184184
185185 /* Invalid message size specified. */
Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ endif()
2323
2424message (STATUS "Build type: ${CMAKE_BUILD_TYPE} " )
2525message (STATUS "Using toolchain file: ${CMAKE_TOOLCHAIN_FILE} ." )
26- set (default_build_coverage "" )
27- set (disable_notify_callbacks_build -DTX_DISABLE_NOTIFY_CALLBACKS)
28- set (stack_checking_build -DTX_ENABLE_STACK_CHECKING)
29- set (stack_checking_rand_fill_build -DTX_ENABLE_STACK_CHECKING -DTX_ENABLE_RANDOM_NUMBER_STACK_FILLING)
30- set (trace_build -DTX_ENABLE_EVENT_TRACE)
26+ set (default_build_coverage -DTX_QUEUE_MESSAGE_MAX_SIZE=32 )
27+ set (disable_notify_callbacks_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 - DTX_DISABLE_NOTIFY_CALLBACKS)
28+ set (stack_checking_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 - DTX_ENABLE_STACK_CHECKING)
29+ set (stack_checking_rand_fill_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 - DTX_ENABLE_STACK_CHECKING -DTX_ENABLE_RANDOM_NUMBER_STACK_FILLING)
30+ set (trace_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 - DTX_ENABLE_EVENT_TRACE)
3131
3232add_compile_options (
3333 -m32
Original file line number Diff line number Diff line change @@ -329,6 +329,7 @@ TEST_ENTRY test_control_tests[] =
329329 threadx_queue_basic_four_word_application_define ,
330330 threadx_queue_basic_eight_word_application_define ,
331331 threadx_queue_basic_sixteen_word_application_define ,
332+ threadx_queue_basic_max_message_size_application_define ,
332333 threadx_queue_empty_suspension_application_define ,
333334 threadx_queue_full_suspension_application_define ,
334335 threadx_queue_suspension_timeout_application_define ,
You can’t perform that action at this time.
0 commit comments