How to define CPU core number for events?

Hello!
I want to port a ESP32 project from Arduino IDE to PIO.
With the Arduino IDE there are parameters, how the ESP32 cores are used.
The parameters are stored in preferences.txt
e.g.
custom_EventsCore=esp32_0
custom_LoopCore=esp32_1

Can I define such with PIO ?

Thank you for discussion

As the boards.txt says,

selecting the menu option is just equivalent to activating these macros. In PlatformIO, that’s equivalently done with build_flags.

build_flags =
  -DARDUINO_RUNNING_CORE=1
  -DARDUINO_EVENT_RUNNING_CORE=1
1 Like