2626/* APPLICATION INTERFACE DEFINITION RELEASE */
2727/* */
2828/* tx_api.h PORTABLE C */
29- /* 6.1.3 */
29+ /* 6.1.5 */
3030/* AUTHOR */
3131/* */
3232/* William E. Lamie, Microsoft Corporation */
4343/* */
4444/* DATE NAME DESCRIPTION */
4545/* */
46- /* 05-19-2020 William E. Lamie Initial Version 6.0 */
47- /* 09-30-2020 William E. Lamie Modified comment(s), and */
46+ /* 05-19-2020 William E. Lamie Initial Version 6.0 */
47+ /* 09-30-2020 William E. Lamie Modified comment(s), and */
4848/* updated product constants, */
4949/* added new thread execution */
5050/* state TX_PRIORITY_CHANGE, */
5151/* added macros for casting */
5252/* pointers to ALIGN_TYPE, */
5353/* resulting in version 6.1 */
54- /* 10-16-2020 William E. Lamie Modified comment(s), and */
54+ /* 10-16-2020 William E. Lamie Modified comment(s), and */
5555/* increased patch version, */
5656/* resulting in version 6.1.1 */
57- /* 11-09-2020 Yuxin Zhou Modified comment(s), and */
57+ /* 11-09-2020 Yuxin Zhou Modified comment(s), and */
5858/* moved TX_THREAD_GET_SYSTEM_ */
5959/* STATE to tx_api.h, */
6060/* resulting in version 6.1.2 */
61- /* 12-31-2020 William E. Lamie Modified comment(s), and */
61+ /* 12-31-2020 William E. Lamie Modified comment(s), and */
6262/* increased patch version, */
6363/* resulting in version 6.1.3 */
64+ /* 03-02-2021 Scott Larson Modified comment(s), and */
65+ /* order defines numerically, */
66+ /* add option to remove FileX */
67+ /* pointer, */
68+ /* resulting in version 6.1.5 */
6469/* */
6570/**************************************************************************/
6671
@@ -93,7 +98,7 @@ extern "C" {
9398#define AZURE_RTOS_THREADX
9499#define THREADX_MAJOR_VERSION 6
95100#define THREADX_MINOR_VERSION 1
96- #define THREADX_PATCH_VERSION 3
101+ #define THREADX_PATCH_VERSION 5
97102
98103/* Define the following symbol for backward compatibility */
99104#define EL_PRODUCT_THREADX
@@ -154,7 +159,6 @@ extern "C" {
154159
155160#define TX_SUCCESS ((UINT) 0x00)
156161#define TX_DELETED ((UINT) 0x01)
157- #define TX_NO_MEMORY ((UINT) 0x10)
158162#define TX_POOL_ERROR ((UINT) 0x02)
159163#define TX_PTR_ERROR ((UINT) 0x03)
160164#define TX_WAIT_ERROR ((UINT) 0x04)
@@ -169,6 +173,7 @@ extern "C" {
169173#define TX_NO_INSTANCE ((UINT) 0x0D)
170174#define TX_THREAD_ERROR ((UINT) 0x0E)
171175#define TX_PRIORITY_ERROR ((UINT) 0x0F)
176+ #define TX_NO_MEMORY ((UINT) 0x10)
172177#define TX_START_ERROR ((UINT) 0x10)
173178#define TX_DELETE_ERROR ((UINT) 0x11)
174179#define TX_RESUME_ERROR ((UINT) 0x12)
@@ -422,8 +427,10 @@ typedef struct TX_THREAD_STRUCT
422427 TX_THREAD_EXTENSION_2
423428
424429 /* Define a pointer type for FileX extensions. */
430+ #ifndef TX_NO_FILEX_POINTER
425431 VOID * tx_thread_filex_ptr ;
426-
432+ #endif
433+
427434 /* Define the priority inheritance variables. These will be used
428435 to manage priority inheritance changes applied to this thread
429436 as a result of mutex get operations. */
@@ -1092,7 +1099,6 @@ UINT _tx_trace_interrupt_control(UINT new_posture);
10921099
10931100#ifdef TX_ENABLE_MULTI_ERROR_CHECKING
10941101
1095-
10961102/* Services with MULTI runtime error checking ThreadX. */
10971103
10981104#define tx_block_allocate _txr_block_allocate
@@ -1790,7 +1796,6 @@ VOID _tx_misra_user_timer_pointer_get(TX_TIMER_INTERNAL *inte
17901796VOID _tx_misra_thread_stack_check (TX_THREAD * thread_ptr , VOID * * highest_stack );
17911797VOID _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 );
17921798UINT _tx_misra_always_true (void );
1793-
17941799UCHAR * * _tx_misra_indirect_void_to_uchar_pointer_convert (VOID * * pointer );
17951800UCHAR * * _tx_misra_uchar_to_indirect_uchar_pointer_convert (UCHAR * pointer );
17961801UCHAR * _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
18231828VOID _tx_misra_thread_not_used (TX_THREAD * thread_ptr );
18241829VOID _tx_misra_thread_entry_exit_notify_not_used (VOID (* thread_entry_exit_notify )(TX_THREAD * notify_thread_ptr , UINT id ));
18251830
1826-
18271831#define TX_MEMSET (a ,b ,c ) _tx_misra_memset((a), (UINT) (b), (UINT) (c))
18281832#define TX_UCHAR_POINTER_ADD (a ,b ) _tx_misra_uchar_pointer_add((UCHAR *) (a), (ULONG) (b))
18291833#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
18421846#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));
18431847#endif
18441848#define TX_LOOP_FOREVER (_tx_misra_always_true() == TX_TRUE)
1845-
1846-
18471849#define TX_INDIRECT_VOID_TO_UCHAR_POINTER_CONVERT (a ) _tx_misra_indirect_void_to_uchar_pointer_convert((a))
18481850#define TX_UCHAR_TO_INDIRECT_UCHAR_POINTER_CONVERT (a ) _tx_misra_uchar_to_indirect_uchar_pointer_convert((a))
18491851#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
18791881#define TX_THREAD_NOT_USED (a ) _tx_misra_thread_not_used((a))
18801882#define TX_THREAD_ENTRY_EXIT_NOTIFY_NOT_USED (a ) _tx_misra_thread_entry_exit_notify_not_used((a))
18811883
1882-
18831884#else
18841885
18851886/* 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
19081909 (b) = (TX_TIMER *) working_ptr; \
19091910 }
19101911#define TX_LOOP_FOREVER ((UINT) 1)
1911-
1912-
19131912#define TX_INDIRECT_VOID_TO_UCHAR_POINTER_CONVERT (a ) ((UCHAR **) ((VOID *) (a)))
19141913#define TX_UCHAR_TO_INDIRECT_UCHAR_POINTER_CONVERT (a ) ((UCHAR **) ((VOID *) (a)))
19151914#define TX_BLOCK_POOL_TO_UCHAR_POINTER_CONVERT (a ) ((UCHAR *) ((VOID *) (a)))
0 commit comments