Hello,
After reading a LOT and almost the entire user manual and several chapters in my book that covers salvo very superficial I have no one else to ask than here, hopefully someone have encauntered something similiar.
I installed Salvo lite with C18 compiler, using MPLAB.
Got the RTOS to work with smaller examples. No errors until today. Needed to get going with OS_Delay();
This is what the compiler says:
Error - could not find definition of symbol 'OSDelay' in file './main.o'.
Errors : 1
#pragma config OSC = INTIO67, FCMEN = OFF, IESO = OFF, PWRT = OFF, BOREN = SBORDIS, BORV = 3, WDT = OFF
#pragma config WDTPS = 32768, MODE = MC, ADDRBW = ADDR20BIT, DATABW = DATA16BIT, WAIT = OFF, CCP2MX = PORTC
#pragma config ECCPMX = PORTE, LPT1OSC = OFF, MCLRE = ON, STVREN = ON, LVP = OFF, BBSIZ = BB2K, XINST = OFF
#include <salvo.h>
#undef OSC
#include <p18f8722.h>
#include <stdio.h>
#include "portmap.h"
#include "Init.h"
#include "isr.h"
#include <timers.h>
void Count_Task( void );
_OSLabel(Count_Task1)
_OSLabel(Display_Task1)
_OSLabel(delay1)
_OSLabel(delay2)
void main( void )
{
Init();
OSInit();
OSCreateTask(Count_Task, OSTCBP(1), 10);
while(1)
{
OSSched();
}
}
void Count_Task( void )
{
while(1)
{
LED1status = 1;
OS_Delay(2, delay1);
LED1status = 0;
OS_Delay(6, delay2);
OS_Yield(Count_Task1);
}
}