30#if (CH_CFG_USE_DYNAMIC == TRUE) || defined(__DOXYGEN__)
47#if CH_CFG_USE_WAITEXIT == FALSE
48#error "CH_CFG_USE_DYNAMIC requires CH_CFG_USE_WAITEXIT"
51#if CH_CFG_USE_REGISTRY == FALSE
52#error "CH_CFG_USE_DYNAMIC requires CH_CFG_USE_REGISTRY"
55#if (CH_CFG_USE_HEAP == FALSE) && (CH_CFG_USE_MEMPOOLS == FALSE)
56#error "CH_CFG_USE_DYNAMIC requires CH_CFG_USE_HEAP and/or CH_CFG_USE_MEMPOOLS"
77#if CH_CFG_USE_HEAP == TRUE
82#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.