feilipu / Arduino_FreeRTOS_Library

A FreeRTOS Library for all Arduino ATmega Devices (Uno R3, Leonardo, Mega, etc).
MIT License
848 stars 204 forks source link

RTOS Example Compile Error #111

Closed NoSmoke999 closed 2 years ago

NoSmoke999 commented 2 years ago

Describe the issue

C:\Users\LAF\Documents\Arduino\RTOS_example\RTOS_example.ino: In function 'void setup()': C:\Users\LAF\Documents\Arduino\RTOS_example\RTOS_example.ino:14:15: warning: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] , (const portCHAR )"Blink" // A name just for humans ^~~~ RTOS_example:14:9: error: expected primary-expression before 'const' , (const portCHAR )"Blink" // A name just for humans ^~~~~

Compiles if that portion of statement is removed. i.e. ", Blink" only.

Desktop (please complete the following information):

Win 10 Arduino 1.8.16

feilipu commented 2 years ago

I'm sorry, but I don't recognise the example code. From the directory structure provided I guess it relates to some other library or example.

NoSmoke999 commented 2 years ago

Probably, I don't recall now where I got the example but it is of no matter as it is easily rectified as noted previously. I have installed other examples and it works fine.

One question though, are the Arduino FreeRTOS APIs the same as the more general FreeRTOS program?

feilipu commented 2 years ago

Are the Arduino FreeRTOS APIs the same as the more general FreeRTOS program?

Yes. Entirely. This library just adds the FreeRTOS scheduling timer (using the WDT), and inserts the Arduino loop() function into the FreeRTOS Idle Task. So both Arduino APIs and FreeRTOS APIs are completely as normal.

NoSmoke999 commented 2 years ago

Excellent, and thanks!