]> git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/doc/rtos.txt
Merge commit '1fe4406f374291ab2e86e95a97341fd9c475fcb8'
[tmk_keyboard.git] / tmk_core / tool / mbed / mbed-sdk / libraries / doc / rtos.txt
1 === Tasks ===
2
3 ^ os_tsk.new->task_id ^ Tasks ^ Stack Size ^
4 | 0x01 | Main | 4*OS_MAINSTKSIZE |
5 | 0x02 | Timer | 4*OS_TIMERSTKSZ |
6 | 0xFF | Idle | 4*OS_STKSIZE |
7
8 ----------
9 |
10 V os_tsk.run->tsk_stack
11
12
13 MAGIC_WORD os_tsk.run->stack[0]
14 ----------
15
16 The current task structure is always pointed by:
17 struct OS_TSK os_tsk;
18
19 === Init Sequence ===
20 OS:
21 * osKernelInitialize
22 * rt_sys_init
23 * rt_init_context
24 * rt_init_stack
25 * rt_set_PSP
26 * rt_init_robin
27 * rt_svc_init
28
29 * set_main_stack
30
31 * osThreadCreate(os_thread_def_main)
32 * rt_tsk_create
33 * rt_init_context
34 * rt_init_stack
35 * rt_dispatch
36
37 * osKernelStart
Imprint / Impressum