📄 os_cpu_a.lst
字号:
84 #if defined(PA2)
85 # define PORTA2 PA2
86 #endif
87 #if defined(PA3)
88 # define PORTA3 PA3
89 #endif
90 #if defined(PA4)
91 # define PORTA4 PA4
92 #endif
93 #if defined(PA5)
94 # define PORTA5 PA5
95 #endif
96 #if defined(PA6)
97 # define PORTA6 PA6
98 #endif
99 #if defined(PA7)
100 # define PORTA7 PA7
101 #endif
102
103 /* PORT B */
104
105 #if defined(PB0)
106 # define PORTB0 PB0
107 #endif
108 #if defined(PB1)
109 # define PORTB1 PB1
110 #endif
111 #if defined(PB2)
112 # define PORTB2 PB2
113 #endif
114 #if defined(PB3)
115 # define PORTB3 PB3
116 #endif
117 #if defined(PB4)
118 # define PORTB4 PB4
119 #endif
120 #if defined(PB5)
121 # define PORTB5 PB5
122 #endif
123 #if defined(PB6)
124 # define PORTB6 PB6
125 #endif
126 #if defined(PB7)
127 # define PORTB7 PB7
128 #endif
129
130 /* PORT C */
131
132 #if defined(PC0)
133 # define PORTC0 PC0
134 #endif
135 #if defined(PC1)
136 # define PORTC1 PC1
137 #endif
138 #if defined(PC2)
139 # define PORTC2 PC2
140 #endif
141 #if defined(PC3)
142 # define PORTC3 PC3
143 #endif
144 #if defined(PC4)
145 # define PORTC4 PC4
146 #endif
147 #if defined(PC5)
148 # define PORTC5 PC5
149 #endif
150 #if defined(PC6)
151 # define PORTC6 PC6
152 #endif
153 #if defined(PC7)
154 # define PORTC7 PC7
155 #endif
156
157 /* PORT D */
158
159 #if defined(PD0)
160 # define PORTD0 PD0
161 #endif
162 #if defined(PD1)
163 # define PORTD1 PD1
164 #endif
165 #if defined(PD2)
166 # define PORTD2 PD2
167 #endif
168 #if defined(PD3)
169 # define PORTD3 PD3
170 #endif
171 #if defined(PD4)
172 # define PORTD4 PD4
173 #endif
174 #if defined(PD5)
175 # define PORTD5 PD5
176 #endif
177 #if defined(PD6)
178 # define PORTD6 PD6
179 #endif
180 #if defined(PD7)
181 # define PORTD7 PD7
182 #endif
183
184 /* PORT E */
185
186 #if defined(PE0)
187 # define PORTE0 PE0
188 #endif
189 #if defined(PE1)
190 # define PORTE1 PE1
191 #endif
192 #if defined(PE2)
193 # define PORTE2 PE2
194 #endif
195 #if defined(PE3)
196 # define PORTE3 PE3
197 #endif
198 #if defined(PE4)
199 # define PORTE4 PE4
200 #endif
201 #if defined(PE5)
202 # define PORTE5 PE5
203 #endif
204 #if defined(PE6)
205 # define PORTE6 PE6
206 #endif
207 #if defined(PE7)
208 # define PORTE7 PE7
209 #endif
210
211 /* PORT F */
212
213 #if defined(PF0)
214 # define PORTF0 PF0
215 #endif
216 #if defined(PF1)
217 # define PORTF1 PF1
218 #endif
219 #if defined(PF2)
220 # define PORTF2 PF2
221 #endif
222 #if defined(PF3)
223 # define PORTF3 PF3
224 #endif
225 #if defined(PF4)
226 # define PORTF4 PF4
227 #endif
228 #if defined(PF5)
229 # define PORTF5 PF5
230 #endif
231 #if defined(PF6)
232 # define PORTF6 PF6
233 #endif
234 #if defined(PF7)
235 # define PORTF7 PF7
236 #endif
237
238 /* PORT G */
239
240 #if defined(PG0)
241 # define PORTG0 PG0
242 #endif
243 #if defined(PG1)
244 # define PORTG1 PG1
245 #endif
246 #if defined(PG2)
247 # define PORTG2 PG2
248 #endif
249 #if defined(PG3)
250 # define PORTG3 PG3
251 #endif
252 #if defined(PG4)
253 # define PORTG4 PG4
254 #endif
255 #if defined(PG5)
256 # define PORTG5 PG5
257 #endif
257
4
5 #define INC_FROM_OS_CPU_ASM
6
7 #include "../AVR/os_cpu.h"
1 #ifndef _OS_CPU_H_
2 #define _OS_CPU_H_
3
4 #ifdef OS_CPU_GLOBALS
5 #define OS_CPU_EXT
6 #else
7 #define OS_CPU_EXT extern
8 #endif
8 #include "../Config/os_cfg.h"
1 /*
2 ***************************************************************************************************
3 * uC/OS-II
4 * The Real-Time Kernel
5 *
6 * (c) Copyright 1992-2003, Jean J. Labrosse, Weston, FL
7 * All Rights Reserved
8 *
9 * uC/OS-II Configuration File for V2.7x
9
10 ;**************************************************************************************************
11 ;OS_EXT INT8U OSIntNesting; /* Interrupt nesting level
12 ;OS_EXT BOOLEAN OSRunning; /* Flag indicating that kernel is runni
13 ;OS_EXT INT8U OSPrioCur; /* Priority of current task
14 ;OS_EXT INT8U OSPrioHighRdy; /* Priority of highest priority task
15 ;OS_EXT OS_TCB *OSTCBCur; /* Pointer to currently running TCB
16 ;OS_EXT OS_TCB *OSTCBHighRdy; /* Pointer to highest priority TCB R-to-R
17
18 .extern OSTCBCur
19 .extern OSTCBHighRdy
20 .extern OSPrioCur
21 .extern OSPrioHighRdy
22
23 .extern OSRunning
24 .extern OSIntNesting
25
26
27 ;**************************************************************************************************
28 .global OSStartHighRdy
30 .section .text,"ax"
31 OSStartHighRdy:
32
33 #if OS_CPU_HOOKS_EN > 0
34 .extern OSTaskSwHook
35:AVR/OS_CPU_A.S **** call OSTaskSwHook
36 #endif
37
38:AVR/OS_CPU_A.S **** lds r16,OSRunning
39:AVR/OS_CPU_A.S **** inc r16
40:AVR/OS_CPU_A.S **** sts OSRunning,r16
41
42:AVR/OS_CPU_A.S **** lds r30,OSTCBHighRdy
43:AVR/OS_CPU_A.S **** lds r31,OSTCBHighRdy+1
44:AVR/OS_CPU_A.S **** ld r16,z+
45:AVR/OS_CPU_A.S **** ld r17,z
46:AVR/OS_CPU_A.S **** out _SFR_IO_ADDR(SPL),r16 ;
47:AVR/OS_CPU_A.S **** out _SFR_IO_ADDR(SPH),r17 ;
48
49:AVR/OS_CPU_A.S **** pop r0
50:AVR/OS_CPU_A.S **** out _SFR_IO_ADDR(SREG),r0 ;
51
52:AVR/OS_CPU_A.S **** pop r0
53:AVR/OS_CPU_A.S **** pop r1
54:AVR/OS_CPU_A.S **** pop r2
55:AVR/OS_CPU_A.S **** pop r3
56:AVR/OS_CPU_A.S **** pop r4
57:AVR/OS_CPU_A.S **** pop r5
58:AVR/OS_CPU_A.S **** pop r6
59:AVR/OS_CPU_A.S **** pop r7
60:AVR/OS_CPU_A.S **** pop r8
61:AVR/OS_CPU_A.S **** pop r9
62:AVR/OS_CPU_A.S **** pop r10
63:AVR/OS_CPU_A.S **** pop r11
64:AVR/OS_CPU_A.S **** pop r12
65:AVR/OS_CPU_A.S **** pop r13
66:AVR/OS_CPU_A.S **** pop r14
67:AVR/OS_CPU_A.S **** pop r15
68:AVR/OS_CPU_A.S **** pop r16
69:AVR/OS_CPU_A.S **** pop r17
70:AVR/OS_CPU_A.S **** pop r18
71:AVR/OS_CPU_A.S **** pop r19
72:AVR/OS_CPU_A.S **** pop r20
73:AVR/OS_CPU_A.S **** pop r21
74:AVR/OS_CPU_A.S **** pop r22
75:AVR/OS_CPU_A.S **** pop r23
76:AVR/OS_CPU_A.S **** pop r24
77:AVR/OS_CPU_A.S **** pop r25
78:AVR/OS_CPU_A.S **** pop r26
79:AVR/OS_CPU_A.S **** pop r27
80:AVR/OS_CPU_A.S **** pop r28
81:AVR/OS_CPU_A.S **** pop r29
82:AVR/OS_CPU_A.S **** pop r30
83:AVR/OS_CPU_A.S **** pop r31
84
85:AVR/OS_CPU_A.S **** ret
86
87 ;**************************************************************************************************
88 .global OSCtxSw
90 .section .text,"ax"
91 OSCtxSw:
92:AVR/OS_CPU_A.S **** push r31
93:AVR/OS_CPU_A.S **** push r30
94:AVR/OS_CPU_A.S **** push r29
95:AVR/OS_CPU_A.S **** push r28
96:AVR/OS_CPU_A.S **** push r27
97:AVR/OS_CPU_A.S **** push r26
98:AVR/OS_CPU_A.S **** push r25
99:AVR/OS_CPU_A.S **** push r24
100:AVR/OS_CPU_A.S **** push r23
101:AVR/OS_CPU_A.S **** push r22
102:AVR/OS_CPU_A.S **** push r21
103:AVR/OS_CPU_A.S **** push r20
104:AVR/OS_CPU_A.S **** push r19
105:AVR/OS_CPU_A.S **** push r18
106:AVR/OS_CPU_A.S **** push r17
107:AVR/OS_CPU_A.S **** push r16
108:AVR/OS_CPU_A.S **** push r15
109:AVR/OS_CPU_A.S **** push r14
110:AVR/OS_CPU_A.S **** push r13
111:AVR/OS_CPU_A.S **** push r12
112:AVR/OS_CPU_A.S **** push r11
113:AVR/OS_CPU_A.S **** push r10
114:AVR/OS_CPU_A.S **** push r9
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -