aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/include
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-02 20:36:36 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-02 20:36:36 -0400
commitdaa792f486ea7ce848c37eee636c73824efec396 (patch)
tree0ea89393f2344dd6027f91d8ac888e7d8c822ddd /libmaple/include
parentff6a1e449f6e722ca33c8a0d4131574b6efc02f9 (diff)
downloadlibrambutan-daa792f486ea7ce848c37eee636c73824efec396.tar.gz
librambutan-daa792f486ea7ce848c37eee636c73824efec396.zip
Add timer_has_cc_channel().
This is a convenience function for deciding whether a timer supports a particular capture/compare channel. It's necessary because of those nuisance "general purpose" timers that only have a subset of the channels. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/include')
-rw-r--r--libmaple/include/libmaple/timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmaple/include/libmaple/timer.h b/libmaple/include/libmaple/timer.h
index 887b7eb..5d9650c 100644
--- a/libmaple/include/libmaple/timer.h
+++ b/libmaple/include/libmaple/timer.h
@@ -599,6 +599,7 @@ void timer_init(timer_dev *dev);
void timer_disable(timer_dev *dev);
void timer_set_mode(timer_dev *dev, uint8 channel, timer_mode mode);
void timer_foreach(void (*fn)(timer_dev*));
+int timer_has_cc_channel(timer_dev *dev, uint8 channel);
/**
* @brief Timer interrupt number.