Ver Fonte

v2.5.0 - added optional support for std::functions

- added optional support for std::functions via _TASK_STD_FUNCTION
define (Contributed by Edwin van Leeuwen [BlackEdder -
https://github.com/BlackEdder)
Anatoli Arkhipenko há 8 anos atrás
pai
commit
c34f61a6bd
3 ficheiros alterados com 17 adições e 2 exclusões
  1. 9 1
      README
  2. 4 1
      keywords.txt
  3. 4 0
      src/TaskScheduler.h

+ 9 - 1
README

@@ -1,5 +1,5 @@
 Task Scheduler – cooperative multitasking for Arduino and ESP8266 microcontrollers
-Version 2.3.0: 2017-02-24
+Version 2.5.0: 2017-04-27
 
 If you find TaskScheduler useful for your Arduino project, please drop me an email: arkhipenko@hotmail.com
 ----------------------------------------------------------------------------------------------------------
@@ -70,6 +70,14 @@ Check out what TaskScheduler can do:
 
 Changelog:
 =========
+v2.5.0:
+   2017-04-27 - added optional support for std::functions via _TASK_STD_FUNCTION define
+                (Contributed by Edwin van Leeuwen [BlackEdder - https://github.com/BlackEdder)
+
+v2.4.0:
+   2017-04-27 - added destructor to the Task class to ensure tasks are disables and taken off the execution chain
+                upon destruction. (Contributed by Edwin van Leeuwen [BlackEdder - https://github.com/BlackEdder)
+
 v2.3.0:
     2017-02-24 - new timeUntilNextIteration() method within Scheduler class - inquire when a particlar task is 
                  scheduled to run next time

+ 4 - 1
keywords.txt

@@ -9,7 +9,9 @@
 Task	KEYWORD1
 Scheduler	KEYWORD1
 StatusRequest	KEYWORD1
-
+callback_t	KEYWORD1
+onDisable_cb_t	KEYWORD1
+onEnable_cb_t	KEYWORD1
 #######################################
 # Methods and Functions (KEYWORD2)
 #######################################
@@ -86,5 +88,6 @@ _TASK_WDT_IDS	LITERAL1
 _TASK_LTS_POINTER	LITERAL1
 _TASK_PRIORITY	LITERAL1
 _TASK_MICRO_RES	LITERAL1
+_TASK_STD_FUNCTION	LITERAL1
 #######################################
 

+ 4 - 0
src/TaskScheduler.h

@@ -111,6 +111,10 @@
 // v2.4.0:
 //    2017-04-27 - added destructor to the Task class to ensure tasks are disables and taken off the execution chain
 //                 upon destruction. (Contributed by Edwin van Leeuwen [BlackEdder - https://github.com/BlackEdder)
+//
+// v2.5.0:
+//    2017-04-27 - added optional support for std::functions via _TASK_STD_FUNCTION define
+//                 (Contributed by Edwin van Leeuwen [BlackEdder - https://github.com/BlackEdder)
 
 
 #include <Arduino.h>