26
26
/* APPLICATION INTERFACE DEFINITION RELEASE */
27
27
/* */
28
28
/* tx_api.h PORTABLE C */
29
- /* 6.1.3 */
29
+ /* 6.1.5 */
30
30
/* AUTHOR */
31
31
/* */
32
32
/* William E. Lamie, Microsoft Corporation */
43
43
/* */
44
44
/* DATE NAME DESCRIPTION */
45
45
/* */
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 */
48
48
/* updated product constants, */
49
49
/* added new thread execution */
50
50
/* state TX_PRIORITY_CHANGE, */
51
51
/* added macros for casting */
52
52
/* pointers to ALIGN_TYPE, */
53
53
/* 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 */
55
55
/* increased patch version, */
56
56
/* 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 */
58
58
/* moved TX_THREAD_GET_SYSTEM_ */
59
59
/* STATE to tx_api.h, */
60
60
/* 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 */
62
62
/* increased patch version, */
63
63
/* 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 */
64
69
/* */
65
70
/**************************************************************************/
66
71
@@ -93,7 +98,7 @@ extern "C" {
93
98
#define AZURE_RTOS_THREADX
94
99
#define THREADX_MAJOR_VERSION 6
95
100
#define THREADX_MINOR_VERSION 1
96
- #define THREADX_PATCH_VERSION 3
101
+ #define THREADX_PATCH_VERSION 5
97
102
98
103
/* Define the following symbol for backward compatibility */
99
104
#define EL_PRODUCT_THREADX
@@ -154,7 +159,6 @@ extern "C" {
154
159
155
160
#define TX_SUCCESS ((UINT) 0x00)
156
161
#define TX_DELETED ((UINT) 0x01)
157
- #define TX_NO_MEMORY ((UINT) 0x10)
158
162
#define TX_POOL_ERROR ((UINT) 0x02)
159
163
#define TX_PTR_ERROR ((UINT) 0x03)
160
164
#define TX_WAIT_ERROR ((UINT) 0x04)
@@ -169,6 +173,7 @@ extern "C" {
169
173
#define TX_NO_INSTANCE ((UINT) 0x0D)
170
174
#define TX_THREAD_ERROR ((UINT) 0x0E)
171
175
#define TX_PRIORITY_ERROR ((UINT) 0x0F)
176
+ #define TX_NO_MEMORY ((UINT) 0x10)
172
177
#define TX_START_ERROR ((UINT) 0x10)
173
178
#define TX_DELETE_ERROR ((UINT) 0x11)
174
179
#define TX_RESUME_ERROR ((UINT) 0x12)
@@ -422,8 +427,10 @@ typedef struct TX_THREAD_STRUCT
422
427
TX_THREAD_EXTENSION_2
423
428
424
429
/* Define a pointer type for FileX extensions. */
430
+ #ifndef TX_NO_FILEX_POINTER
425
431
VOID * tx_thread_filex_ptr ;
426
-
432
+ #endif
433
+
427
434
/* Define the priority inheritance variables. These will be used
428
435
to manage priority inheritance changes applied to this thread
429
436
as a result of mutex get operations. */
@@ -1092,7 +1099,6 @@ UINT _tx_trace_interrupt_control(UINT new_posture);
1092
1099
1093
1100
#ifdef TX_ENABLE_MULTI_ERROR_CHECKING
1094
1101
1095
-
1096
1102
/* Services with MULTI runtime error checking ThreadX. */
1097
1103
1098
1104
#define tx_block_allocate _txr_block_allocate
@@ -1790,7 +1796,6 @@ VOID _tx_misra_user_timer_pointer_get(TX_TIMER_INTERNAL *inte
1790
1796
VOID _tx_misra_thread_stack_check (TX_THREAD * thread_ptr , VOID * * highest_stack );
1791
1797
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 );
1792
1798
UINT _tx_misra_always_true (void );
1793
-
1794
1799
UCHAR * * _tx_misra_indirect_void_to_uchar_pointer_convert (VOID * * pointer );
1795
1800
UCHAR * * _tx_misra_uchar_to_indirect_uchar_pointer_convert (UCHAR * pointer );
1796
1801
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
1823
1828
VOID _tx_misra_thread_not_used (TX_THREAD * thread_ptr );
1824
1829
VOID _tx_misra_thread_entry_exit_notify_not_used (VOID (* thread_entry_exit_notify )(TX_THREAD * notify_thread_ptr , UINT id ));
1825
1830
1826
-
1827
1831
#define TX_MEMSET (a ,b ,c ) _tx_misra_memset((a), (UINT) (b), (UINT) (c))
1828
1832
#define TX_UCHAR_POINTER_ADD (a ,b ) _tx_misra_uchar_pointer_add((UCHAR *) (a), (ULONG) (b))
1829
1833
#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
1842
1846
#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));
1843
1847
#endif
1844
1848
#define TX_LOOP_FOREVER (_tx_misra_always_true() == TX_TRUE)
1845
-
1846
-
1847
1849
#define TX_INDIRECT_VOID_TO_UCHAR_POINTER_CONVERT (a ) _tx_misra_indirect_void_to_uchar_pointer_convert((a))
1848
1850
#define TX_UCHAR_TO_INDIRECT_UCHAR_POINTER_CONVERT (a ) _tx_misra_uchar_to_indirect_uchar_pointer_convert((a))
1849
1851
#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
1879
1881
#define TX_THREAD_NOT_USED (a ) _tx_misra_thread_not_used((a))
1880
1882
#define TX_THREAD_ENTRY_EXIT_NOTIFY_NOT_USED (a ) _tx_misra_thread_entry_exit_notify_not_used((a))
1881
1883
1882
-
1883
1884
#else
1884
1885
1885
1886
/* 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
1908
1909
(b) = (TX_TIMER *) working_ptr; \
1909
1910
}
1910
1911
#define TX_LOOP_FOREVER ((UINT) 1)
1911
-
1912
-
1913
1912
#define TX_INDIRECT_VOID_TO_UCHAR_POINTER_CONVERT (a ) ((UCHAR **) ((VOID *) (a)))
1914
1913
#define TX_UCHAR_TO_INDIRECT_UCHAR_POINTER_CONVERT (a ) ((UCHAR **) ((VOID *) (a)))
1915
1914
#define TX_BLOCK_POOL_TO_UCHAR_POINTER_CONVERT (a ) ((UCHAR *) ((VOID *) (a)))
0 commit comments