Very simple cooperative round-robin task scheduler. See examples.
Diff: STcallback.h
- Revision:
- 3:95ec5c83c2fe
- Parent:
- 2:974a420997a9
--- a/STcallback.h Fri Mar 04 12:40:14 2011 +0000 +++ b/STcallback.h Fri Mar 04 13:10:39 2011 +0000 @@ -75,7 +75,7 @@ * * Note, the callback function prototype must be:- * @code - * uint32_t myCallbackFunction(uint32_t); + * void myCallbackFunction(SimpleTask *p); * @endcode * @param A C function pointer to call. */ @@ -88,7 +88,7 @@ * Note, the callback method prototype must be:- * @code * public: - * uint32_t myCallbackFunction(uint32_t); + * void myCallbackFunction(SimpleTask *p); * @endcode * @param A C++ object pointer. * @param A C++ method within the object to call. @@ -103,7 +103,7 @@ * * call the callback function. * - * @return uint32_t The value the callback returns. + * @param SimpleTask * pointer. */ void call(SimpleTask *arg) { if (c_callback != 0) {