Go to the documentation of this file.
31 #if (CH_CFG_USE_DYNAMIC == TRUE) || defined(__DOXYGEN__)
57 #if (CH_CFG_USE_HEAP == TRUE) || defined(__DOXYGEN__)
97 #if CH_DBG_FILL_THREADS == TRUE
99 (uint8_t *)wsp + size,
113 #if (CH_CFG_USE_MEMPOOLS == TRUE) || defined(__DOXYGEN__)
156 #if CH_DBG_FILL_THREADS == TRUE
port_stkalign_t stkalign_t
thread_t * chThdCreateFromMemoryPool(memory_pool_t *mp, const char *name, tprio_t prio, tfunc_t pf, void *arg)
Creates a new thread allocating the memory from the specified memory pool.
thread_t * chThdCreateSuspendedI(const thread_descriptor_t *tdp)
Creates a new thread into a static memory area.
void(* tfunc_t)(void *p)
Thread function.
#define CH_DBG_STACK_FILL_VALUE
Fill value for thread stack area in debug mode.
void * chHeapAllocAligned(memory_heap_t *heapp, size_t size, unsigned align)
Allocates a block of memory from the heap by using the first-fit algorithm.
#define CH_FLAG_MODE_MPOOL
Thread allocated from a Memory Pool.
#define chDbgCheck(c)
Function parameters check.
Structure representing a thread.
#define CH_FLAG_MODE_HEAP
Thread allocated from a Memory Heap.
void __thd_memfill(uint8_t *startp, uint8_t *endp, uint8_t v)
Memory fill utility.
Structure describing a memory heap.
Type of a thread descriptor.
size_t object_size
Memory pool objects size.
#define MSG_OK
Normal wakeup message.
#define THD_DESCRIPTOR(name, wbase, wend, prio, funcp, arg)
Thread descriptor initializer with no affinity.
void * mpool
Memory Pool where the thread workspace is returned.
#define PORT_WORKING_AREA_ALIGN
Working Areas alignment constant.
void * chPoolAlloc(memory_pool_t *mp)
Allocates an object from a memory pool.
thread_t * chThdCreateFromHeap(memory_heap_t *heapp, size_t size, const char *name, tprio_t prio, tfunc_t pf, void *arg)
Creates a new thread allocating the memory from the heap.
#define chSysUnlock()
Leaves the kernel lock state.
tmode_t flags
Various thread flags.
void chSchWakeupS(thread_t *ntp, msg_t msg)
Wakes up a thread.
#define chSysLock()
Enters the kernel lock state.