Arduino_FreeRTOS_Library icon indicating copy to clipboard operation
Arduino_FreeRTOS_Library copied to clipboard

Support of the LGT8F328 MCU using Timer 3 for tick generation

Open gpb01 opened this issue 2 years ago • 1 comments

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_sources_timer0.cpp), but I don't know how to use it.

gpb01 avatar Sep 01 '23 09:09 gpb01

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

gpb01 avatar Sep 01 '23 11:09 gpb01