#include <stdio.h>
#include "RTE_Components.h"
#include CMSIS_device_header
#define STACK_SIZE 1024U
#define APP_PRIORITY 2U
#define FLAG_PHASE_A 0x0001UL
#define FLAG_PHASE_B 0x0002UL
#define FLAG_PHASE_C 0x0004UL
#define FLAG_PHASE_D 0x0008UL
#define FLAG_CLOCK 0x0100UL
#define MS_TO_TICKS(ms) ((ULONG)((((ULONG)(ms) * TX_TIMER_TICKS_PER_SECOND) + 999UL) / 1000UL))
}
}
}
}
(void)argument;
for (;;) {
}
}
(void)argument;
for (;;) {
}
}
(void)argument;
for (;;) {
}
}
(void)argument;
for (;;) {
}
}
(void)argument;
for (;;) {
}
}
(void)argument;
}
(void)first_unused_memory;
}
#ifndef _STK_STANDALONE_EXAMPLE
#else
int main(
int argc,
char* argv[])
#endif
{
SystemCoreClockUpdate();
while(1);
}
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)
UINT tx_event_flags_create(TX_EVENT_FLAGS_GROUP *group_ptr, const CHAR *name_ptr)
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)
TX_THREAD * tx_thread_identify(void)
UINT tx_thread_sleep(ULONG timer_ticks)
UINT tx_event_flags_set(TX_EVENT_FLAGS_GROUP *group_ptr, ULONG flags_to_set, UINT set_option)
struct TX_EVENT_FLAGS_GROUP_STRUCT TX_EVENT_FLAGS_GROUP
struct TX_THREAD_STRUCT TX_THREAD
UINT tx_thread_suspend(TX_THREAD *thread_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)
void tx_application_define(void *first_unused_memory)
void app_main(void *argument)
void phaseD(void *argument)
void phaseA(void *argument)
void Switch_Off(unsigned char led)
void Switch_On(unsigned char led)
void phaseC(void *argument)
void signal_func(osThreadId_t tid)
void phaseB(void *argument)
void clock_thread(cy_thread_arg_t argument)
static void wait_flag(uint32_t flag)
static ULONG stack_phaseC[1024U/sizeof(ULONG)]
static ULONG stack_clock[1024U/sizeof(ULONG)]
static ULONG stack_phaseB[1024U/sizeof(ULONG)]
static ULONG stack_phaseD[1024U/sizeof(ULONG)]
static ULONG stack_phaseA[1024U/sizeof(ULONG)]
static ULONG stack_app_main[1024U/sizeof(ULONG)]