Open SquaredPotato opened 4 months ago
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.
CONFIG_PTHREAD_DEFAULT_CORE_0=y
CONFIG_PTHREAD_DEFAULT_CORE_1=y
For us this may apply in
main.cpp
lib/sdk/manager/src/manager.cpp
components/ring_lights/src/ring_lights.cpp
list may not be complete by the time we get around to this
We can use menuconfig to set
CONFIG_PTHREAD_DEFAULT_CORE_0=y
orCONFIG_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.cpp
lib/sdk/manager/src/manager.cpp
components/ring_lights/src/ring_lights.cpp
list may not be complete by the time we get around to this