i'm just wrote a blinking Program but there is some bugs come, i couldn't rectify that , so Please help me.
My code is...
#if !defined (MAKE_WITH_FREE_LIB) && !defined (MAKE_WITH_STD_LIB)
/* */
/* configuration options for project that's made using the */
/* source files. */
/* */
#define OSCOMPILER OSHT_PICC
#define OSEVENTS 0
#define OSTARGET OSPIC18
#define OSTASKS 2
#define OSLOC_ALL
#else
/* */
/* configuration options for projects that are made using */
/* either the freeware or standard libraries. Multitasking */
/* with delays and events, events services called only */
/* from background. */
/* */
#define OSUSE_LIBRARY TRUE
#ifdef MAKE_WITH_FREE_LIB
#define OSLIBRARY_TYPE OSF
#elif defined(MAKE_WITH_STD_LIB)
#define OSLIBRARY_TYPE OSL
#endif
#define OSLIBRARY_CONFIG OSM
#define OSLIBRARY_VARIANT OSNONE
#endif
//******************************
//******final.h*********
#include "mem.c"
#include "inittask.c"
#include "init.c"
#include "delay.c"
#include "task.c"
#include "chk.c"
#define MAKE_WITH_STD_LIB TRUE
#define PORT PORTE
#define Init() do{ TRISE = 0X00;
PORTE = 0X00;
}while(0)
__CONFIG(1, HS);
//******************************************
//********Main program**************
#include "salvo.h"
#include "final.h"
#define Task1_P OSTCBP(1)
#define Task2_P OSTCBP(2)
void TaskBlink(void);
void TaskShow(void);
_OSLabel(TaskBlink1)
_OSLabel(TaskShow1)
void TaskBlink(void){
OS_Delay(50,TaskBlink1);
PORT^=~0x02;
OS_Delay(50,TaskBlink1);
}
int main(void) {
Init();
OSInit();
OSCreateTask(TaskBlink, Task1_P,1);
OSCreateTask(TaskShow, Task2_P,1);
for(;
OSSched();
}
After compiling the project igot error as...
Warning[361] C:Documents and Settings
each-3Desktopexfinal.c 16 : function declared implicit int
Error[192] C:Documents and Settings
each-3Desktopexfinal.c 25 : undefined identifier "OStcbArea"
Error[981] C:Documents and Settings
each-3Desktopexfinal.c 25 : pointer required
Error[981] C:Documents and Settings
each-3Desktopexfinal.c 25 : pointer required
Warning[359] C:Documents and Settings
each-3Desktopexfinal.c 25 : illegal conversion between pointer types
Error[981] C:Documents and Settings
each-3Desktopexfinal.c 26 : pointer required
Error[981] C:Documents and Settings
each-3Desktopexfinal.c 26 : pointer required
Warning[359] C:Documents and Settings
each-3Desktopexfinal.c 26 : illegal conversion between pointer types
Halting build on first failure as requested.