martinberlin / cale-idf

CalEPD is an Epaper component driver for the ESP-IDF framework with GFX and font support, optional touch interface, compatible with ESP32 / S2 / S3 / C3
https://fasani.de
Apache License 2.0
270 stars 24 forks source link

FreeRTOS Macro Update #94

Closed UsefulElectronics closed 1 year ago

UsefulElectronics commented 1 year ago

In later FreeRTOS releases, the macro portTICK_RATE_MS was replaced with portTICK_PERIOD_MS. All files were updated

martinberlin commented 1 year ago

Hi @UsefulElectronics Do you think that this is the best solution or using pdMS_TO_TICKS(INT) would be better?

The only problem I see is that if there is still developers using ESP-IDF 4 to 4.2 then portTICK_PERIOD_MS will not be available, right?

UsefulElectronics commented 1 year ago

Both portTICK_PERIOD_MS and portTICK_RATE_MS were supported then.

Found portTICK_PERIOD_MS used in ESP-IDF V4.0 SDIO example.
https://github.com/espressif/esp-idf/blob/release/v4.0/examples/peripherals/sdio/host/main/app_main.c

Handled the requested changes thank you for the response.

I am also working on adding DEPG750BN Epaper.