Hi, I'm having this error message when I follow the FreeRTOS tutorial. I've been looking online, but found nothing.
#include <Arduino_FreeRTOS.h>
void TaskBlink(void *pvParameters);
void TaskAnalogRead(void *pvParameters);
void setup() {
// put your setup code here, to run once:
xTaskCreate(TaskBlink, (const portCHAR*)"Blink", 128, NULL, 2, NULL);
}
void loop() {
// put your main code here, to run repeatedly:
}
The error message is
xTaskCreate(TaskBlink, (const portCHAR*)"Blink", 128, NULL, 2, NULL);
^~~~~~~~
sketch_nov17a:7:27: error: expected primary-expression before 'const'
xTaskCreate(TaskBlink, (const portCHAR*)"Blink", 128, NULL, 2, NULL);
^~~~~
sketch_nov17a:7:27: error: expected ')' before 'const'
exit status 1
expected primary-expression before 'const'