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.
Dependents: registers-example RedWireBridge
Diff: Timeout.h
- Revision:
- 0:d2d9baa1a6d8
- Child:
- 1:0b44a0a56f92
diff -r 000000000000 -r d2d9baa1a6d8 Timeout.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Timeout.h Thu Jan 03 04:25:08 2013 +0000
@@ -0,0 +1,17 @@
+#ifndef __TIMEOUT_H_
+#define __TIMEOUT_H_
+
+#include "LPC17xx.h"
+#include "Ticker.h"
+
+// this class reuses my Ticker class, so that timer 3 can be used for when I code the InterruptIn class
+class Timeout
+{
+ Ticker ticker;
+public:
+ Timeout();
+ void attach(void (*fptr)(void), float);
+ void detach();
+};
+
+#endif
\ No newline at end of file