📄 os_cpu_c.lst
字号:
\ 0000004C 15D0 RCALL ?0024
91 *stk-- = (INT8U)0x00; /* R25 = 0x00 */
\ 0000004E 14D0 RCALL ?0024
92 *stk-- = (INT8U)0x00; /* R26 = 0x00 */
\ 00000050 13D0 RCALL ?0024
93 *stk-- = (INT8U)0x00; /* R27 = 0x00 */
\ 00000052 12D0 RCALL ?0024
94 /* will not store the heap pointer Y=R29:R28 */
95 *stk-- = (INT8U)0x00; /* R30 = 0x00 */
\ 00000054 11D0 RCALL ?0024
96 *stk-- = (INT8U)0x00; /* R31 = 0x00 */
\ 00000056 0083 ST Z,R16
97 *stk-- = (INT8U)0x80; /* SREG = Interrupts enabled */
\ 00000058 00E8 LDI R16,128
\ 0000005A 0DD0 RCALL ?0023
98 tmp = (INT16U)(stks);
99 *stk-- = (INT8U)(tmp >> 8); /* SPH */
\ 0000005C 7083 ST Z,R23
100 *stk = (INT8U)(tmp); /* SPL */
\ 0000005E E22F MOV R30,R18
\ 00000060 F32F MOV R31,R19
\ 00000062 6083 ST Z,R22
101 return ((void *)stk);
\ 00000064 022F MOV R16,R18
\ 00000066 132F MOV R17,R19
102 }
\ 00000068 2496 ADIW R28,LOW(4)
\ 0000006A 0895 RET
\ ?0022:
\ 0000006C E62F MOV R30,R22
\ 0000006E F72F MOV R31,R23
\ 00000070 6150 SUBI R22,LOW(1)
\ 00000072 7040 SBCI R23,LOW(0)
\ 00000074 0895 RET
\ ?0023:
\ 00000076 01D0 RCALL ?0025
\ ?0024:
\ 00000078 0083 ST Z,R16
\ ?0025:
\ 0000007A E22F MOV R30,R18
\ 0000007C F32F MOV R31,R19
\ 0000007E 2150 SUBI R18,LOW(1)
\ 00000080 3040 SBCI R19,LOW(0)
\ 00000082 0895 RET
\ ; pdata R0-R1
\ ; tmp R16-R17
\ ; task R20-R21
\ ; stks R22-R23
\ ; stk R18-R19
\ ; ptos R22-R23
\ ; opt R2-R3
\ OSTaskCreateHook:
103
104 /*$PAGE*/
105 #if OS_CPU_HOOKS_EN
106 /*
107 *********************************************************************************************************
108 * TASK CREATION HOOK
109 *
110 * Description: This function is called when a task is created.
111 *
112 * Arguments : ptcb is a pointer to the task control block of the task being created.
113 *
114 * Note(s) : 1) Interrupts are disabled during this call.
115 *********************************************************************************************************
116 */
117 void OSTaskCreateHook (OS_TCB *ptcb)
118 {
119 ptcb = ptcb; /* Prevent compiler warning */
120 }
\ 00000084 0895 RET
\ ; ptcb R16-R17
\ OSTaskDelHook:
121
122
123 /*
124 *********************************************************************************************************
125 * TASK DELETION HOOK
126 *
127 * Description: This function is called when a task is deleted.
128 *
129 * Arguments : ptcb is a pointer to the task control block of the task being deleted.
130 *
131 * Note(s) : 1) Interrupts are disabled during this call.
132 *********************************************************************************************************
133 */
134 void OSTaskDelHook (OS_TCB *ptcb)
135 {
136 ptcb = ptcb; /* Prevent compiler warning */
137 }
\ 00000086 0895 RET
\ ; ptcb R16-R17
\ OSTaskSwHook:
138
139 /*
140 *********************************************************************************************************
141 * TASK SWITCH HOOK
142 *
143 * Description: This function is called when a task switch is performed. This allows you to perform other
144 * operations during a context switch.
145 *
146 * Arguments : none
147 *
148 * Note(s) : 1) Interrupts are disabled during this call.
149 * 2) It is assumed that the global pointer 'OSTCBHighRdy' points to the TCB of the task that
150 * will be 'switched in' (i.e. the highest priority task) and, 'OSTCBCur' points to the
151 * task being switched out (i.e. the preempted task).
152 *********************************************************************************************************
153 */
154 void OSTaskSwHook (void)
155 {
156 }
\ 00000088 0895 RET
\ OSTaskStatHook:
157
158 /*
159 *********************************************************************************************************
160 * STATISTIC TASK HOOK
161 *
162 * Description: This function is called every second by uC/OS-II's statistics task. This allows your
163 * application to add functionality to the statistics task.
164 *
165 * Arguments : none
166 *********************************************************************************************************
167 */
168 void OSTaskStatHook (void)
169 {
170 }
\ 0000008A 0895 RET
\ OSTimeTickHook:
171
172 /*
173 *********************************************************************************************************
174 * TICK HOOK
175 *
176 * Description: This function is called every tick.
177 *
178 * Arguments : none
179 *
180 * Note(s) : 1) Interrupts may or may not be ENABLED during this call.
181 *********************************************************************************************************
182 */
183 void OSTimeTickHook (void)
184 {
185 }
\ 0000008C 0895 RET
186 #endif
\ END
Source file: os_cpu_c.c
Errors: none
Warnings: none
Code size: 142
Constant size: 0
Static variable size: 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -