Skip to content

Pin default pthreads core #41

@SquaredPotato

Description

@SquaredPotato

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.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement to exisiting featurefirmwareRelated to the firmware running on the hardware

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions