Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Task.cpp
- Revision:
- 0:e381c3adaa04
- Child:
- 1:e95b703c6ad7
diff -r 000000000000 -r e381c3adaa04 Task.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Task.cpp Fri Jan 14 19:51:13 2011 +0000
@@ -0,0 +1,23 @@
+
+#include "Task.h"
+
+Task::Task()
+{
+ interval = DEFAULT_INTERVAL;
+}
+
+Task::Task(int _interval)
+{
+ interval = _interval;
+}
+
+void Task::start()
+{
+ ticker.attach_us(this, &Task::preTick, interval);
+}
+
+
+void Task::preTick()
+{
+ this->tick();
+}
\ No newline at end of file