aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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. */