diff options
| author | Yuxin Zhou <[email protected]> | 2021-03-05 05:38:33 +0000 |
|---|---|---|
| committer | Yuxin Zhou <[email protected]> | 2021-03-05 05:38:33 +0000 |
| commit | 10a7932b9d8a9f6f36523cb2f6edf13aa8dee6be (patch) | |
| tree | 87461e5468fb0b4d1416e39fdbc51dceb5ffa2be /common/inc | |
| parent | 32e3b3b25f4b17ff51ce8a6bad8d9eb32729a0f6 (diff) | |
Release 6.1.5v6.1.5_rel
Diffstat (limited to 'common/inc')
| -rw-r--r-- | common/inc/tx_api.h | 33 | ||||
| -rw-r--r-- | common/inc/tx_user_sample.h | 21 |
2 files changed, 34 insertions, 20 deletions
diff --git a/common/inc/tx_api.h b/common/inc/tx_api.h index 140e4cc2..bed139cd 100644 --- a/common/inc/tx_api.h +++ b/common/inc/tx_api.h @@ -26,7 +26,7 @@ /* APPLICATION INTERFACE DEFINITION RELEASE */ /* */ /* tx_api.h PORTABLE C */ -/* 6.1.3 */ +/* 6.1.5 */ /* AUTHOR */ /* */ /* William E. Lamie, Microsoft Corporation */ @@ -43,24 +43,29 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* 05-19-2020 William E. Lamie Initial Version 6.0 */ -/* 09-30-2020 William E. Lamie Modified comment(s), and */ +/* 05-19-2020 William E. Lamie Initial Version 6.0 */ +/* 09-30-2020 William E. Lamie Modified comment(s), and */ /* updated product constants, */ /* added new thread execution */ /* state TX_PRIORITY_CHANGE, */ /* added macros for casting */ /* pointers to ALIGN_TYPE, */ /* resulting in version 6.1 */ -/* 10-16-2020 William E. Lamie Modified comment(s), and */ +/* 10-16-2020 William E. Lamie Modified comment(s), and */ /* increased patch version, */ /* resulting in version 6.1.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), and */ +/* 11-09-2020 Yuxin Zhou Modified comment(s), and */ /* moved TX_THREAD_GET_SYSTEM_ */ /* STATE to tx_api.h, */ /* resulting in version 6.1.2 */ -/* 12-31-2020 William E. Lamie Modified comment(s), and */ +/* 12-31-2020 William E. Lamie Modified comment(s), and */ /* increased patch version, */ /* resulting in version 6.1.3 */ +/* 03-02-2021 Scott Larson Modified comment(s), and */ +/* order defines numerically, */ +/* add option to remove FileX */ +/* pointer, */ +/* resulting in version 6.1.5 */ /* */ /**************************************************************************/ @@ -93,7 +98,7 @@ extern "C" { #define AZURE_RTOS_THREADX #define THREADX_MAJOR_VERSION 6 #define THREADX_MINOR_VERSION 1 -#define THREADX_PATCH_VERSION 3 +#define THREADX_PATCH_VERSION 5 /* Define the following symbol for backward compatibility */ #define EL_PRODUCT_THREADX @@ -154,7 +159,6 @@ extern "C" { #define TX_SUCCESS ((UINT) 0x00) #define TX_DELETED ((UINT) 0x01) -#define TX_NO_MEMORY ((UINT) 0x10) #define TX_POOL_ERROR ((UINT) 0x02) #define TX_PTR_ERROR ((UINT) 0x03) #define TX_WAIT_ERROR ((UINT) 0x04) @@ -169,6 +173,7 @@ extern "C" { #define TX_NO_INSTANCE ((UINT) 0x0D) #define TX_THREAD_ERROR ((UINT) 0x0E) #define TX_PRIORITY_ERROR ((UINT) 0x0F) +#define TX_NO_MEMORY ((UINT) 0x10) #define TX_START_ERROR ((UINT) 0x10) #define TX_DELETE_ERROR ((UINT) 0x11) #define TX_RESUME_ERROR ((UINT) 0x12) @@ -422,8 +427,10 @@ typedef struct TX_THREAD_STRUCT TX_THREAD_EXTENSION_2 /* Define a pointer type for FileX extensions. */ +#ifndef TX_NO_FILEX_POINTER VOID *tx_thread_filex_ptr; - +#endif + /* Define the priority inheritance variables. These will be used to manage priority inheritance changes applied to this thread as a result of mutex get operations. */ @@ -1092,7 +1099,6 @@ UINT _tx_trace_interrupt_control(UINT new_posture); #ifdef TX_ENABLE_MULTI_ERROR_CHECKING - /* Services with MULTI runtime error checking ThreadX. */ #define tx_block_allocate _txr_block_allocate @@ -1790,7 +1796,6 @@ VOID _tx_misra_user_timer_pointer_get(TX_TIMER_INTERNAL *inte VOID _tx_misra_thread_stack_check(TX_THREAD *thread_ptr, VOID **highest_stack); VOID _tx_misra_trace_event_insert(ULONG event_id, VOID *info_field_1, ULONG info_field_2, ULONG info_field_3, ULONG info_field_4, ULONG filter, ULONG time_stamp); UINT _tx_misra_always_true(void); - UCHAR **_tx_misra_indirect_void_to_uchar_pointer_convert(VOID **pointer); UCHAR **_tx_misra_uchar_to_indirect_uchar_pointer_convert(UCHAR *pointer); UCHAR *_tx_misra_block_pool_to_uchar_pointer_convert(TX_BLOCK_POOL *pool); @@ -1823,7 +1828,6 @@ VOID _tx_misra_semaphore_put_notify_not_used(VOID (*semaphore VOID _tx_misra_thread_not_used(TX_THREAD *thread_ptr); VOID _tx_misra_thread_entry_exit_notify_not_used(VOID (*thread_entry_exit_notify)(TX_THREAD *notify_thread_ptr, UINT id)); - #define TX_MEMSET(a,b,c) _tx_misra_memset((a), (UINT) (b), (UINT) (c)) #define TX_UCHAR_POINTER_ADD(a,b) _tx_misra_uchar_pointer_add((UCHAR *) (a), (ULONG) (b)) #define TX_UCHAR_POINTER_SUB(a,b) _tx_misra_uchar_pointer_sub((UCHAR *) (a), (ULONG) (b)) @@ -1842,8 +1846,6 @@ VOID _tx_misra_thread_entry_exit_notify_not_used(VOID (*threa #define TX_TRACE_IN_LINE_INSERT(i,a,b,c,d,e) _tx_misra_trace_event_insert((ULONG) (i), (VOID *) (a), (ULONG) (b), (ULONG) (c), (ULONG) (d), (ULONG) (e), ((ULONG) TX_TRACE_TIME_SOURCE)); #endif #define TX_LOOP_FOREVER (_tx_misra_always_true() == TX_TRUE) - - #define TX_INDIRECT_VOID_TO_UCHAR_POINTER_CONVERT(a) _tx_misra_indirect_void_to_uchar_pointer_convert((a)) #define TX_UCHAR_TO_INDIRECT_UCHAR_POINTER_CONVERT(a) _tx_misra_uchar_to_indirect_uchar_pointer_convert((a)) #define TX_BLOCK_POOL_TO_UCHAR_POINTER_CONVERT(a) _tx_misra_block_pool_to_uchar_pointer_convert((a)) @@ -1879,7 +1881,6 @@ VOID _tx_misra_thread_entry_exit_notify_not_used(VOID (*threa #define TX_THREAD_NOT_USED(a) _tx_misra_thread_not_used((a)) #define TX_THREAD_ENTRY_EXIT_NOTIFY_NOT_USED(a) _tx_misra_thread_entry_exit_notify_not_used((a)) - #else /* Define the TX_MEMSET macro to the standard library function, if not already defined. */ @@ -1908,8 +1909,6 @@ VOID _tx_misra_thread_entry_exit_notify_not_used(VOID (*threa (b) = (TX_TIMER *) working_ptr; \ } #define TX_LOOP_FOREVER ((UINT) 1) - - #define TX_INDIRECT_VOID_TO_UCHAR_POINTER_CONVERT(a) ((UCHAR **) ((VOID *) (a))) #define TX_UCHAR_TO_INDIRECT_UCHAR_POINTER_CONVERT(a) ((UCHAR **) ((VOID *) (a))) #define TX_BLOCK_POOL_TO_UCHAR_POINTER_CONVERT(a) ((UCHAR *) ((VOID *) (a))) diff --git a/common/inc/tx_user_sample.h b/common/inc/tx_user_sample.h index 113d189f..07ac0070 100644 --- a/common/inc/tx_user_sample.h +++ b/common/inc/tx_user_sample.h @@ -26,7 +26,7 @@ /* PORT SPECIFIC C INFORMATION RELEASE */ /* */ /* tx_user.h PORTABLE C */ -/* 6.1 */ +/* 6.1.5 */ /* */ /* AUTHOR */ /* */ @@ -44,9 +44,13 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* 05-19-2020 William E. Lamie Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ +/* 05-19-2020 William E. Lamie Initial Version 6.0 */ +/* 09-30-2020 Yuxin Zhou Modified comment(s), */ /* resulting in version 6.1 */ +/* 03-02-2021 Scott Larson Modified comment(s), */ +/* added option to remove */ +/* FileX pointer, */ +/* resulting in version 6.1.5 */ /* */ /**************************************************************************/ @@ -76,6 +80,7 @@ TX_DISABLE_PREEMPTION_THRESHOLD TX_DISABLE_REDUNDANT_CLEARING TX_DISABLE_NOTIFY_CALLBACKS + TX_NO_FILEX_POINTER TX_NOT_INTERRUPTABLE TX_TIMER_PROCESS_IN_ISR @@ -98,6 +103,16 @@ #define TX_TIMER_THREAD_PRIORITY ???? */ +/* Determine if there is a FileX pointer in the thread control block. + By default, the pointer is there for legacy/backwards compatibility. + The pointer must also be there for applications using FileX. + Define this to save space in the thread control block. +*/ + +/* +#define TX_NO_FILEX_POINTER +*/ + /* Determine if timer expirations (application timers, timeouts, and tx_thread_sleep calls should be processed within the a system timer thread or directly in the timer ISR. By default, the timer thread is used. When the following is defined, the timer expiration |
