www.pudn.com > STC89C52.rar > Device.h, change:2011-04-02,size:1120b


 
#ifndef __DEVICE_H 
#define __DEVICE_H 
 
#include "uCOS-II\includes.h" 
 
#ifdef  DEVICE_GLOBALS 
#define DEVICE_EXT 
#else 
#define DEVICE_EXT	extern 
#endif 
sbit SPK=P3^2; 
 
 
sbit P10=P1^0; 
sbit P11=P1^1; 
sbit P12=P1^2; 
sbit P13=P1^3; 
sbit P14=P1^4; 
sbit P15=P1^5; 
sbit P00=P0^0; 
sbit P01=P0^1; 
sbit P02=P0^2; 
sbit P03=P0^3; 
sbit P04=P0^4; 
sbit P30=P3^0; 
sfr CCAPM4=0xde; 
sfr CCAP4H=0xFe; 
sfr CCON=0xD8; 
 
 
DEVICE_EXT OS_STK	TaskStk1[MaxStkSize]; 
DEVICE_EXT OS_STK	TaskStk2[MaxStkSize];		 
DEVICE_EXT OS_STK	TaskStk3[MaxStkSize]; 
//DEVICE_EXT OS_STK	TaskStk4[MaxStkSize];	 
//DEVICE_EXT OS_STK	TaskStk5[MaxStkSize]; 
//DEVICE_EXT OS_STK	TaskStk6[MaxStkSize];	 
//DEVICE_EXT OS_STK	TaskStk7[MaxStkSize]; 
//DEVICE_EXT OS_STK	TaskStk8[MaxStkSize];	 
 
 
DEVICE_EXT	void	MyTask1(void *ppdata); 
DEVICE_EXT	void	MyTask2(void *ppdata); 
DEVICE_EXT	void	MyTask3(void *ppdata); 
//DEVICE_EXT	void	MyTask4(void *ppdata); 
//DEVICE_EXT	void	MyTask5(void *ppdata); 
//DEVICE_EXT	void	MyTask6(void *ppdata); 
//DEVICE_EXT	void	MyTask7(void *ppdata); 
//DEVICE_EXT	void	MyTask8(void *ppdata); 
 
 
 
#endif