warning:- unused parameters pvparameters

deepakseshan wrote on Monday, August 05, 2019:

Please have a look at the attached file for led.h.

deepakseshan wrote on Tuesday, August 06, 2019:

#define InitLED(); portLED->IOCR8.U=0x80808080; // initialise and switch on four leds from their port pin

rtel wrote on Tuesday, August 06, 2019:

Before I make any further replies please reply to my questions. “how
does the behaviour differ when you do this from inside a task compared
to when you do it from main() (without the scheduler running).”

In other words, have you tested the function does what you expect when
you are not using FreeRTOS? Why would doing something that accesses a
port, that is writes to hardware with no dependency on FreeRTOS, behave
differently inside a task than outside a task?

deepakseshan wrote on Tuesday, August 06, 2019:

hello richard, The scheduler is working. the problem is with the clearLED() fuction which was called before the InitLED task. Now the Task body is working. I am now trying to toggle the led inside the task body.
Sorry for the inconviince caused Richard. Many Thanks for your continous support.