X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc.c;h=57cda38452f6677c9eb41b658024c7fcb104b232;hb=47dfe44ebab1698c1dee6757b6ce0f19b5e030a3;hp=66caa2db3c7f87c7d2c2d87705a47165409707ea;hpb=5ba55b7568e1c091b96138adbbcd1c484706b1b2;p=bertos.git diff --git a/bertos/kern/proc.c b/bertos/kern/proc.c index 66caa2db..57cda384 100644 --- a/bertos/kern/proc.c +++ b/bertos/kern/proc.c @@ -150,6 +150,14 @@ void proc_init(void) /** * Create a new process, starting at the provided entry point. * + * + * \note The function + * \code + * proc_new(entry, data, stacksize, stack) + * \endcode + * is a more convenient way to create a process, as you don't have to specify + * the name. + * * \return Process structure of new created process * if successful, NULL otherwise. */ @@ -167,14 +175,14 @@ struct Process *proc_new_with_name(UNUSED_ARG(const char *, name), void (*entry) PROC_ATOMIC(stack_base = (cpu_stack_t *)list_remHead(&StackFreeList)); ASSERT(stack_base); - stack_size = CONFIG_KERN_MINSTACKSIZE; + stack_size = KERN_MINSTACKSIZE; #elif CONFIG_KERN_HEAP /* Did the caller provide a stack for us? */ if (!stack_base) { /* Did the caller specify the desired stack size? */ if (!stack_size) - stack_size = CONFIG_KERN_MINSTACKSIZE; + stack_size = KERN_MINSTACKSIZE; /* Allocate stack dinamically */ if (!(stack_base = heap_alloc(stack_size)))