Explorar o código

v2.5.2 - changes to the barebone implementation option

Anatoli Arkhipenko %!s(int64=8) %!d(string=hai) anos
pai
achega
cc2e95109e
Modificáronse 2 ficheiros con 3 adicións e 8 borrados
  1. 2 4
      src/TaskScheduler.h
  2. 1 4
      src/TaskSchedulerDeclarations.h

+ 2 - 4
src/TaskScheduler.h

@@ -125,8 +125,7 @@
 //
 // v2.5.2:
 //    2018-01-09 - _TASK_INLINE compilation directive making all methods declared "inline" (issue #42)
-//    2018-01-10 - _TASK_BARE_METAL compilation directive. Forward definition of arduino specific methods 
-//                 for bare metal implementations
+
 
 
 #include <Arduino.h>
@@ -148,8 +147,7 @@
 // #define _TASK_MICRO_RES         // Support for microsecond resolution
 // #define _TASK_STD_FUNCTION      // Support for std::function (ESP8266 ONLY)
 // #define _TASK_DEBUG             // Make all methods and variables public for debug purposes
-// #define _TASK_INLINE			   // Make all methods "inline" - needed to support some multi-tab, multi-file implementations
-// #define _TASK_BARE_METAL        // Add declarations of a few arduino-specifc methods 
+// #define _TASK_INLINE		   // Make all methods "inline" - needed to support some multi-tab, multi-file implementations
 
  #ifdef _TASK_MICRO_RES
  

+ 1 - 4
src/TaskSchedulerDeclarations.h

@@ -21,7 +21,6 @@
 // #define _TASK_STD_FUNCTION      // Support for std::function (ESP8266 ONLY)
 // #define _TASK_DEBUG             // Make all methods and variables public for debug purposes
 // #define _TASK_INLINE			   // Make all methods "inline" - needed to support some multi-tab, multi-file implementations
-// #define _TASK_BARE_METAL        // Add declarations of a few arduino-specifc methods 
 
 #ifdef _TASK_DEBUG
     #define _TASK_SCOPE  public
@@ -38,11 +37,9 @@
     extern Scheduler* iCurrentScheduler;
 #endif // _TASK_PRIORITY
 
-#ifdef _TASK_BARE_METAL
+#if !defined(ARDUINO)
 	extern unsigned long micros(void);
 	extern unsigned long millis(void);
-	extern void yield(void);
-	extern void delay(unsigned long);
 #endif