aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-13 11:53:36 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-13 11:54:42 -0400
commit28180328ef57328a0352fb00e2fcd4253b3166a9 (patch)
tree13f614a7f6c33042bb91f95d5aaa1a7b9e464688
parent457f448bf775202d18d3d52662401ca8237cf453 (diff)
downloadlibrambutan-28180328ef57328a0352fb00e2fcd4253b3166a9.tar.gz
librambutan-28180328ef57328a0352fb00e2fcd4253b3166a9.zip
HardwareTimer: add a c_dev().
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r--wirish/include/wirish/HardwareTimer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wirish/include/wirish/HardwareTimer.h b/wirish/include/wirish/HardwareTimer.h
index 4e140ca..22aa010 100644
--- a/wirish/include/wirish/HardwareTimer.h
+++ b/wirish/include/wirish/HardwareTimer.h
@@ -205,6 +205,14 @@ public:
*/
void refresh(void);
+ /* Escape hatch */
+
+ /**
+ * @brief Get a pointer to the underlying libmaple timer_dev for
+ * this HardwareTimer instance.
+ */
+ timer_dev* c_dev(void) { return this->dev; }
+
/* -- The rest of this file is deprecated. --------------------------------- */
/** @brief Deprecated; use setMode(channel, mode) instead. */