can we use xQueueSendFromISR() in vAnyTaskFunction(void *) ?

I am using FreeRTOS in lpc1768 and the compiler is GCC. xQueueSendFromISR() and xQueueReceiveFromISR() API functions should always be called from vSoftwareInterruptHandler(). Is it ok to call xQueueSendFromISR() or xQueueReceiveFromISR() API function from vAnyTaskFunction(void *) rather than calling from ISR function.

can we use xQueueSendFromISR() in vAnyTaskFunction(void *) ?

…it is not clear what you are asking. If your question is “can the interrupt safe versions of the queue send and receive functions be called from a task”, then the answer is probably yes, but only because you are using the Cortex-M port, it is not an answer that applies to all ports. Regards.