ts.cpp 1.2 KB

1234567891011121314151617181920
  1. //This is the only .cpp file that gets the #include<TaskScheduler.h>.
  2. //Without it, the linker would not find necessary TaskScheduler's compiled code.
  3. //
  4. //Remember to put customization macros here as well.
  5. //
  6. //And don't import any common headers (here: header.hpp)
  7. //
  8. //Really. This file needs to be short. All stuff is in TaskScheduler.h.
  9. // #define _TASK_TIMECRITICAL // Enable monitoring scheduling overruns
  10. #define _TASK_SLEEP_ON_IDLE_RUN // Enable 1 ms SLEEP_IDLE powerdowns between tasks if no callback methods were invoked during the pass
  11. // #define _TASK_STATUS_REQUEST // Compile with support for StatusRequest functionality - triggering tasks on status change events in addition to time only
  12. // #define _TASK_WDT_IDS // Compile with support for wdt control points and task ids
  13. // #define _TASK_LTS_POINTER // Compile with support for local task storage pointer
  14. // #define _TASK_PRIORITY // Support for layered scheduling priority
  15. // #define _TASK_MICRO_RES // Support for microsecond resolution
  16. // #define _TASK_STD_FUNCTION // Support for std::function (ESP8266 ONLY)
  17. // #define _TASK_DEBUG // Make all methods and variables public for debug purposes
  18. #include <TaskScheduler.h>