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

Support of the LGT8F328 MCU using Timer 3 for tick generation #121

Open gpb01 opened 1 year ago

gpb01 commented 1 year ago

Library version with support for MCU LGT8F328 using Timer 3 for tick generation.

In the FreeRTOSVariant.h file, you need to uncomment the line containing "#define portUSE_LGT_TIMER3" (line 58) to generate the code for the above MCU.

Guglielmo

P.S.: the "doc" folder also included a file named "tick_sources_lgt_timer3.cpp" (_written following the example of tick_sourcestimer0.cpp), but I don't know how to use it.

gpb01 commented 1 year ago

A small note:

... porting the library to an MCU with only 2 KB of SRAM is more of an exercise in figuring out how to port to a specific MCU than a really useful thing. Just like on the Arduino UNO R3, on the LGT8F328, it is practically impossible to use FreeRTOS™ for a real application because of the lack of SRAM... honestly, what you can do, is a small demonstration program that shows how it works, but nothing more. :-\

Guglielmo