31#if (CH_CFG_USE_DYNAMIC == TRUE) || defined(__DOXYGEN__)
48#if CH_CFG_USE_WAITEXIT == FALSE
49#error "CH_CFG_USE_DYNAMIC requires CH_CFG_USE_WAITEXIT"
52#if CH_CFG_USE_REGISTRY == FALSE
53#error "CH_CFG_USE_DYNAMIC requires CH_CFG_USE_REGISTRY"
56#if (CH_CFG_USE_HEAP == FALSE) && (CH_CFG_USE_MEMPOOLS == FALSE)
57#error "CH_CFG_USE_DYNAMIC requires CH_CFG_USE_HEAP and/or CH_CFG_USE_MEMPOOLS"
78#if CH_CFG_USE_HEAP == TRUE
83#if CH_CFG_USE_MEMPOOLS == TRUE
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.
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.
struct ch_thread thread_t
Type of a thread structure.
struct memory_heap memory_heap_t
Type of a memory heap.
void(* tfunc_t)(void *p)
Thread function.