#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include "RTE_Components.h"
#include CMSIS_device_header
#define STACK_SIZE 1024U
#define APP_PRIORITY CY_RTOS_PRIORITY_NORMAL
#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 APP_CHECK(call) do { if ((call) != CY_RSLT_SUCCESS) { for (;;) {} } } while (0)
#define STACK_DECL(name) static uint8_t name[STACK_SIZE] __attribute__((aligned(16)))
}
}
uint32_t bits = flag;
}
}
(void)argument;
for (;;) {
}
}
(void)argument;
for (;;) {
}
}
(void)argument;
for (;;) {
}
}
(void)argument;
for (;;) {
}
}
(void)argument;
for (;;) {
}
}
(void)argument;
}
}
#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)
Kernel control of the SuperTinyKernel (STK) port of the Infineon RTOS abstraction layer.
cy_rslt_t cy_rtos_stk_kernel_enter(void(*app_init)(void))
uintptr_t cy_thread_arg_t
struct cy_stk_thread * cy_thread_t
Defines the Infineon RTOS Interface. Provides prototypes for functions that allow Infineon libraries ...
#define CY_RTOS_NEVER_TIMEOUT
cy_rslt_t cy_rtos_event_setbits(const cy_event_t *event, uint32_t bits)
cy_rslt_t cy_rtos_event_init(cy_event_t *event)
cy_rslt_t cy_rtos_event_waitbits(const cy_event_t *event, uint32_t *bits, bool clear, bool all, cy_time_t timeout_ms)
cy_rslt_t cy_rtos_thread_wait_notification(cy_time_t timeout_ms)
cy_rslt_t cy_rtos_thread_create(cy_thread_t *thread, cy_thread_entry_fn_t entry_function, const char *name, void *stack, uint32_t stack_size, cy_thread_priority_t priority, cy_thread_arg_t arg)
cy_rslt_t cy_rtos_delay_milliseconds(cy_time_t num_ms)
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 void app_init(void)
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)]