Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Misc

Functions

void sys_msleep (u32_t ms)
 Sleep for specified number of ms.
sys_thread_t sys_thread_new (const char *name, lwip_thread_fn thread, void *arg, int stacksize, int prio)
 The only thread function: Starts a new thread named "name" with priority "prio" that will begin its execution in the function "thread()".
void sys_init (void)
 sys_init() must be called before anything else.

Function Documentation

void sys_init ( void   )

sys_init() must be called before anything else.

Initialize the sys_arch layer.

Definition at line 60 of file sys_arch.c.

void sys_msleep ( u32_t  ms )

Sleep for specified number of ms.

Sleep for specified number of ms.

Timeouts are NOT processed while sleeping.

Parameters:
msnumber of milliseconds to sleep

Definition at line 135 of file lwip_sys.c.

sys_thread_t sys_thread_new ( const char *  name,
lwip_thread_fn  thread,
void *  arg,
int  stacksize,
int  prio 
)

The only thread function: Starts a new thread named "name" with priority "prio" that will begin its execution in the function "thread()".

The "arg" argument will be passed as an argument to the thread() function. The stack size to used for this thread is the "stacksize" parameter. The id of the new thread is returned. Both the id and the priority are system dependent. ATTENTION: although this function returns a value, it MUST NOT FAIL (ports have to assert this!)

Parameters:
namehuman-readable name for the thread (used for debugging purposes)
threadthread-function
argparameter passed to 'thread'
stacksizestack size in bytes for the new thread (may be ignored by ports)
priopriority of the new thread (may be ignored by ports)

Definition at line 197 of file sys_arch.c.