📄 rtx_config.lst
字号:
VICVectAddr15 = (U32)os_clock_interrupt; \
VICVectCntl15 = 0x20 | OS_TID_;
#else
#define OS_TINIT() T0->TIMER_MR0 = OS_TRV; /* Initialization */ \
T0->TIMER_MCR = 3; \
T0->TIMER_TCR = 1; \
VIC->DefVectAddr = 31;/*(U32)os_def_interrupt*/ \
VIC->VectAddrs[15] = 15;/*(U32)os_clock_interrupt*/ \
VIC->VectCntls[15] = 0x20 | OS_TID_;
#endif
#elif (OS_TIMER == 1) /* Timer 1 */
174 #define OS_TID_ 5 /* Timer ID */
175 #define OS_TIM_ (1 << OS_TID_) /* Interrupt Mask */
176 #define OS_TRV ((U32)(((double)OS_CLOCK*(double)OS_TICK)/1E6)-1)
177 #if (OS_MODESEL == 0)
#define OS_TVAL T1TC /* Timer Value */
#else
180 #define OS_TVAL T1->TIMER_TC /* Timer Value */
181 #endif
182 #if (OS_MODESEL == 0)
#define OS_TOVF (T1IR & 1) /* Overflow Flag */
#else
185 #define OS_TOVF (T1->TIMER_IR & 1) /* Overflow Flag */
186 #endif
187 #define OS_TREL() ; /* Timer Reload */
188 #if (OS_MODESEL == 0)
#define OS_TFIRQ() VICSoftInt |= OS_TIM_; /* Force Interrupt */
ARM COMPILER V2.51a, RTX_Config 06/05/06 10:40:45 PAGE 4
#else
191 #define OS_TFIRQ() VIC->SoftInt |= OS_TIM_; /* Force Interrupt */
192 #endif
193 #if (OS_MODESEL == 0)
#define OS_TIACK() T1IR = 1; /* Interrupt Ack */ \
VICSoftIntClr = OS_TIM_; \
VICVectAddr = 0;
#else
198 #define OS_TIACK() T1->TIMER_IR = 1; /* Interrupt Ack */ \
199 VIC->SoftIntClr = OS_TIM_; \
200 VIC->VectAddr = 0;
201 #endif
202 #if (OS_MODESEL == 0)
#define OS_TINIT() T1MR0 = OS_TRV; /* Initialization */ \
T1MCR = 3; \
T1TCR = 1; \
VICDefVectAddr = (U32)os_def_interrupt; \
VICVectAddr15 = (U32)os_clock_interrupt; \
VICVectCntl15 = 0x20 | OS_TID_;
#else
210 #define OS_TINIT() T1->TIMER_MR0 = OS_TRV; /* Initialization */ \
211 T1->TIMER_MCR = 3; \
212 T1->TIMER_TCR = 1; \
213 VIC->DefVectAddr = 31;/*(U32)os_def_interrupt*/ \
214 VIC->VectAddrs[15] = 15;/*(U32)os_clock_interrupt*/ \
215 VIC->VectCntls[15] = 0x20 | OS_TID_;
216 #endif
217 #else
#error OS_TIMER invalid
#endif
220
221 #if (OS_MODESEL == 0)
#define OS_IACK() VICVectAddr = 0; /* Interrupt Ack */
#else
224 #define OS_IACK() VIC->VectAddr = 0; /* Interrupt Ack */
225 #endif
226 //OS_LOCK()禁止系统定时器中断
227 #if (OS_MODESEL == 0)
#define OS_LOCK() VICIntEnClr = OS_TIM_; /* Task Lock */
#else
230 #define OS_LOCK() VIC->IntEnClr = OS_TIM_; /* Task Lock */
231 #endif
232 //OS_UNLOCK()使能系统定时器中断
233 #if (OS_MODESEL == 0)
#define OS_UNLOCK() VICIntEnable |= OS_TIM_; /* Task Unlock */
#else
236 #define OS_UNLOCK() VIC->IntEnable |= OS_TIM_; /* Task Unlock */
237 #endif
238
239 /* WARNING ! Do not use IDLE mode if you are using a JTAG interface */
240 /* for debugging your application. */
241 #if (OS_MODESEL == 0)
#define _idle_() PCON = 1;
#else
244 #define _idle_() POWER->P_CON = 1;
245 #endif
246 #define INITIAL_CPSR 0x40000010
247 #define MAGIC_WORD 0xE25A2EA5
248 /*----------------------------------------------------------------------------
249 * Global Variables
250 *---------------------------------------------------------------------------*/
251
252 extern P_TCB os_runtask;
*** WARNING C34 IN LINE 252 OF RTX_CONFIG.C: 'os_runtask': missing declaration specifiers
*** ERROR C42 IN LINE 252 OF RTX_CONFIG.C: 'os_runtask': not in formal parameter list
253 extern struct OS_XCB os_rdy;
ARM COMPILER V2.51a, RTX_Config 06/05/06 10:40:45 PAGE 5
*** ERROR C29 IN LINE 253 OF RTX_CONFIG.C: formal/parameter has illegal storage class
*** ERROR C33 IN LINE 253 OF RTX_CONFIG.C: 'os_rdy': invalid storage class
254 extern struct OS_TCB os_clock_TCB;
*** ERROR C29 IN LINE 254 OF RTX_CONFIG.C: formal/parameter has illegal storage class
*** ERROR C33 IN LINE 254 OF RTX_CONFIG.C: 'os_clock_TCB': invalid storage class
255 extern U16 os_time;
*** ERROR C29 IN LINE 255 OF RTX_CONFIG.C: formal/parameter has illegal storage class
*** ERROR C33 IN LINE 255 OF RTX_CONFIG.C: 'U16': invalid storage class
*** ERROR C25 IN LINE 255 OF RTX_CONFIG.C: syntax error near 'os_time'
*** ERROR C33 IN LINE 255 OF RTX_CONFIG.C: 'os_time': invalid storage class
256 U16 const os_maxtaskrun = OS_TASKCNT;
*** WARNING C34 IN LINE 256 OF RTX_CONFIG.C: 'U16': missing declaration specifiers
*** ERROR C42 IN LINE 256 OF RTX_CONFIG.C: 'U16': not in formal parameter list
*** ERROR C25 IN LINE 256 OF RTX_CONFIG.C: syntax error near 'const'
*** ERROR C142 IN LINE 256 OF RTX_CONFIG.C: illegal initialization
257 /* Export following defines to uVision debugger. */
258 U32 const os_stackinfo = (OS_STKCHECK<<24) | (OS_PRIVCNT<<16) | (OS_STKSIZE*4);
*** WARNING C34 IN LINE 258 OF RTX_CONFIG.C: 'U32': missing declaration specifiers
*** ERROR C42 IN LINE 258 OF RTX_CONFIG.C: 'U32': not in formal parameter list
*** ERROR C25 IN LINE 258 OF RTX_CONFIG.C: syntax error near 'const'
*** ERROR C142 IN LINE 258 OF RTX_CONFIG.C: illegal initialization
259 U32 const os_clockrate = OS_TICK;
*** WARNING C34 IN LINE 259 OF RTX_CONFIG.C: 'U32': missing declaration specifiers
*** ERROR C42 IN LINE 259 OF RTX_CONFIG.C: 'U32': not in formal parameter list
*** ERROR C25 IN LINE 259 OF RTX_CONFIG.C: syntax error near 'const'
*** ERROR C142 IN LINE 259 OF RTX_CONFIG.C: illegal initialization
260 U32 const os_timernum = (OS_TIMER << 16) | OS_TIMERCNT;
*** WARNING C34 IN LINE 260 OF RTX_CONFIG.C: 'U32': missing declaration specifiers
*** ERROR C42 IN LINE 260 OF RTX_CONFIG.C: 'U32': not in formal parameter list
*** ERROR C25 IN LINE 260 OF RTX_CONFIG.C: syntax error near 'const'
*** ERROR C142 IN LINE 260 OF RTX_CONFIG.C: illegal initialization
261 U32 const os_rrobin = (OS_ROBIN << 16) | OS_ROBINTOUT;
*** WARNING C34 IN LINE 261 OF RTX_CONFIG.C: 'U32': missing declaration specifiers
*** ERROR C42 IN LINE 261 OF RTX_CONFIG.C: 'U32': not in formal parameter list
*** ERROR C25 IN LINE 261 OF RTX_CONFIG.C: syntax error near 'const'
*** ERROR C142 IN LINE 261 OF RTX_CONFIG.C: illegal initialization
262
263 /*----------------------------------------------------------------------------
264 * Local Variables
265 *---------------------------------------------------------------------------*/
266 /* Memory pool for TCB allocation */
267 static U32 m_tcb[(sizeof(struct OS_TCB) * OS_TASKCNT)/4 + 4];
*** ERROR C29 IN LINE 267 OF RTX_CONFIG.C: formal/parameter has illegal storage class
*** ERROR C33 IN LINE 267 OF RTX_CONFIG.C: 'U32': invalid storage class
*** ERROR C25 IN LINE 267 OF RTX_CONFIG.C: syntax error near 'm_tcb'
*** ERROR C122 IN LINE 267 OF RTX_CONFIG.C: 'm_tcb': unknown size
*** ERROR C33 IN LINE 267 OF RTX_CONFIG.C: 'm_tcb': invalid storage class
268
269 /* Memory pool for System stack allocation. Need to allocate 2 additional */
270 /* entries for 'os_clock_demon()' and 'os_idle_demon()'. */
271 static U64 m_stk[OS_STKSIZE * (OS_TASKCNT-OS_PRIVCNT+2)/2 + 2];
*** ERROR C29 IN LINE 271 OF RTX_CONFIG.C: formal/parameter has illegal storage class
*** ERROR C33 IN LINE 271 OF RTX_CONFIG.C: 'U64': invalid storage class
*** ERROR C25 IN LINE 271 OF RTX_CONFIG.C: syntax error near 'm_stk'
*** ERROR C33 IN LINE 271 OF RTX_CONFIG.C: 'm_stk': invalid storage class
272
273 /* An array of Active task pointers. */
274 P_TCB os_active_TCB[OS_TASKCNT];
*** WARNING C34 IN LINE 274 OF RTX_CONFIG.C: 'P_TCB': missing declaration specifiers
*** ERROR C42 IN LINE 274 OF RTX_CONFIG.C: 'P_TCB': not in formal parameter list
*** ERROR C25 IN LINE 274 OF RTX_CONFIG.C: syntax error near 'os_active_TCB'
*** WARNING C34 IN LINE 274 OF RTX_CONFIG.C: 'os_active_TCB': missing declaration specifiers
*** ERROR C42 IN LINE 274 OF RTX_CONFIG.C: 'os_active_TCB': not in formal parameter list
275
276 #if (OS_ROBIN == 1)
277 static U16 os_robin_time;
ARM COMPILER V2.51a, RTX_Config 06/05/06 10:40:45 PAGE 6
*** ERROR C29 IN LINE 277 OF RTX_CONFIG.C: formal/parameter has illegal storage class
*** ERROR C33 IN LINE 277 OF RTX_CONFIG.C: 'U16': invalid storage class
*** ERROR C25 IN LINE 277 OF RTX_CONFIG.C: syntax error near 'os_robin_time'
*** ERROR C33 IN LINE 277 OF RTX_CONFIG.C: 'os_robin_time': invalid storage class
278 static P_TCB os_tsk_robin;
*** ERROR C29 IN LINE 278 OF RTX_CONFIG.C: formal/parameter has illegal storage class
*** ERROR C33 IN LINE 278 OF RTX_CONFIG.C: 'P_TCB': invalid storage class
*** ERROR C25 IN LINE 278 OF RTX_CONFIG.C: syntax error near 'os_tsk_robin'
*** ERROR C7 IN LINE 278 OF RTX_CONFIG.C: compilation aborted
ARM COMPILATION COMPLETE. 9 WARNING(S), 45 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -