riot_sys

Function thread_stack_init

Source
pub unsafe extern "C" fn thread_stack_init(
    task_func: thread_task_func_t,
    arg: *mut c_void,
    stack_start: *mut c_void,
    stack_size: c_int,
) -> *mut c_char
Expand description

@brief Gets called upon thread creation to set CPU registers

@param[in] task_func First function to call within the thread @param[in] arg Argument to supply to task_func @param[in] stack_start Start address of the stack @param[in] stack_size Stack size

@return stack pointer