Prusa MINI Firmware overview
|
◆ sys_msleep()
Sleep for specified number of ms
Sleep for some ms. Timeouts are NOT processed while sleeping.
- Parameters
-
ms | number of milliseconds to sleep |
◆ sys_thread_new()
The only thread function: Creates a new thread ATTENTION: although this function returns a value, it MUST NOT FAIL (ports have to assert this!)
- Parameters
-
name | human-readable name for the thread (used for debugging purposes) |
thread | thread-function |
arg | parameter passed to 'thread' |
stacksize | stack size in bytes for the new thread (may be ignored by ports) |
prio | priority of the new thread (may be ignored by ports) |
u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout)
Definition: sys_arch.c:251
osSemaphoreId sys_sem_t
Definition: sys_arch.h:41
Definition: cmsis_os.h:325
err_t sys_sem_new(sys_sem_t *sem, u8_t count)
Definition: sys_arch.c:206
void(* os_pthread)(void const *argument)
Definition: cmsis_os.h:273
s8_t err_t
Definition: err.h:57
osPriority
Definition: cmsis_os.h:217
osThreadId osThreadCreate(const osThreadDef_t *thread_def, void *argument)
Create a thread and add it to Active Threads and set it to state READY.
Definition: cmsis_os.c:245
void sys_sem_free(sys_sem_t *sem)
Definition: sys_arch.c:282