From 28180328ef57328a0352fb00e2fcd4253b3166a9 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Wed, 13 Jun 2012 11:53:36 -0400 Subject: HardwareTimer: add a c_dev(). Signed-off-by: Marti Bolivar --- wirish/include/wirish/HardwareTimer.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'wirish') 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. */ -- cgit v1.2.3