-
Notifications
You must be signed in to change notification settings - Fork 1
Pin default pthreads core #41
Copy link
Copy link
Open
Labels
enhancementEnhancement to exisiting featureEnhancement to exisiting featurefirmwareRelated to the firmware running on the hardwareRelated to the firmware running on the hardware
Description
We can use menuconfig to set CONFIG_PTHREAD_DEFAULT_CORE_0=y or CONFIG_PTHREAD_DEFAULT_CORE_1=y.
This setting should then be used in combination with https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/pthread.html#_CPPv430esp_pthread_get_default_configv
and
https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/pthread.html#_CPPv417esp_pthread_cfg_t
to spawn non-display threads on the correct core.
This method is also used by ESPP to pick what core it uses for various threads it uses, for example the haptics foc loop.
For us this may apply in
main.cpplib/sdk/manager/src/manager.cppcomponents/ring_lights/src/ring_lights.cpp
list may not be complete by the time we get around to this
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementEnhancement to exisiting featureEnhancement to exisiting featurefirmwareRelated to the firmware running on the hardwareRelated to the firmware running on the hardware