29#ifndef _OS_PORT_NONE_H
30#define _OS_PORT_NONE_H
33#define OS_STATIC_TASK_SUPPORT DISABLED
36#define OS_INVALID_TASK_ID 0
38#define OS_SELF_TASK_ID 0
41#ifndef OS_TASK_PRIORITY_NORMAL
42 #define OS_TASK_PRIORITY_NORMAL 0
46#ifndef OS_TASK_PRIORITY_HIGH
47 #define OS_TASK_PRIORITY_HIGH 0
51#ifndef OS_MS_TO_SYSTICKS
52 #define OS_MS_TO_SYSTICKS(n) (n)
56#ifndef OS_SYSTICKS_TO_MS
57 #define OS_SYSTICKS_TO_MS(n) (n)
61#ifndef osGetSystemTime64
62 #define osGetSystemTime64() osGetSystemTime()
77 #define osExitIsr(flag) (void) flag
131void osInitKernel(
void);
132void osStartKernel(
void);
136 void *param,
size_t stackSize, int_t priority);
140void osSwitchTask(
void);
141void osSuspendAllTasks(
void);
142void osResumeAllTasks(
void);
145bool_t osCreateEvent(
OsEvent *event);
146void osDeleteEvent(
OsEvent *event);
147void osSetEvent(
OsEvent *event);
148void osResetEvent(
OsEvent *event);
150bool_t osSetEventFromIsr(
OsEvent *event);
153bool_t osCreateSemaphore(
OsSemaphore *semaphore, uint_t count);
159bool_t osCreateMutex(
OsMutex *mutex);
160void osDeleteMutex(
OsMutex *mutex);
161void osAcquireMutex(
OsMutex *mutex);
162void osReleaseMutex(
OsMutex *mutex);
168void *osAllocMem(
size_t size);
169void osFreeMem(
void *p);
uint_t OsMutex
Mutex object.
Definition os_port_none.h:118
uint_t OsEvent
Event object.
Definition os_port_none.h:104
void(* OsTaskCode)(void *param)
Task routine.
Definition os_port_none.h:125
uint_t OsSemaphore
Semaphore object.
Definition os_port_none.h:111
uint_t OsTaskId
Task identifier.
Definition os_port_none.h:97
uint32_t systime_t
System time.
Definition os_port_none.h:90