header.hpp 600 B

123456789101112131415
  1. //This is the place to declare every single function
  2. //and global variable that is going to be reused between cpp files.
  3. //We are going to use the TaskScheduler, but only the declarations part.
  4. //Remember to put customization macros before the #include:
  5. #define _TASK_SLEEP_ON_IDLE_RUN
  6. #include <TaskSchedulerDeclarations.h>
  7. //Let the runner object be a global, single instance shared between object files.
  8. extern Scheduler runner;
  9. extern Task t2; //the t2 is defined in file2, but we need to access it from file1.
  10. //This function needs to be shared (between file2 and file1).
  11. void t3Callback();