Very simple cooperative round-robin task scheduler. See examples.

Revision:
2:974a420997a9
Parent:
0:564dd7a5d307
Child:
3:95ec5c83c2fe
--- a/STcallback.h	Fri Mar 04 12:15:38 2011 +0000
+++ b/STcallback.h	Fri Mar 04 12:40:14 2011 +0000
@@ -114,26 +114,7 @@
                 (obj_callback->*method_callback)(arg);
             }
         }
-    }
-    
-    /** call - Overloaded callback initiator.
-     *
-     * Call the callback function without passing an argument.
-     * The callback itself is passed NULL. Note, the callback
-     * prototype should still be <b>uint32_t callback(uint32_t)</b>.
-     *
-     * @return uint32_t The value the callback returns.
-     */
-    void call(void) {
-        if (c_callback != NULL) {
-            (*c_callback)((SimpleTask *)NULL);
-        }
-        else {
-            if (obj_callback  != NULL && method_callback != NULL) {
-                (obj_callback->*method_callback)((SimpleTask *)NULL);
-            }
-        }
-    }    
+    }   
 };
 
 }; // namespace AjK ends