37#define DEMO_STACK_SIZE 1024
38#define DEMO_BYTE_POOL_SIZE 9120
39#define DEMO_BLOCK_POOL_SIZE 100
40#define DEMO_QUEUE_SIZE 100
55#define LED_EVENT_FLAGS LED_GREEN
56#define LED_QUEUE LED_ORANGE
57#define LED_SEMAPHORE LED_RED
58#define LED_MUTEX LED_BLUE
60#define DEMO_LED_QUEUE_DIVIDER 10000UL
297ULONG received_message;
337 if (thread_input == 3)
384 if ((status !=
TX_SUCCESS) || (actual_flags != 0x1))
405 if (thread_input == 6)
TX_BLOCK_POOL block_pool_0
ULONG thread_2_messages_received
void thread_2_entry(ULONG thread_input)
void thread_1_entry(ULONG thread_input)
#define DEMO_LED_QUEUE_DIVIDER
static bool led_state[LED_MAX]
void thread_0_entry(ULONG thread_input)
#define DEMO_BYTE_POOL_SIZE
void thread_6_and_7_entry(ULONG thread_input)
void thread_5_entry(ULONG thread_input)
ULONG thread_1_messages_sent
static void led_toggle(LedId led)
TX_EVENT_FLAGS_GROUP event_flags_0
#define DEMO_BLOCK_POOL_SIZE
void thread_3_and_4_entry(ULONG thread_input)
void Led_InitAll(bool state)
void Led_Set(LedId led, bool state)
Eclipse ThreadX (Azure RTOS ThreadX) compatible API on top of SuperTinyKernel RTOS.
void tx_kernel_enter(void)
struct TX_BYTE_POOL_STRUCT TX_BYTE_POOL
UINT tx_semaphore_create(TX_SEMAPHORE *semaphore_ptr, const CHAR *name_ptr, ULONG initial_count)
UINT tx_queue_create(TX_QUEUE *queue_ptr, const CHAR *name_ptr, UINT message_size, void *queue_start, ULONG queue_size)
UINT tx_event_flags_create(TX_EVENT_FLAGS_GROUP *group_ptr, const CHAR *name_ptr)
struct TX_SEMAPHORE_STRUCT TX_SEMAPHORE
UINT tx_queue_send(TX_QUEUE *queue_ptr, void *source_ptr, ULONG wait_option)
UINT tx_mutex_create(TX_MUTEX *mutex_ptr, const CHAR *name_ptr, UINT inherit)
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_byte_allocate(TX_BYTE_POOL *pool_ptr, void **memory_ptr, ULONG memory_size, ULONG wait_option)
UINT tx_block_release(void *block_ptr)
UINT tx_semaphore_put(TX_SEMAPHORE *semaphore_ptr)
UINT tx_thread_sleep(ULONG timer_ticks)
UINT tx_semaphore_get(TX_SEMAPHORE *semaphore_ptr, ULONG wait_option)
UINT tx_block_pool_create(TX_BLOCK_POOL *pool_ptr, const CHAR *name_ptr, ULONG block_size, void *pool_start, ULONG pool_size)
struct TX_BLOCK_POOL_STRUCT TX_BLOCK_POOL
UINT tx_event_flags_set(TX_EVENT_FLAGS_GROUP *group_ptr, ULONG flags_to_set, UINT set_option)
UINT tx_queue_receive(TX_QUEUE *queue_ptr, void *destination_ptr, ULONG wait_option)
UINT tx_mutex_put(TX_MUTEX *mutex_ptr)
struct TX_EVENT_FLAGS_GROUP_STRUCT TX_EVENT_FLAGS_GROUP
UINT tx_block_allocate(TX_BLOCK_POOL *pool_ptr, void **block_ptr, ULONG wait_option)
struct TX_THREAD_STRUCT TX_THREAD
struct TX_QUEUE_STRUCT TX_QUEUE
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_mutex_get(TX_MUTEX *mutex_ptr, ULONG wait_option)
void tx_application_define(void *first_unused_memory)
UINT tx_byte_pool_create(TX_BYTE_POOL *pool_ptr, const CHAR *name_ptr, void *pool_start, ULONG pool_size)
struct TX_MUTEX_STRUCT TX_MUTEX