platformio.ini 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ; PlatformIO Project Configuration File
  2. ;
  3. ; TaskScheduler Example 30: _TASK_THREAD_SAFE
  4. ;
  5. ; This example demonstrates the use of _TASK_THREAD_SAFE compile option
  6. ; for safe interaction with TaskScheduler from multiple threads and ISRs.
  7. ;
  8. ; Demonstrates:
  9. ; - FreeRTOS queue implementation for request handling
  10. ; - Safe task control from ISR context
  11. ; - Safe task control from worker threads
  12. ; - StatusRequest signaling from interrupts
  13. ;
  14. ; Please visit documentation for the other options and examples
  15. ; https://docs.platformio.org/page/projectconf.html
  16. [platformio]
  17. default_envs = esp32dev
  18. [env:esp32dev]
  19. platform = espressif32
  20. board = esp32dev
  21. framework = arduino
  22. [env]
  23. lib_deps =
  24. arkhipenko/TaskScheduler @ ^4.0.0
  25. build_flags =
  26. ; Core thread safety features
  27. -D _TASK_THREAD_SAFE ; Enable thread-safe operations
  28. -D _TASK_HEADER_AND_CPP ; Enable CPP compilation
  29. ; Supporting features
  30. -D _TASK_STATUS_REQUEST ; Enable StatusRequest support
  31. -D _TASK_TIMEOUT ; Enable timeout support
  32. -D _TASK_TIMECRITICAL ; Enable timing diagnostics
  33. -D _TASK_ISR_SUPPORT ; Enable ISR-safe methods (ESP only)
  34. ; Debug options
  35. -D _DEBUG_
  36. monitor_speed = 115200
  37. upload_speed = 921600