Greg Steiert / maxim_dev

Dependents:   sensomed

Committer:
switches
Date:
Tue Nov 08 18:27:11 2016 +0000
Revision:
0:0e018d759a2a
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
switches 0:0e018d759a2a 1 === Tasks ===
switches 0:0e018d759a2a 2
switches 0:0e018d759a2a 3 ^ os_tsk.new->task_id ^ Tasks ^ Stack Size ^
switches 0:0e018d759a2a 4 | 0x01 | Main | 4*OS_MAINSTKSIZE |
switches 0:0e018d759a2a 5 | 0x02 | Timer | 4*OS_TIMERSTKSZ |
switches 0:0e018d759a2a 6 | 0xFF | Idle | 4*OS_STKSIZE |
switches 0:0e018d759a2a 7
switches 0:0e018d759a2a 8 ----------
switches 0:0e018d759a2a 9 |
switches 0:0e018d759a2a 10 V os_tsk.run->tsk_stack
switches 0:0e018d759a2a 11
switches 0:0e018d759a2a 12
switches 0:0e018d759a2a 13 MAGIC_WORD os_tsk.run->stack[0]
switches 0:0e018d759a2a 14 ----------
switches 0:0e018d759a2a 15
switches 0:0e018d759a2a 16 The current task structure is always pointed by:
switches 0:0e018d759a2a 17 struct OS_TSK os_tsk;
switches 0:0e018d759a2a 18
switches 0:0e018d759a2a 19 === Init Sequence ===
switches 0:0e018d759a2a 20 OS:
switches 0:0e018d759a2a 21 * osKernelInitialize
switches 0:0e018d759a2a 22 * rt_sys_init
switches 0:0e018d759a2a 23 * rt_init_context
switches 0:0e018d759a2a 24 * rt_init_stack
switches 0:0e018d759a2a 25 * rt_set_PSP
switches 0:0e018d759a2a 26 * rt_init_robin
switches 0:0e018d759a2a 27 * rt_svc_init
switches 0:0e018d759a2a 28
switches 0:0e018d759a2a 29 * set_main_stack
switches 0:0e018d759a2a 30
switches 0:0e018d759a2a 31 * osThreadCreate(os_thread_def_main)
switches 0:0e018d759a2a 32 * rt_tsk_create
switches 0:0e018d759a2a 33 * rt_init_context
switches 0:0e018d759a2a 34 * rt_init_stack
switches 0:0e018d759a2a 35 * rt_dispatch
switches 0:0e018d759a2a 36
switches 0:0e018d759a2a 37 * osKernelStart