variable parameter list

gerhardkreuzer wrote on Thursday, May 28, 2015:


is there any issue ahead to use variable Parameter lists with FreeRTOS (reentrant, preemptive tasking …)

Here a sample to Show what I want to do:

void test_delegate(uint8_t x, …)
va_list argPtr;
int y,z;

va_start(argPtr, x);
y = va_arg(argPtr, int);
z = va_arg(argPtr, int);


With best rehards


rtel wrote on Thursday, May 28, 2015:

Provided you have enough stack, you should not have a problem. We use variable argument lists to implement FreeRTOS_printf() in both FreeRTOS+TCP and FreeRTOS+FAT.