|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
ThreadX interface for C++ API of SuperTinyKernel RTOS. More...
Classes | |
| struct | TX_THREAD_STRUCT |
| struct | TX_MUTEX_STRUCT |
| struct | TX_SEMAPHORE_STRUCT |
| struct | TX_EVENT_FLAGS_GROUP_STRUCT |
| struct | TX_QUEUE_STRUCT |
| struct | TX_BLOCK_POOL_STRUCT |
| struct | TX_BYTE_POOL_STRUCT |
| struct | TX_TIMER_STRUCT |
Macros | |
| #define | TX_TIMER_TICKS_PER_SECOND (1000UL) |
| #define | TX_MAX_PRIORITIES (32U) |
| #define | TX_STK_MAX_THREADS (16U) |
| #define | TX_TIMER_THREAD_PRIORITY (0U) |
| #define | TX_TIMER_THREAD_STACK_SIZE (1024U) /* kept for source compatibility, see above */ |
| #define | TX_STK_THREAD_STORAGE_WORDS (24U) |
| #define | TX_STK_MUTEX_STORAGE_WORDS (16U) |
| #define | TX_STK_SEMAPHORE_STORAGE_WORDS (16U) |
| #define | TX_STK_QUEUE_STORAGE_WORDS (48U) |
| #define | TX_STK_BLOCK_POOL_STORAGE_WORDS (32U) |
| #define | TX_STK_BYTE_POOL_STORAGE_WORDS (26U) |
| #define | TX_STK_EVENT_FLAGS_STORAGE_DWORDS (16U) |
| #define | TX_STK_TIMER_STORAGE_DWORDS (8U) |
| #define | AZURE_RTOS_THREADX |
| #define | THREADX_MAJOR_VERSION 6 |
| #define | THREADX_MINOR_VERSION 5 |
| #define | THREADX_PATCH_VERSION 2 |
| #define | THREADX_BUILD_VERSION 202603 |
| #define | TX_STK_WRAPPER_NAME "ThreadX API on SuperTinyKernel" |
| #define | VOID void |
| #define | TX_NAME_CONST const |
| #define | TX_NO_WAIT ((ULONG) 0) |
| #define | TX_WAIT_FOREVER ((ULONG) 0xFFFFFFFFUL) |
| #define | TX_AND ((UINT) 2) |
| #define | TX_AND_CLEAR ((UINT) 3) |
| #define | TX_OR ((UINT) 0) |
| #define | TX_OR_CLEAR ((UINT) 1) |
| #define | TX_1_ULONG ((UINT) 1) |
| #define | TX_2_ULONG ((UINT) 2) |
| #define | TX_4_ULONG ((UINT) 4) |
| #define | TX_8_ULONG ((UINT) 8) |
| #define | TX_16_ULONG ((UINT) 16) |
| #define | TX_NO_TIME_SLICE ((ULONG) 0) |
| #define | TX_AUTO_START ((UINT) 1) |
| #define | TX_DONT_START ((UINT) 0) |
| #define | TX_AUTO_ACTIVATE ((UINT) 1) |
| #define | TX_NO_ACTIVATE ((UINT) 0) |
| #define | TX_TRUE ((UINT) 1) |
| #define | TX_FALSE ((UINT) 0) |
| #define | TX_NULL ((void *) 0) |
| #define | TX_INHERIT ((UINT) 1) |
| #define | TX_NO_INHERIT ((UINT) 0) |
| #define | TX_THREAD_ENTRY ((UINT) 0) |
| #define | TX_THREAD_EXIT ((UINT) 1) |
| #define | TX_NO_SUSPENSIONS ((UINT) 0) |
| #define | TX_NO_MESSAGES ((UINT) 0) |
| #define | TX_EMPTY ((ULONG) 0) |
| #define | TX_CLEAR_ID ((ULONG) 0) |
| #define | TX_INT_DISABLE ((UINT) 1) |
| #define | TX_INT_ENABLE ((UINT) 0) |
| #define | TX_READY ((UINT) 0) |
| #define | TX_COMPLETED ((UINT) 1) |
| #define | TX_TERMINATED ((UINT) 2) |
| #define | TX_SUSPENDED ((UINT) 3) |
| #define | TX_SLEEP ((UINT) 4) |
| #define | TX_QUEUE_SUSP ((UINT) 5) |
| #define | TX_SEMAPHORE_SUSP ((UINT) 6) |
| #define | TX_EVENT_FLAG ((UINT) 7) |
| #define | TX_BLOCK_MEMORY ((UINT) 8) |
| #define | TX_BYTE_MEMORY ((UINT) 9) |
| #define | TX_IO_DRIVER ((UINT) 10) |
| #define | TX_FILE ((UINT) 11) |
| #define | TX_TCP_IP ((UINT) 12) |
| #define | TX_MUTEX_SUSP ((UINT) 13) |
| #define | TX_PRIORITY_CHANGE ((UINT) 14) |
| #define | TX_SUCCESS ((UINT) 0x00) |
| #define | TX_DELETED ((UINT) 0x01) |
| #define | TX_POOL_ERROR ((UINT) 0x02) |
| #define | TX_PTR_ERROR ((UINT) 0x03) |
| #define | TX_WAIT_ERROR ((UINT) 0x04) |
| #define | TX_SIZE_ERROR ((UINT) 0x05) |
| #define | TX_GROUP_ERROR ((UINT) 0x06) |
| #define | TX_NO_EVENTS ((UINT) 0x07) |
| #define | TX_OPTION_ERROR ((UINT) 0x08) |
| #define | TX_QUEUE_ERROR ((UINT) 0x09) |
| #define | TX_QUEUE_EMPTY ((UINT) 0x0A) |
| #define | TX_QUEUE_FULL ((UINT) 0x0B) |
| #define | TX_SEMAPHORE_ERROR ((UINT) 0x0C) |
| #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) |
| #define | TX_CALLER_ERROR ((UINT) 0x13) |
| #define | TX_SUSPEND_ERROR ((UINT) 0x14) |
| #define | TX_TIMER_ERROR ((UINT) 0x15) |
| #define | TX_TICK_ERROR ((UINT) 0x16) |
| #define | TX_ACTIVATE_ERROR ((UINT) 0x17) |
| #define | TX_THRESH_ERROR ((UINT) 0x18) |
| #define | TX_SUSPEND_LIFTED ((UINT) 0x19) |
| #define | TX_WAIT_ABORTED ((UINT) 0x1A) |
| #define | TX_WAIT_ABORT_ERROR ((UINT) 0x1B) |
| #define | TX_MUTEX_ERROR ((UINT) 0x1C) |
| #define | TX_NOT_AVAILABLE ((UINT) 0x1D) |
| #define | TX_NOT_OWNED ((UINT) 0x1E) |
| #define | TX_INHERIT_ERROR ((UINT) 0x1F) |
| #define | TX_NOT_DONE ((UINT) 0x20) |
| #define | TX_CEILING_EXCEEDED ((UINT) 0x21) |
| #define | TX_INVALID_PRIORITY ((UINT) 0x22) |
| #define | TX_FEATURE_NOT_ENABLED ((UINT) 0xFF) |
| #define | TX_THREAD_ID ((ULONG) 0x54485244UL) |
| #define | TX_MUTEX_ID ((ULONG) 0x4D555445UL) |
| #define | TX_QUEUE_ID ((ULONG) 0x51554555UL) |
| #define | TX_SEMAPHORE_ID ((ULONG) 0x53454D41UL) |
| #define | TX_EVENT_FLAGS_ID ((ULONG) 0x4556454EUL) |
| #define | TX_BLOCK_POOL_ID ((ULONG) 0x424C4F43UL) |
| #define | TX_BYTE_POOL_ID ((ULONG) 0x42595445UL) |
| #define | TX_TIMER_ID ((ULONG) 0x54494D52UL) |
| #define | TX_DISABLE { unsigned int tx_stk_old_posture_ = tx_interrupt_control(TX_INT_DISABLE); |
| #define | TX_RESTORE (void) tx_interrupt_control(tx_stk_old_posture_); } |
Typedefs | |
| typedef char | CHAR |
| typedef unsigned char | UCHAR |
| typedef int | INT |
| typedef unsigned int | UINT |
| typedef int | LONG |
| typedef unsigned int | ULONG |
| typedef unsigned long long | ULONG64 |
| typedef short | SHORT |
| typedef unsigned short | USHORT |
| typedef uintptr_t | ALIGN_TYPE |
| typedef struct TX_THREAD_STRUCT | TX_THREAD |
| typedef struct TX_MUTEX_STRUCT | TX_MUTEX |
| typedef struct TX_SEMAPHORE_STRUCT | TX_SEMAPHORE |
| typedef struct TX_EVENT_FLAGS_GROUP_STRUCT | TX_EVENT_FLAGS_GROUP |
| typedef struct TX_QUEUE_STRUCT | TX_QUEUE |
| typedef struct TX_BLOCK_POOL_STRUCT | TX_BLOCK_POOL |
| typedef struct TX_BYTE_POOL_STRUCT | TX_BYTE_POOL |
| typedef struct TX_TIMER_STRUCT | TX_TIMER |
Functions | |
| void | tx_application_define (void *first_unused_memory) |
| void | tx_kernel_enter (void) |
| UINT | tx_interrupt_control (UINT new_posture) |
| ULONG | tx_time_get (void) |
| void | tx_time_set (ULONG new_time) |
| UINT | tx_thread_create (TX_THREAD *thread_ptr, const CHAR *name_ptr, void(*entry_function)(ULONG entry_input), ULONG entry_input, void *stack_start, ULONG stack_size, UINT priority, UINT preempt_threshold, ULONG time_slice, UINT auto_start) |
| UINT | tx_thread_delete (TX_THREAD *thread_ptr) |
| UINT | tx_thread_entry_exit_notify (TX_THREAD *thread_ptr, void(*thread_entry_exit_notify)(TX_THREAD *notify_thread_ptr, UINT type)) |
| TX_THREAD * | tx_thread_identify (void) |
| UINT | tx_thread_info_get (TX_THREAD *thread_ptr, const CHAR **name, UINT *state, ULONG *run_count, UINT *priority, UINT *preemption_threshold, ULONG *time_slice, TX_THREAD **next_thread, TX_THREAD **next_suspended_thread) |
| UINT | tx_thread_preemption_change (TX_THREAD *thread_ptr, UINT new_threshold, UINT *old_threshold) |
| UINT | tx_thread_priority_change (TX_THREAD *thread_ptr, UINT new_priority, UINT *old_priority) |
| void | tx_thread_relinquish (void) |
| UINT | tx_thread_reset (TX_THREAD *thread_ptr) |
| UINT | tx_thread_resume (TX_THREAD *thread_ptr) |
| UINT | tx_thread_sleep (ULONG timer_ticks) |
| UINT | tx_thread_stack_error_notify (void(*stack_error_handler)(TX_THREAD *thread_ptr)) |
| UINT | tx_thread_suspend (TX_THREAD *thread_ptr) |
| UINT | tx_thread_terminate (TX_THREAD *thread_ptr) |
| UINT | tx_thread_time_slice_change (TX_THREAD *thread_ptr, ULONG new_time_slice, ULONG *old_time_slice) |
| UINT | tx_thread_wait_abort (TX_THREAD *thread_ptr) |
| UINT | tx_mutex_create (TX_MUTEX *mutex_ptr, const CHAR *name_ptr, UINT inherit) |
| UINT | tx_mutex_delete (TX_MUTEX *mutex_ptr) |
| UINT | tx_mutex_get (TX_MUTEX *mutex_ptr, ULONG wait_option) |
| UINT | tx_mutex_put (TX_MUTEX *mutex_ptr) |
| UINT | tx_mutex_info_get (TX_MUTEX *mutex_ptr, const CHAR **name, ULONG *count, TX_THREAD **owner, TX_THREAD **first_suspended, ULONG *suspended_count, TX_MUTEX **next_mutex) |
| UINT | tx_mutex_prioritize (TX_MUTEX *mutex_ptr) |
| UINT | tx_semaphore_create (TX_SEMAPHORE *semaphore_ptr, const CHAR *name_ptr, ULONG initial_count) |
| UINT | tx_semaphore_delete (TX_SEMAPHORE *semaphore_ptr) |
| UINT | tx_semaphore_get (TX_SEMAPHORE *semaphore_ptr, ULONG wait_option) |
| UINT | tx_semaphore_put (TX_SEMAPHORE *semaphore_ptr) |
| UINT | tx_semaphore_ceiling_put (TX_SEMAPHORE *semaphore_ptr, ULONG ceiling) |
| UINT | tx_semaphore_info_get (TX_SEMAPHORE *semaphore_ptr, const CHAR **name, ULONG *current_value, TX_THREAD **first_suspended, ULONG *suspended_count, TX_SEMAPHORE **next_semaphore) |
| UINT | tx_semaphore_prioritize (TX_SEMAPHORE *semaphore_ptr) |
| UINT | tx_semaphore_put_notify (TX_SEMAPHORE *semaphore_ptr, void(*semaphore_put_notify)(TX_SEMAPHORE *notify_semaphore_ptr)) |
| UINT | tx_event_flags_create (TX_EVENT_FLAGS_GROUP *group_ptr, const CHAR *name_ptr) |
| UINT | tx_event_flags_delete (TX_EVENT_FLAGS_GROUP *group_ptr) |
| UINT | tx_event_flags_get (TX_EVENT_FLAGS_GROUP *group_ptr, ULONG requested_flags, UINT get_option, ULONG *actual_flags_ptr, ULONG wait_option) |
| UINT | tx_event_flags_set (TX_EVENT_FLAGS_GROUP *group_ptr, ULONG flags_to_set, UINT set_option) |
| UINT | tx_event_flags_info_get (TX_EVENT_FLAGS_GROUP *group_ptr, const CHAR **name, ULONG *current_flags, TX_THREAD **first_suspended, ULONG *suspended_count, TX_EVENT_FLAGS_GROUP **next_group) |
| UINT | tx_event_flags_set_notify (TX_EVENT_FLAGS_GROUP *group_ptr, void(*events_set_notify)(TX_EVENT_FLAGS_GROUP *notify_group_ptr)) |
| UINT | tx_queue_create (TX_QUEUE *queue_ptr, const CHAR *name_ptr, UINT message_size, void *queue_start, ULONG queue_size) |
| UINT | tx_queue_delete (TX_QUEUE *queue_ptr) |
| UINT | tx_queue_flush (TX_QUEUE *queue_ptr) |
| UINT | tx_queue_info_get (TX_QUEUE *queue_ptr, const CHAR **name, ULONG *enqueued, ULONG *available_storage, TX_THREAD **first_suspended, ULONG *suspended_count, TX_QUEUE **next_queue) |
| UINT | tx_queue_prioritize (TX_QUEUE *queue_ptr) |
| UINT | tx_queue_receive (TX_QUEUE *queue_ptr, void *destination_ptr, ULONG wait_option) |
| UINT | tx_queue_send (TX_QUEUE *queue_ptr, void *source_ptr, ULONG wait_option) |
| UINT | tx_queue_front_send (TX_QUEUE *queue_ptr, void *source_ptr, ULONG wait_option) |
| UINT | tx_queue_send_notify (TX_QUEUE *queue_ptr, void(*queue_send_notify)(TX_QUEUE *notify_queue_ptr)) |
| UINT | tx_block_pool_create (TX_BLOCK_POOL *pool_ptr, const CHAR *name_ptr, ULONG block_size, void *pool_start, ULONG pool_size) |
| UINT | tx_block_pool_delete (TX_BLOCK_POOL *pool_ptr) |
| UINT | tx_block_allocate (TX_BLOCK_POOL *pool_ptr, void **block_ptr, ULONG wait_option) |
| UINT | tx_block_release (void *block_ptr) |
| UINT | tx_block_pool_info_get (TX_BLOCK_POOL *pool_ptr, const CHAR **name, ULONG *available_blocks, ULONG *total_blocks, TX_THREAD **first_suspended, ULONG *suspended_count, TX_BLOCK_POOL **next_pool) |
| UINT | tx_block_pool_prioritize (TX_BLOCK_POOL *pool_ptr) |
| UINT | tx_byte_pool_create (TX_BYTE_POOL *pool_ptr, const CHAR *name_ptr, void *pool_start, ULONG pool_size) |
| UINT | tx_byte_pool_delete (TX_BYTE_POOL *pool_ptr) |
| UINT | tx_byte_allocate (TX_BYTE_POOL *pool_ptr, void **memory_ptr, ULONG memory_size, ULONG wait_option) |
| UINT | tx_byte_release (void *memory_ptr) |
| UINT | tx_byte_pool_info_get (TX_BYTE_POOL *pool_ptr, const CHAR **name, ULONG *available_bytes, ULONG *fragments, TX_THREAD **first_suspended, ULONG *suspended_count, TX_BYTE_POOL **next_pool) |
| UINT | tx_byte_pool_prioritize (TX_BYTE_POOL *pool_ptr) |
| UINT | tx_timer_create (TX_TIMER *timer_ptr, const CHAR *name_ptr, void(*expiration_function)(ULONG input), ULONG expiration_input, ULONG initial_ticks, ULONG reschedule_ticks, UINT auto_activate) |
| UINT | tx_timer_delete (TX_TIMER *timer_ptr) |
| UINT | tx_timer_activate (TX_TIMER *timer_ptr) |
| UINT | tx_timer_deactivate (TX_TIMER *timer_ptr) |
| UINT | tx_timer_change (TX_TIMER *timer_ptr, ULONG initial_ticks, ULONG reschedule_ticks) |
| UINT | tx_timer_info_get (TX_TIMER *timer_ptr, const CHAR **name, UINT *active, ULONG *remaining_ticks, ULONG *reschedule_ticks, TX_TIMER **next_timer) |
ThreadX interface for C++ API of SuperTinyKernel RTOS.
This header is a drop-in replacement for ThreadX's tx_api.h: application code written against the standard tx_* C API compiles unchanged, while the implementation (threadx_stk.cpp) maps it onto STK (sched::SwitchStrategyPreemptionThreshold<TX_MAX_PRIORITIES, true> = ThreadX-style priority + preemption-threshold + time-slicing).
The header is plain C (also valid C++). Control blocks are caller-allocated as in ThreadX; the STK objects live in the opaque storage member of each control block (placement-new, no heap).
See README.md in this folder for the full list of differences from native ThreadX.
| #define TX_16_ULONG ((UINT) 16) |
Definition at line 153 of file tx_api.h.
Referenced by tx_queue_create().
| #define TX_1_ULONG ((UINT) 1) |
Definition at line 149 of file tx_api.h.
Referenced by tx_application_define(), and tx_queue_create().
| #define TX_ACTIVATE_ERROR ((UINT) 0x17) |
Definition at line 217 of file tx_api.h.
Referenced by tx_timer_activate(), tx_timer_change(), and tx_timer_create().
| #define TX_AND ((UINT) 2) |
Definition at line 145 of file tx_api.h.
Referenced by tx_event_flags_get(), and tx_event_flags_set().
| #define TX_AND_CLEAR ((UINT) 3) |
Definition at line 146 of file tx_api.h.
Referenced by tx_event_flags_get().
| #define TX_AUTO_ACTIVATE ((UINT) 1) |
Definition at line 157 of file tx_api.h.
Referenced by tx_timer_create().
| #define TX_AUTO_START ((UINT) 1) |
Definition at line 155 of file tx_api.h.
Referenced by app_main(), tx_application_define(), and tx_thread_create().
| #define TX_BLOCK_MEMORY ((UINT) 8) |
Definition at line 184 of file tx_api.h.
Referenced by tx_block_allocate().
| #define TX_BLOCK_POOL_ID ((ULONG) 0x424C4F43UL) |
Definition at line 237 of file tx_api.h.
Referenced by tx_block_pool_create().
| #define TX_BYTE_MEMORY ((UINT) 9) |
Definition at line 185 of file tx_api.h.
Referenced by tx_byte_allocate().
| #define TX_BYTE_POOL_ID ((ULONG) 0x42595445UL) |
Definition at line 238 of file tx_api.h.
Referenced by tx_byte_pool_create().
| #define TX_CALLER_ERROR ((UINT) 0x13) |
Definition at line 213 of file tx_api.h.
Referenced by tx_block_pool_create(), tx_block_pool_delete(), tx_byte_pool_create(), tx_byte_pool_delete(), tx_event_flags_create(), tx_event_flags_delete(), tx_mutex_create(), tx_mutex_delete(), tx_mutex_get(), tx_mutex_put(), tx_queue_create(), tx_queue_delete(), tx_semaphore_create(), tx_semaphore_delete(), tx_thread_create(), tx_thread_delete(), tx_thread_preemption_change(), tx_thread_priority_change(), tx_thread_reset(), tx_thread_sleep(), tx_thread_suspend(), tx_thread_terminate(), tx_thread_time_slice_change(), tx_timer_create(), and tx_timer_delete().
| #define TX_CEILING_EXCEEDED ((UINT) 0x21) |
Definition at line 227 of file tx_api.h.
Referenced by tx_semaphore_ceiling_put(), and tx_semaphore_put().
| #define TX_CLEAR_ID ((ULONG) 0) |
Definition at line 169 of file tx_api.h.
Referenced by tx_block_pool_delete(), tx_byte_pool_delete(), tx_event_flags_delete(), tx_mutex_delete(), tx_queue_delete(), tx_semaphore_delete(), tx_thread_delete(), tx_timer_create(), and tx_timer_delete().
| #define TX_COMPLETED ((UINT) 1) |
Definition at line 177 of file tx_api.h.
Referenced by tx_thread_delete(), tx_thread_reset(), and tx_thread_terminate().
| #define TX_DELETE_ERROR ((UINT) 0x11) |
Definition at line 211 of file tx_api.h.
Referenced by tx_thread_delete().
| #define TX_DISABLE { unsigned int tx_stk_old_posture_ = tx_interrupt_control(TX_INT_DISABLE); |
| #define TX_EVENT_FLAG ((UINT) 7) |
Definition at line 183 of file tx_api.h.
Referenced by tx_event_flags_get().
| #define TX_EVENT_FLAGS_ID ((ULONG) 0x4556454EUL) |
Definition at line 236 of file tx_api.h.
Referenced by tx_event_flags_create().
| #define TX_FALSE ((UINT) 0) |
Definition at line 160 of file tx_api.h.
Referenced by tx_timer_info_get().
| #define TX_FEATURE_NOT_ENABLED ((UINT) 0xFF) |
Definition at line 229 of file tx_api.h.
Referenced by tx_timer_create().
| #define TX_GROUP_ERROR ((UINT) 0x06) |
Definition at line 199 of file tx_api.h.
Referenced by tx_event_flags_create(), tx_event_flags_delete(), tx_event_flags_get(), tx_event_flags_info_get(), tx_event_flags_set(), and tx_event_flags_set_notify().
| #define TX_INHERIT ((UINT) 1) |
Definition at line 162 of file tx_api.h.
Referenced by tx_mutex_create().
| #define TX_INHERIT_ERROR ((UINT) 0x1F) |
Definition at line 225 of file tx_api.h.
Referenced by tx_mutex_create().
| #define TX_INT_DISABLE ((UINT) 1) |
Definition at line 172 of file tx_api.h.
Referenced by tx_interrupt_control().
| #define TX_INT_ENABLE ((UINT) 0) |
Definition at line 173 of file tx_api.h.
Referenced by tx_interrupt_control().
| #define TX_MAX_PRIORITIES (32U) |
Definition at line 55 of file tx_api.h.
Referenced by tx_thread_create(), and tx_thread_priority_change().
| #define TX_MUTEX_ERROR ((UINT) 0x1C) |
Definition at line 222 of file tx_api.h.
Referenced by tx_mutex_create(), tx_mutex_delete(), tx_mutex_get(), tx_mutex_info_get(), tx_mutex_prioritize(), and tx_mutex_put().
| #define TX_MUTEX_ID ((ULONG) 0x4D555445UL) |
Definition at line 233 of file tx_api.h.
Referenced by tx_mutex_create().
| #define TX_MUTEX_SUSP ((UINT) 13) |
Definition at line 189 of file tx_api.h.
Referenced by tx_mutex_get().
| #define TX_NAME_CONST const |
Definition at line 137 of file tx_api.h.
Referenced by tx_block_pool_create(), tx_block_pool_info_get(), tx_byte_pool_create(), tx_byte_pool_info_get(), tx_event_flags_create(), tx_event_flags_info_get(), tx_mutex_create(), tx_mutex_info_get(), tx_queue_create(), tx_queue_info_get(), tx_semaphore_create(), tx_semaphore_info_get(), tx_thread_create(), tx_thread_info_get(), tx_timer_create(), and tx_timer_info_get().
| #define TX_NO_EVENTS ((UINT) 0x07) |
Definition at line 200 of file tx_api.h.
Referenced by tx_event_flags_get().
| #define TX_NO_INHERIT ((UINT) 0) |
Definition at line 163 of file tx_api.h.
Referenced by tx_application_define().
| #define TX_NO_INSTANCE ((UINT) 0x0D) |
Definition at line 206 of file tx_api.h.
Referenced by tx_semaphore_get().
| #define TX_NO_MEMORY ((UINT) 0x10) |
Definition at line 209 of file tx_api.h.
Referenced by tx_block_allocate(), and tx_byte_allocate().
| #define TX_NO_TIME_SLICE ((ULONG) 0) |
Definition at line 154 of file tx_api.h.
Referenced by app_main(), tx_application_define(), and tx_thread_time_slice_change().
| #define TX_NO_WAIT ((ULONG) 0) |
Definition at line 143 of file tx_api.h.
Referenced by tx_application_define().
| #define TX_NOT_AVAILABLE ((UINT) 0x1D) |
Definition at line 223 of file tx_api.h.
Referenced by tx_mutex_get().
| #define TX_NOT_DONE ((UINT) 0x20) |
Definition at line 226 of file tx_api.h.
Referenced by tx_thread_reset().
| #define TX_NOT_OWNED ((UINT) 0x1E) |
Definition at line 224 of file tx_api.h.
Referenced by tx_mutex_put().
| #define TX_NULL ((void *) 0) |
Definition at line 161 of file tx_api.h.
Referenced by tx_application_define().
| #define TX_OPTION_ERROR ((UINT) 0x08) |
Definition at line 201 of file tx_api.h.
Referenced by tx_event_flags_get(), tx_event_flags_set(), and tx_semaphore_ceiling_put().
| #define TX_OR ((UINT) 0) |
Definition at line 147 of file tx_api.h.
Referenced by app_main(), signal_func(), thread_0_entry(), and tx_event_flags_set().
| #define TX_OR_CLEAR ((UINT) 1) |
Definition at line 148 of file tx_api.h.
Referenced by thread_5_entry(), and wait_flag().
| #define TX_POOL_ERROR ((UINT) 0x02) |
Definition at line 195 of file tx_api.h.
Referenced by tx_block_allocate(), tx_block_pool_create(), tx_block_pool_delete(), tx_block_pool_info_get(), tx_block_pool_prioritize(), tx_byte_allocate(), tx_byte_pool_create(), tx_byte_pool_delete(), tx_byte_pool_info_get(), and tx_byte_pool_prioritize().
| #define TX_PRIORITY_ERROR ((UINT) 0x0F) |
Definition at line 208 of file tx_api.h.
Referenced by tx_thread_create(), and tx_thread_priority_change().
| #define TX_PTR_ERROR ((UINT) 0x03) |
Definition at line 196 of file tx_api.h.
Referenced by tx_block_allocate(), tx_block_pool_create(), tx_block_release(), tx_byte_allocate(), tx_byte_pool_create(), tx_byte_release(), tx_event_flags_get(), tx_queue_create(), tx_queue_receive(), tx_thread_create(), tx_thread_preemption_change(), tx_thread_priority_change(), and tx_thread_time_slice_change().
| #define TX_QUEUE_EMPTY ((UINT) 0x0A) |
Definition at line 203 of file tx_api.h.
Referenced by tx_queue_receive().
| #define TX_QUEUE_ERROR ((UINT) 0x09) |
Definition at line 202 of file tx_api.h.
Referenced by tx_queue_create(), tx_queue_delete(), tx_queue_flush(), tx_queue_info_get(), tx_queue_prioritize(), tx_queue_receive(), and tx_queue_send_notify().
| #define TX_QUEUE_ID ((ULONG) 0x51554555UL) |
Definition at line 234 of file tx_api.h.
Referenced by tx_queue_create().
| #define TX_QUEUE_SUSP ((UINT) 5) |
Definition at line 181 of file tx_api.h.
Referenced by tx_queue_receive().
| #define TX_READY ((UINT) 0) |
Definition at line 176 of file tx_api.h.
Referenced by tx_thread_suspend().
| #define TX_RESTORE (void) tx_interrupt_control(tx_stk_old_posture_); } |
| #define TX_RESUME_ERROR ((UINT) 0x12) |
Definition at line 212 of file tx_api.h.
Referenced by tx_thread_resume().
| #define TX_SEMAPHORE_ERROR ((UINT) 0x0C) |
Definition at line 205 of file tx_api.h.
Referenced by tx_semaphore_ceiling_put(), tx_semaphore_create(), tx_semaphore_delete(), tx_semaphore_get(), tx_semaphore_info_get(), tx_semaphore_prioritize(), tx_semaphore_put(), and tx_semaphore_put_notify().
| #define TX_SEMAPHORE_ID ((ULONG) 0x53454D41UL) |
Definition at line 235 of file tx_api.h.
Referenced by tx_semaphore_create().
| #define TX_SEMAPHORE_SUSP ((UINT) 6) |
Definition at line 182 of file tx_api.h.
Referenced by tx_semaphore_get().
| #define TX_SIZE_ERROR ((UINT) 0x05) |
Definition at line 198 of file tx_api.h.
Referenced by tx_block_pool_create(), tx_byte_allocate(), tx_byte_pool_create(), tx_queue_create(), and tx_thread_create().
| #define TX_START_ERROR ((UINT) 0x10) |
Definition at line 210 of file tx_api.h.
Referenced by tx_thread_create().
| #define TX_STK_WRAPPER_NAME "ThreadX API on SuperTinyKernel" |
| #define TX_SUCCESS ((UINT) 0x00) |
Definition at line 193 of file tx_api.h.
Referenced by thread_0_entry(), thread_1_entry(), thread_2_entry(), thread_3_and_4_entry(), thread_5_entry(), thread_6_and_7_entry(), tx_block_allocate(), tx_block_pool_create(), tx_block_pool_delete(), tx_block_pool_info_get(), tx_block_pool_prioritize(), tx_block_release(), tx_byte_allocate(), tx_byte_pool_create(), tx_byte_pool_delete(), tx_byte_pool_info_get(), tx_byte_pool_prioritize(), tx_byte_release(), tx_event_flags_create(), tx_event_flags_delete(), tx_event_flags_get(), tx_event_flags_info_get(), tx_event_flags_set(), tx_event_flags_set_notify(), tx_mutex_create(), tx_mutex_delete(), tx_mutex_info_get(), tx_mutex_prioritize(), tx_mutex_put(), tx_queue_create(), tx_queue_delete(), tx_queue_flush(), tx_queue_info_get(), tx_queue_prioritize(), tx_queue_send_notify(), tx_semaphore_ceiling_put(), tx_semaphore_create(), tx_semaphore_delete(), tx_semaphore_info_get(), tx_semaphore_prioritize(), tx_semaphore_put(), tx_semaphore_put_notify(), tx_thread_create(), tx_thread_delete(), tx_thread_entry_exit_notify(), tx_thread_info_get(), tx_thread_preemption_change(), tx_thread_priority_change(), tx_thread_reset(), tx_thread_resume(), tx_thread_sleep(), tx_thread_stack_error_notify(), tx_thread_suspend(), tx_thread_terminate(), tx_thread_time_slice_change(), tx_thread_wait_abort(), tx_timer_change(), tx_timer_create(), tx_timer_deactivate(), tx_timer_delete(), and tx_timer_info_get().
| #define TX_SUSPEND_ERROR ((UINT) 0x14) |
Definition at line 214 of file tx_api.h.
Referenced by tx_thread_suspend().
| #define TX_SUSPEND_LIFTED ((UINT) 0x19) |
Definition at line 219 of file tx_api.h.
Referenced by tx_thread_resume().
| #define TX_SUSPENDED ((UINT) 3) |
Definition at line 179 of file tx_api.h.
Referenced by IsNotStarted(), tx_thread_create(), and tx_thread_reset().
| #define TX_TERMINATED ((UINT) 2) |
Definition at line 178 of file tx_api.h.
Referenced by tx_thread_delete(), tx_thread_reset(), and tx_thread_terminate().
| #define TX_THREAD_ERROR ((UINT) 0x0E) |
Definition at line 207 of file tx_api.h.
Referenced by tx_thread_create(), tx_thread_delete(), tx_thread_entry_exit_notify(), tx_thread_info_get(), tx_thread_preemption_change(), tx_thread_priority_change(), tx_thread_reset(), tx_thread_resume(), tx_thread_suspend(), tx_thread_terminate(), tx_thread_time_slice_change(), and tx_thread_wait_abort().
| #define TX_THREAD_EXIT ((UINT) 1) |
Definition at line 165 of file tx_api.h.
Referenced by tx_thread_terminate().
| #define TX_THREAD_ID ((ULONG) 0x54485244UL) |
Definition at line 232 of file tx_api.h.
Referenced by tx_thread_create().
| #define TX_THRESH_ERROR ((UINT) 0x18) |
Definition at line 218 of file tx_api.h.
Referenced by tx_thread_create(), and tx_thread_preemption_change().
| #define TX_TICK_ERROR ((UINT) 0x16) |
Definition at line 216 of file tx_api.h.
Referenced by tx_timer_change(), and tx_timer_create().
| #define TX_TIMER_ERROR ((UINT) 0x15) |
Definition at line 215 of file tx_api.h.
Referenced by tx_timer_activate(), tx_timer_change(), tx_timer_create(), tx_timer_deactivate(), tx_timer_delete(), and tx_timer_info_get().
| #define TX_TIMER_ID ((ULONG) 0x54494D52UL) |
Definition at line 239 of file tx_api.h.
Referenced by tx_timer_create().
| #define TX_TIMER_THREAD_STACK_SIZE (1024U) /* kept for source compatibility, see above */ |
| #define TX_TIMER_TICKS_PER_SECOND (1000UL) |
Definition at line 49 of file tx_api.h.
Referenced by tx_kernel_enter().
| #define TX_TRUE ((UINT) 1) |
Definition at line 159 of file tx_api.h.
Referenced by tx_timer_info_get().
| #define TX_WAIT_ABORT_ERROR ((UINT) 0x1B) |
Definition at line 221 of file tx_api.h.
Referenced by tx_thread_wait_abort().
| #define TX_WAIT_ABORTED ((UINT) 0x1A) |
Definition at line 220 of file tx_api.h.
Referenced by tx_thread_sleep().
| #define TX_WAIT_ERROR ((UINT) 0x04) |
Definition at line 197 of file tx_api.h.
Referenced by tx_block_allocate(), tx_byte_allocate(), tx_event_flags_get(), tx_mutex_get(), tx_queue_receive(), and tx_semaphore_get().
| #define TX_WAIT_FOREVER ((ULONG) 0xFFFFFFFFUL) |
Definition at line 144 of file tx_api.h.
Referenced by thread_1_entry(), thread_2_entry(), thread_3_and_4_entry(), thread_5_entry(), thread_6_and_7_entry(), and wait_flag().
| #define VOID void |
Definition at line 120 of file tx_api.h.
Referenced by tx_application_define(), tx_block_allocate(), tx_block_pool_create(), tx_block_release(), tx_byte_allocate(), tx_byte_pool_create(), tx_byte_release(), tx_event_flags_set_notify(), tx_kernel_enter(), tx_queue_create(), tx_queue_front_send(), tx_queue_receive(), tx_queue_send(), tx_queue_send_notify(), tx_semaphore_put_notify(), tx_thread_create(), tx_thread_entry_exit_notify(), tx_thread_identify(), tx_thread_relinquish(), tx_thread_stack_error_notify(), tx_time_get(), tx_time_set(), and tx_timer_create().
| typedef uintptr_t ALIGN_TYPE |
| typedef char CHAR |
| typedef struct TX_BLOCK_POOL_STRUCT TX_BLOCK_POOL |
| typedef struct TX_BYTE_POOL_STRUCT TX_BYTE_POOL |
| typedef struct TX_EVENT_FLAGS_GROUP_STRUCT TX_EVENT_FLAGS_GROUP |
| typedef struct TX_MUTEX_STRUCT TX_MUTEX |
| typedef struct TX_QUEUE_STRUCT TX_QUEUE |
| typedef struct TX_SEMAPHORE_STRUCT TX_SEMAPHORE |
| typedef struct TX_THREAD_STRUCT TX_THREAD |
| typedef struct TX_TIMER_STRUCT TX_TIMER |
| typedef unsigned char UCHAR |
| typedef unsigned int UINT |
| typedef unsigned int ULONG |
| void tx_application_define | ( | void * | first_unused_memory | ) |
Definition at line 132 of file demo_threadx.c.
References app_main(), APP_PRIORITY, block_pool_0, byte_pool_0, DEMO_BLOCK_POOL_SIZE, DEMO_BYTE_POOL_SIZE, DEMO_QUEUE_SIZE, DEMO_STACK_SIZE, event_flags_0, g_flags, memory_area, mutex_0, queue_0, semaphore_0, stack_app_main, STACK_SIZE, thread_0, thread_0_entry(), thread_1, thread_1_entry(), thread_2, thread_2_entry(), thread_3, thread_3_and_4_entry(), thread_4, thread_5, thread_5_entry(), thread_6, thread_6_and_7_entry(), thread_7, tid_app_main, TX_1_ULONG, TX_AUTO_START, tx_block_allocate(), tx_block_pool_create(), tx_block_release(), tx_byte_allocate(), tx_byte_pool_create(), tx_event_flags_create(), tx_mutex_create(), TX_NO_INHERIT, TX_NO_TIME_SLICE, TX_NO_WAIT, TX_NULL, tx_queue_create(), tx_semaphore_create(), tx_thread_create(), and VOID.
Referenced by tx_kernel_enter().
| UINT tx_block_allocate | ( | TX_BLOCK_POOL * | pool_ptr, |
| void ** | block_ptr, | ||
| ULONG | wait_option ) |
Definition at line 2052 of file threadx_stk.cpp.
References TX_BLOCK_MEMORY, TX_NO_MEMORY, TX_POOL_ERROR, TX_PTR_ERROR, TX_SUCCESS, TX_WAIT_ERROR, and VOID.
Referenced by tx_application_define().
| UINT tx_block_pool_create | ( | TX_BLOCK_POOL * | pool_ptr, |
| const CHAR * | name_ptr, | ||
| ULONG | block_size, | ||
| void * | pool_start, | ||
| ULONG | pool_size ) |
Definition at line 1977 of file threadx_stk.cpp.
References stk::memory::BlockMemoryPool::AlignBlockSize(), stk::memory::BlockMemoryPool::CAPACITY_MAX, stk::Min(), stk::ITraceable::SetTraceName(), TX_BLOCK_POOL_ID, TX_BLOCK_POOL_STRUCT::tx_block_pool_id, TX_BLOCK_POOL_STRUCT::tx_block_pool_name, TX_BLOCK_POOL_STRUCT::tx_block_pool_stk_storage, TX_CALLER_ERROR, TX_NAME_CONST, TX_POOL_ERROR, TX_PTR_ERROR, TX_SIZE_ERROR, TX_SUCCESS, and VOID.
Referenced by tx_application_define().
| UINT tx_block_pool_delete | ( | TX_BLOCK_POOL * | pool_ptr | ) |
Definition at line 2029 of file threadx_stk.cpp.
References TX_BLOCK_POOL_STRUCT::tx_block_pool_id, TX_CALLER_ERROR, TX_CLEAR_ID, TX_POOL_ERROR, and TX_SUCCESS.
| UINT tx_block_pool_info_get | ( | TX_BLOCK_POOL * | pool_ptr, |
| const CHAR ** | name, | ||
| ULONG * | available_blocks, | ||
| ULONG * | total_blocks, | ||
| TX_THREAD ** | first_suspended, | ||
| ULONG * | suspended_count, | ||
| TX_BLOCK_POOL ** | next_pool ) |
Definition at line 2126 of file threadx_stk.cpp.
References stk::memory::BlockMemoryPool::GetCapacity(), stk::memory::BlockMemoryPool::GetFreeCount(), TX_BLOCK_POOL_STRUCT::tx_block_pool_name, TX_NAME_CONST, TX_POOL_ERROR, and TX_SUCCESS.
| UINT tx_block_pool_prioritize | ( | TX_BLOCK_POOL * | pool_ptr | ) |
Definition at line 2153 of file threadx_stk.cpp.
References TX_POOL_ERROR, and TX_SUCCESS.
| UINT tx_block_release | ( | void * | block_ptr | ) |
Definition at line 2100 of file threadx_stk.cpp.
References TX_PTR_ERROR, TX_SUCCESS, and VOID.
Referenced by tx_application_define().
| UINT tx_byte_allocate | ( | TX_BYTE_POOL * | pool_ptr, |
| void ** | memory_ptr, | ||
| ULONG | memory_size, | ||
| ULONG | wait_option ) |
Definition at line 2346 of file threadx_stk.cpp.
References TX_BYTE_MEMORY, TX_NO_MEMORY, TX_POOL_ERROR, TX_PTR_ERROR, TX_SIZE_ERROR, TX_SUCCESS, TX_WAIT_ERROR, and VOID.
Referenced by tx_application_define().
| UINT tx_byte_pool_create | ( | TX_BYTE_POOL * | pool_ptr, |
| const CHAR * | name_ptr, | ||
| void * | pool_start, | ||
| ULONG | pool_size ) |
Definition at line 2264 of file threadx_stk.cpp.
References stk::memory::BytePool::RequiredSize(), TX_BYTE_POOL_ID, TX_BYTE_POOL_STRUCT::tx_byte_pool_id, TX_BYTE_POOL_STRUCT::tx_byte_pool_name, TX_BYTE_POOL_STRUCT::tx_byte_pool_stk_storage, TX_CALLER_ERROR, TX_NAME_CONST, TX_POOL_ERROR, TX_PTR_ERROR, TX_SIZE_ERROR, TX_SUCCESS, and VOID.
Referenced by tx_application_define().
| UINT tx_byte_pool_delete | ( | TX_BYTE_POOL * | pool_ptr | ) |
Definition at line 2315 of file threadx_stk.cpp.
References TX_BYTE_POOL_STRUCT::tx_byte_pool_id, TX_CALLER_ERROR, TX_CLEAR_ID, TX_POOL_ERROR, and TX_SUCCESS.
| UINT tx_byte_pool_info_get | ( | TX_BYTE_POOL * | pool_ptr, |
| const CHAR ** | name, | ||
| ULONG * | available_bytes, | ||
| ULONG * | fragments, | ||
| TX_THREAD ** | first_suspended, | ||
| ULONG * | suspended_count, | ||
| TX_BYTE_POOL ** | next_pool ) |
Definition at line 2416 of file threadx_stk.cpp.
References TX_BYTE_POOL_STRUCT::tx_byte_pool_name, TX_NAME_CONST, TX_POOL_ERROR, and TX_SUCCESS.
| UINT tx_byte_pool_prioritize | ( | TX_BYTE_POOL * | pool_ptr | ) |
Definition at line 2447 of file threadx_stk.cpp.
References TX_POOL_ERROR, and TX_SUCCESS.
| UINT tx_byte_release | ( | void * | memory_ptr | ) |
Definition at line 2385 of file threadx_stk.cpp.
References TX_PTR_ERROR, TX_SUCCESS, and VOID.
| UINT tx_event_flags_create | ( | TX_EVENT_FLAGS_GROUP * | group_ptr, |
| const CHAR * | name_ptr ) |
Definition at line 1513 of file threadx_stk.cpp.
References TX_CALLER_ERROR, TX_EVENT_FLAGS_GROUP_STRUCT::tx_event_flags_group_id, TX_EVENT_FLAGS_GROUP_STRUCT::tx_event_flags_group_name, TX_EVENT_FLAGS_GROUP_STRUCT::tx_event_flags_group_set_notify, TX_EVENT_FLAGS_GROUP_STRUCT::tx_event_flags_group_stk_storage, TX_EVENT_FLAGS_ID, TX_GROUP_ERROR, TX_NAME_CONST, and TX_SUCCESS.
Referenced by tx_application_define().
| UINT tx_event_flags_delete | ( | TX_EVENT_FLAGS_GROUP * | group_ptr | ) |
Definition at line 1544 of file threadx_stk.cpp.
References TX_CALLER_ERROR, TX_CLEAR_ID, TX_EVENT_FLAGS_GROUP_STRUCT::tx_event_flags_group_id, TX_GROUP_ERROR, and TX_SUCCESS.
| UINT tx_event_flags_get | ( | TX_EVENT_FLAGS_GROUP * | group_ptr, |
| ULONG | requested_flags, | ||
| UINT | get_option, | ||
| ULONG * | actual_flags_ptr, | ||
| ULONG | wait_option ) |
Definition at line 1567 of file threadx_stk.cpp.
References TX_AND, TX_AND_CLEAR, TX_EVENT_FLAG, TX_GROUP_ERROR, TX_NO_EVENTS, TX_OPTION_ERROR, TX_PTR_ERROR, TX_SUCCESS, and TX_WAIT_ERROR.
Referenced by thread_5_entry(), and wait_flag().
| UINT tx_event_flags_info_get | ( | TX_EVENT_FLAGS_GROUP * | group_ptr, |
| const CHAR ** | name, | ||
| ULONG * | current_flags, | ||
| TX_THREAD ** | first_suspended, | ||
| ULONG * | suspended_count, | ||
| TX_EVENT_FLAGS_GROUP ** | next_group ) |
Definition at line 1658 of file threadx_stk.cpp.
References TX_EVENT_FLAGS_GROUP_STRUCT::tx_event_flags_group_name, TX_GROUP_ERROR, TX_NAME_CONST, and TX_SUCCESS.
| UINT tx_event_flags_set | ( | TX_EVENT_FLAGS_GROUP * | group_ptr, |
| ULONG | flags_to_set, | ||
| UINT | set_option ) |
Definition at line 1618 of file threadx_stk.cpp.
References TX_AND, TX_EVENT_FLAGS_GROUP_STRUCT::tx_event_flags_group_set_notify, TX_GROUP_ERROR, TX_OPTION_ERROR, TX_OR, and TX_SUCCESS.
Referenced by app_main(), signal_func(), and thread_0_entry().
| UINT tx_event_flags_set_notify | ( | TX_EVENT_FLAGS_GROUP * | group_ptr, |
| void(* | events_set_notify )(TX_EVENT_FLAGS_GROUP *notify_group_ptr) ) |
Definition at line 1681 of file threadx_stk.cpp.
References TX_EVENT_FLAGS_GROUP_STRUCT::tx_event_flags_group_set_notify, TX_GROUP_ERROR, TX_SUCCESS, and VOID.
Definition at line 468 of file threadx_stk.cpp.
References stk::hw::CriticalSection::Enter(), stk::hw::CriticalSection::Exit(), TX_INT_DISABLE, and TX_INT_ENABLE.
| void tx_kernel_enter | ( | void | ) |
Definition at line 457 of file threadx_stk.cpp.
References tx_application_define(), TX_TIMER_TICKS_PER_SECOND, and VOID.
Referenced by app_run(), and main().
Definition at line 1138 of file threadx_stk.cpp.
References stk::ITraceable::SetTraceName(), TX_CALLER_ERROR, TX_INHERIT, TX_INHERIT_ERROR, TX_MUTEX_ERROR, TX_MUTEX_ID, TX_MUTEX_STRUCT::tx_mutex_id, TX_MUTEX_STRUCT::tx_mutex_name, TX_MUTEX_STRUCT::tx_mutex_stk_storage, TX_NAME_CONST, and TX_SUCCESS.
Referenced by tx_application_define().
Definition at line 1171 of file threadx_stk.cpp.
References TX_CALLER_ERROR, TX_CLEAR_ID, TX_MUTEX_ERROR, TX_MUTEX_STRUCT::tx_mutex_id, and TX_SUCCESS.
Definition at line 1194 of file threadx_stk.cpp.
References TX_CALLER_ERROR, TX_MUTEX_ERROR, TX_MUTEX_SUSP, TX_NOT_AVAILABLE, and TX_WAIT_ERROR.
Referenced by thread_6_and_7_entry().
| UINT tx_mutex_info_get | ( | TX_MUTEX * | mutex_ptr, |
| const CHAR ** | name, | ||
| ULONG * | count, | ||
| TX_THREAD ** | owner, | ||
| TX_THREAD ** | first_suspended, | ||
| ULONG * | suspended_count, | ||
| TX_MUTEX ** | next_mutex ) |
Definition at line 1245 of file threadx_stk.cpp.
References stk::sync::Mutex::GetOwner(), stk::sync::Mutex::GetRecursionCount(), TX_MUTEX_ERROR, TX_MUTEX_STRUCT::tx_mutex_name, TX_NAME_CONST, and TX_SUCCESS.
Definition at line 1271 of file threadx_stk.cpp.
References TX_MUTEX_ERROR, and TX_SUCCESS.
Definition at line 1220 of file threadx_stk.cpp.
References stk::GetTid(), TX_CALLER_ERROR, TX_MUTEX_ERROR, TX_NOT_OWNED, and TX_SUCCESS.
Referenced by thread_6_and_7_entry().
| UINT tx_queue_create | ( | TX_QUEUE * | queue_ptr, |
| const CHAR * | name_ptr, | ||
| UINT | message_size, | ||
| void * | queue_start, | ||
| ULONG | queue_size ) |
Definition at line 1727 of file threadx_stk.cpp.
References stk::sync::MessageQueue::CAPACITY_MAX, stk::ITraceable::SetTraceName(), TX_16_ULONG, TX_1_ULONG, TX_CALLER_ERROR, TX_NAME_CONST, TX_PTR_ERROR, TX_QUEUE_ERROR, TX_QUEUE_ID, TX_QUEUE_STRUCT::tx_queue_id, TX_QUEUE_STRUCT::tx_queue_message_size, TX_QUEUE_STRUCT::tx_queue_name, TX_QUEUE_STRUCT::tx_queue_send_notify, TX_QUEUE_STRUCT::tx_queue_stk_storage, TX_SIZE_ERROR, TX_SUCCESS, and VOID.
Referenced by tx_application_define().
Definition at line 1778 of file threadx_stk.cpp.
References TX_CALLER_ERROR, TX_CLEAR_ID, TX_QUEUE_ERROR, TX_QUEUE_STRUCT::tx_queue_id, and TX_SUCCESS.
Definition at line 1801 of file threadx_stk.cpp.
References TX_QUEUE_ERROR, and TX_SUCCESS.
Definition at line 1899 of file threadx_stk.cpp.
References VOID.
| UINT tx_queue_info_get | ( | TX_QUEUE * | queue_ptr, |
| const CHAR ** | name, | ||
| ULONG * | enqueued, | ||
| ULONG * | available_storage, | ||
| TX_THREAD ** | first_suspended, | ||
| ULONG * | suspended_count, | ||
| TX_QUEUE ** | next_queue ) |
Definition at line 1818 of file threadx_stk.cpp.
References stk::sync::MessageQueue::GetCount(), stk::sync::MessageQueue::GetSpace(), TX_NAME_CONST, TX_QUEUE_ERROR, TX_QUEUE_STRUCT::tx_queue_name, and TX_SUCCESS.
Definition at line 1844 of file threadx_stk.cpp.
References TX_QUEUE_ERROR, and TX_SUCCESS.
Definition at line 1904 of file threadx_stk.cpp.
References TX_PTR_ERROR, TX_QUEUE_EMPTY, TX_QUEUE_ERROR, TX_QUEUE_SUSP, TX_WAIT_ERROR, and VOID.
Referenced by thread_2_entry().
Definition at line 1894 of file threadx_stk.cpp.
References VOID.
Referenced by thread_1_entry().
| UINT tx_queue_send_notify | ( | TX_QUEUE * | queue_ptr, |
| void(* | queue_send_notify )(TX_QUEUE *notify_queue_ptr) ) |
Definition at line 1930 of file threadx_stk.cpp.
References TX_QUEUE_ERROR, TX_QUEUE_STRUCT::tx_queue_send_notify, TX_SUCCESS, and VOID.
| UINT tx_semaphore_ceiling_put | ( | TX_SEMAPHORE * | semaphore_ptr, |
| ULONG | ceiling ) |
Definition at line 1409 of file threadx_stk.cpp.
References SemOf(), TX_CEILING_EXCEEDED, TX_OPTION_ERROR, TX_SEMAPHORE_ERROR, TX_SEMAPHORE_STRUCT::tx_semaphore_put_notify, and TX_SUCCESS.
| UINT tx_semaphore_create | ( | TX_SEMAPHORE * | semaphore_ptr, |
| const CHAR * | name_ptr, | ||
| ULONG | initial_count ) |
Definition at line 1308 of file threadx_stk.cpp.
References stk::sync::SemaphoreT< ULONG >::COUNT_MAX, TX_CALLER_ERROR, TX_NAME_CONST, TX_SEMAPHORE_ERROR, TX_SEMAPHORE_ID, TX_SEMAPHORE_STRUCT::tx_semaphore_id, TX_SEMAPHORE_STRUCT::tx_semaphore_name, TX_SEMAPHORE_STRUCT::tx_semaphore_put_notify, TX_SEMAPHORE_STRUCT::tx_semaphore_stk_storage, and TX_SUCCESS.
Referenced by tx_application_define().
| UINT tx_semaphore_delete | ( | TX_SEMAPHORE * | semaphore_ptr | ) |
Definition at line 1339 of file threadx_stk.cpp.
References SemOf(), TX_CALLER_ERROR, TX_CLEAR_ID, TX_SEMAPHORE_ERROR, TX_SEMAPHORE_STRUCT::tx_semaphore_id, and TX_SUCCESS.
| UINT tx_semaphore_get | ( | TX_SEMAPHORE * | semaphore_ptr, |
| ULONG | wait_option ) |
Definition at line 1362 of file threadx_stk.cpp.
References SemOf(), TX_NO_INSTANCE, TX_SEMAPHORE_ERROR, TX_SEMAPHORE_SUSP, and TX_WAIT_ERROR.
Referenced by thread_3_and_4_entry().
| UINT tx_semaphore_info_get | ( | TX_SEMAPHORE * | semaphore_ptr, |
| const CHAR ** | name, | ||
| ULONG * | current_value, | ||
| TX_THREAD ** | first_suspended, | ||
| ULONG * | suspended_count, | ||
| TX_SEMAPHORE ** | next_semaphore ) |
Definition at line 1437 of file threadx_stk.cpp.
References SemOf(), TX_NAME_CONST, TX_SEMAPHORE_ERROR, TX_SEMAPHORE_STRUCT::tx_semaphore_name, and TX_SUCCESS.
| UINT tx_semaphore_prioritize | ( | TX_SEMAPHORE * | semaphore_ptr | ) |
Definition at line 1460 of file threadx_stk.cpp.
References TX_SEMAPHORE_ERROR, and TX_SUCCESS.
| UINT tx_semaphore_put | ( | TX_SEMAPHORE * | semaphore_ptr | ) |
Definition at line 1384 of file threadx_stk.cpp.
References SemOf(), TX_CEILING_EXCEEDED, TX_SEMAPHORE_ERROR, TX_SEMAPHORE_STRUCT::tx_semaphore_put_notify, and TX_SUCCESS.
Referenced by thread_3_and_4_entry().
| UINT tx_semaphore_put_notify | ( | TX_SEMAPHORE * | semaphore_ptr, |
| void(* | semaphore_put_notify )(TX_SEMAPHORE *notify_semaphore_ptr) ) |
Definition at line 1465 of file threadx_stk.cpp.
References TX_SEMAPHORE_ERROR, TX_SEMAPHORE_STRUCT::tx_semaphore_put_notify, TX_SUCCESS, and VOID.
| UINT tx_thread_create | ( | TX_THREAD * | thread_ptr, |
| const CHAR * | name_ptr, | ||
| void(* | entry_function )(ULONG entry_input), | ||
| ULONG | entry_input, | ||
| void * | stack_start, | ||
| ULONG | stack_size, | ||
| UINT | priority, | ||
| UINT | preempt_threshold, | ||
| ULONG | time_slice, | ||
| UINT | auto_start ) |
Definition at line 515 of file threadx_stk.cpp.
References STK_STACK_SIZE_MIN, TX_AUTO_START, TX_CALLER_ERROR, TX_MAX_PRIORITIES, TX_NAME_CONST, TX_PRIORITY_ERROR, TX_PTR_ERROR, TX_SIZE_ERROR, TX_START_ERROR, TX_SUCCESS, TX_SUSPENDED, TX_THREAD_STRUCT::tx_thread_entry, TX_THREAD_STRUCT::tx_thread_entry_exit_notify, TX_THREAD_STRUCT::tx_thread_entry_parameter, TX_THREAD_ERROR, TX_THREAD_STRUCT::tx_thread_extension_ptr, TX_THREAD_ID, TX_THREAD_STRUCT::tx_thread_id, TX_THREAD_STRUCT::tx_thread_name, TX_THREAD_STRUCT::tx_thread_preempt_threshold, TX_THREAD_STRUCT::tx_thread_priority, TX_THREAD_STRUCT::tx_thread_run_count, TX_THREAD_STRUCT::tx_thread_stack_size, TX_THREAD_STRUCT::tx_thread_stack_start, TX_THREAD_STRUCT::tx_thread_state, TX_THREAD_STRUCT::tx_thread_stk_start_priority, TX_THREAD_STRUCT::tx_thread_stk_start_threshold, TX_THREAD_STRUCT::tx_thread_stk_start_time_slice, TX_THREAD_STRUCT::tx_thread_stk_storage, TX_THREAD_STRUCT::tx_thread_time_slice, TX_THRESH_ERROR, and VOID.
Referenced by app_main(), and tx_application_define().
Definition at line 596 of file threadx_stk.cpp.
References TX_CALLER_ERROR, TX_CLEAR_ID, TX_COMPLETED, TX_DELETE_ERROR, TX_SUCCESS, TX_TERMINATED, TX_THREAD_ERROR, TX_THREAD_STRUCT::tx_thread_id, and TX_THREAD_STRUCT::tx_thread_state.
| UINT tx_thread_entry_exit_notify | ( | TX_THREAD * | thread_ptr, |
| void(* | thread_entry_exit_notify )(TX_THREAD *notify_thread_ptr, UINT type) ) |
Definition at line 631 of file threadx_stk.cpp.
References TX_SUCCESS, TX_THREAD_STRUCT::tx_thread_entry_exit_notify, TX_THREAD_ERROR, and VOID.
| TX_THREAD * tx_thread_identify | ( | void | ) |
Definition at line 649 of file threadx_stk.cpp.
References VOID.
Referenced by app_main().
| UINT tx_thread_info_get | ( | TX_THREAD * | thread_ptr, |
| const CHAR ** | name, | ||
| UINT * | state, | ||
| ULONG * | run_count, | ||
| UINT * | priority, | ||
| UINT * | preemption_threshold, | ||
| ULONG * | time_slice, | ||
| TX_THREAD ** | next_thread, | ||
| TX_THREAD ** | next_suspended_thread ) |
Definition at line 656 of file threadx_stk.cpp.
References TX_NAME_CONST, TX_SUCCESS, TX_THREAD_ERROR, TX_THREAD_STRUCT::tx_thread_name, TX_THREAD_STRUCT::tx_thread_preempt_threshold, TX_THREAD_STRUCT::tx_thread_priority, TX_THREAD_STRUCT::tx_thread_run_count, and TX_THREAD_STRUCT::tx_thread_time_slice.
| UINT tx_thread_preemption_change | ( | TX_THREAD * | thread_ptr, |
| UINT | new_threshold, | ||
| UINT * | old_threshold ) |
Definition at line 685 of file threadx_stk.cpp.
References stk::GetTidFromUserTask(), stk::SetWeight(), TX_CALLER_ERROR, TX_PTR_ERROR, TX_SUCCESS, TX_THREAD_ERROR, TX_THREAD_STRUCT::tx_thread_preempt_threshold, TX_THREAD_STRUCT::tx_thread_priority, and TX_THRESH_ERROR.
Definition at line 726 of file threadx_stk.cpp.
References stk::GetTidFromUserTask(), stk::SetWeight(), TX_CALLER_ERROR, TX_MAX_PRIORITIES, TX_PRIORITY_ERROR, TX_PTR_ERROR, TX_SUCCESS, TX_THREAD_ERROR, TX_THREAD_STRUCT::tx_thread_preempt_threshold, and TX_THREAD_STRUCT::tx_thread_priority.
| void tx_thread_relinquish | ( | void | ) |
Definition at line 775 of file threadx_stk.cpp.
References VOID, and stk::Yield().
Definition at line 783 of file threadx_stk.cpp.
References TX_CALLER_ERROR, TX_COMPLETED, TX_NOT_DONE, TX_SUCCESS, TX_SUSPENDED, TX_TERMINATED, TX_THREAD_ERROR, TX_THREAD_STRUCT::tx_thread_preempt_threshold, TX_THREAD_STRUCT::tx_thread_priority, TX_THREAD_STRUCT::tx_thread_state, TX_THREAD_STRUCT::tx_thread_stk_start_priority, TX_THREAD_STRUCT::tx_thread_stk_start_threshold, TX_THREAD_STRUCT::tx_thread_stk_start_time_slice, TX_THREAD_STRUCT::tx_thread_stk_storage, and TX_THREAD_STRUCT::tx_thread_time_slice.
Definition at line 920 of file threadx_stk.cpp.
References IsNotStarted(), stk::RESUME_DONE, stk::RESUME_LIFTED, TX_RESUME_ERROR, TX_SUCCESS, TX_SUSPEND_LIFTED, and TX_THREAD_ERROR.
Definition at line 825 of file threadx_stk.cpp.
References stk::Sleep(), TX_CALLER_ERROR, TX_SUCCESS, and TX_WAIT_ABORTED.
Referenced by clock_thread(), signal_func(), thread_0_entry(), thread_3_and_4_entry(), and thread_6_and_7_entry().
Definition at line 859 of file threadx_stk.cpp.
References TX_SUCCESS, and VOID.
Definition at line 873 of file threadx_stk.cpp.
References stk::SUSPEND_DEFERRED, stk::SUSPEND_DONE, TX_CALLER_ERROR, TX_READY, TX_SUCCESS, TX_SUSPEND_ERROR, TX_THREAD_ERROR, and TX_THREAD_STRUCT::tx_thread_state.
Referenced by app_main().
Definition at line 971 of file threadx_stk.cpp.
References stk::ExitTask(), TX_CALLER_ERROR, TX_COMPLETED, TX_SUCCESS, TX_TERMINATED, TX_THREAD_STRUCT::tx_thread_entry_exit_notify, TX_THREAD_ERROR, TX_THREAD_EXIT, and TX_THREAD_STRUCT::tx_thread_state.
| UINT tx_thread_time_slice_change | ( | TX_THREAD * | thread_ptr, |
| ULONG | new_time_slice, | ||
| ULONG * | old_time_slice ) |
Definition at line 1025 of file threadx_stk.cpp.
References stk::GetTidFromUserTask(), stk::Min(), stk::NO_TIME_SLICE, stk::SetTimeSlice(), TX_CALLER_ERROR, TX_NO_TIME_SLICE, TX_PTR_ERROR, TX_SUCCESS, TX_THREAD_ERROR, TX_THREAD_STRUCT::tx_thread_time_slice, and stk::WAIT_INFINITE.
Definition at line 1064 of file threadx_stk.cpp.
References stk::GetTidFromUserTask(), stk::SleepCancel(), stk::TaskStateInfo::state, stk::TASK_STATE_REMOVED, stk::TASK_STATE_SLEEPING, stk::TASK_STATE_WAITING, TX_SUCCESS, TX_THREAD_ERROR, TX_WAIT_ABORT_ERROR, and stk::WAIT_INFINITE.
| ULONG tx_time_get | ( | void | ) |
Definition at line 491 of file threadx_stk.cpp.
References stk::GetTicks(), and VOID.
| void tx_time_set | ( | ULONG | new_time | ) |
Definition at line 503 of file threadx_stk.cpp.
References stk::GetTicks(), and VOID.
Definition at line 2686 of file threadx_stk.cpp.
References TimerOf(), TX_ACTIVATE_ERROR, and TX_TIMER_ERROR.
Referenced by tx_timer_create().
Definition at line 2719 of file threadx_stk.cpp.
References TimerOf(), TX_ACTIVATE_ERROR, TX_SUCCESS, TX_TICK_ERROR, TX_TIMER_ERROR, TX_TIMER_STRUCT::tx_timer_initial_ticks, and TX_TIMER_STRUCT::tx_timer_reschedule_ticks.
| UINT tx_timer_create | ( | TX_TIMER * | timer_ptr, |
| const CHAR * | name_ptr, | ||
| void(* | expiration_function )(ULONG input), | ||
| ULONG | expiration_input, | ||
| ULONG | initial_ticks, | ||
| ULONG | reschedule_ticks, | ||
| UINT | auto_activate ) |
Definition at line 2582 of file threadx_stk.cpp.
References TX_ACTIVATE_ERROR, TX_AUTO_ACTIVATE, TX_CALLER_ERROR, TX_CLEAR_ID, TX_FEATURE_NOT_ENABLED, TX_NAME_CONST, TX_SUCCESS, TX_TICK_ERROR, tx_timer_activate(), TX_TIMER_ERROR, TX_TIMER_STRUCT::tx_timer_expiration_function, TX_TIMER_STRUCT::tx_timer_expiration_input, TX_TIMER_ID, TX_TIMER_STRUCT::tx_timer_id, TX_TIMER_STRUCT::tx_timer_initial_ticks, TX_TIMER_STRUCT::tx_timer_name, TX_TIMER_STRUCT::tx_timer_reschedule_ticks, TX_TIMER_STRUCT::tx_timer_stk_storage, and VOID.
Definition at line 2703 of file threadx_stk.cpp.
References TimerOf(), TX_SUCCESS, and TX_TIMER_ERROR.
Definition at line 2655 of file threadx_stk.cpp.
References TimerOf(), TX_CALLER_ERROR, TX_CLEAR_ID, TX_SUCCESS, TX_TIMER_ERROR, and TX_TIMER_STRUCT::tx_timer_id.
| UINT tx_timer_info_get | ( | TX_TIMER * | timer_ptr, |
| const CHAR ** | name, | ||
| UINT * | active, | ||
| ULONG * | remaining_ticks, | ||
| ULONG * | reschedule_ticks, | ||
| TX_TIMER ** | next_timer ) |
Definition at line 2748 of file threadx_stk.cpp.
References TimerOf(), TX_FALSE, TX_NAME_CONST, TX_SUCCESS, TX_TIMER_ERROR, TX_TIMER_STRUCT::tx_timer_name, and TX_TRUE.