I am using salvo lite for Atmel AVR v3.2.3 with avr-gcc3.3.1. When calling OS_DelayTS in a task together with some runtime exessive code the delay time is wrong. If the "runtime exessice code" takes more the 1 system tick the delay time of OS_DelayTS is shorter then expected.
I changed salvo ut u5main.c in this way:
code:
void TaskBlink( void )
{
static int16_t someTime;
InitPORT();for (; ;) {
someTime=0;
do{
someTime++;
}while (someTime < 500); //this calculation takes 5 ticks
PORT ^= 0x01;
OS_DelayTS(20, TaskBlink1); //the for-loop repeats all 15 ticks instead of all 20 ticks!
}
}
I would be grateful for some help or bug-fix!
Regards,
Martin
[This message has been edited by lattenzaun (edited January 05, 2004).]
[This message has been edited by lattenzaun (edited January 05, 2004).]