Skip to content

Conversation

@HanesSciarrone
Copy link
Contributor

Description of the feature or fix

The FreeRTOS ported by Espressif changes the standard FreeRTOS API to support multi-core SoCs. Therefore, this change generate compatibility with the new Espressif API.

Fixes issue #5810

The FreeRTOS ported by Espressif changes the standard FreeRTOS API to support multi-core SoCs. Therefore, this change generate compatibility with the new Espressif API

Fixes lvgl#5810
Code-format.py introduces an error when trying to resolve LVGL coding style

fixes lvgl#5810
Copy link
Member

@kisvegabor kisvegabor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

It just came to my mind that we could automatically detect the ESP environment via an #ifdef. E.g. #ifdef ESP_PLATFORM I'm not sure if really ESP_PLATFORM shall be used, but we are using it in Cmake.

What do you think about it?

Kconfig Outdated
bool "1: PTHREAD"
config LV_OS_FREERTOS
bool "2: FREERTOS"
config LV_OS_FREERTOS_ESP
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the indentation.

Copy link
Collaborator

@PGNetHun PGNetHun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just minor indentation corrections are needed, the config and code changes seem OK.

@HanesSciarrone
Copy link
Contributor Author

Hi @kisvegabor

I've done some research on the ESP_PLATFORM macro. As far as I can see the macro is set to 1 when the CMake file is processed within the ESP-IDF build system Documentation ESP-IDF. My doubt is if we use the Arduino framework instead of ESP-IDF, I'll test it in my development environment while writing in the issue to ask the users if they can test it also.

A different approach to detect with you are using the FreeRTOS ported by Espressif. We detect it
using the ESP_PLATFORM macro defined by ESP-IDF framework.

fixes lvgl#5810
@HanesSciarrone
Copy link
Contributor Author

Hi @kisvegabor

I've tested the approach you commented using the ESP_PLATFORM macro and it works perfectly. I think that it is a better approach because the modified files are less.

@kisvegabor
Copy link
Member

Great! Please update PR accordingly.

Copy link
Collaborator

@PGNetHun PGNetHun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, these new changes are even better!

@HanesSciarrone
Copy link
Contributor Author

@kisvegabor What do you mean by updating the PR accordingly? I already uploaded the changes when I replied to you.

Copy link
Member

@kisvegabor kisvegabor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, all look good! Thank you!

@kisvegabor kisvegabor merged commit c647c39 into lvgl:master Mar 16, 2024
HongChao6 pushed a commit to HongChao6/lvgl that referenced this pull request Oct 18, 2024
HongChao6 pushed a commit to HongChao6/lvgl that referenced this pull request Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants