I am getting started with FreeRTOS and for my firs try (following the pdf "Mastering FreeRTOS") I made a task which displays a string on the monitor. Since I did not found the vPrintString() int he ESP32 port, I wrote :
Code: Select all
void vPrintString( const char *pcString ){
vTaskSuspendAll(); // (1)
printf( "%s", pcString );
fflush( stdout );
}
xTaskResumeAll(); // (2)
}
By reading the pdf "mastering FreeRTOS" I think that it is not good to suppress these lines, and I am wondering
- if I can use such a function vPrintString without vTaskSuspendAl()
- or if I must use another function different from printf to output messages on the monitor.