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 80 const char *name, tprio_t prio,
83 #if CH_CFG_USE_MEMPOOLS == TRUE 85 tprio_t prio,
tfunc_t pf,
void *arg);
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.
void(* tfunc_t)(void *p)
Thread function.
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.
Structure describing a memory heap.
Structure representing a thread.