aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/stm32f2/include
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-03 00:02:10 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-03 00:04:01 -0400
commitff56b76d41a390ed193da180316690f6e2dcbb75 (patch)
tree5ae29c96a64602882cb09b77052e936d3107d623 /libmaple/stm32f2/include
parentcc40b48edacdee58e56e443993aa3c1f22c9374e (diff)
downloadlibrambutan-ff56b76d41a390ed193da180316690f6e2dcbb75.tar.gz
librambutan-ff56b76d41a390ed193da180316690f6e2dcbb75.zip
STM32F2: Add timer_get_af().
Pull some code out of the F2 pinMode() into a utility function. This feels generally useful enough to be exposed to the users (it will, for example, make it easier to implement input capture in a clean way). Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/stm32f2/include')
-rw-r--r--libmaple/stm32f2/include/series/timer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libmaple/stm32f2/include/series/timer.h b/libmaple/stm32f2/include/series/timer.h
index 0d959d0..ed473b4 100644
--- a/libmaple/stm32f2/include/series/timer.h
+++ b/libmaple/stm32f2/include/series/timer.h
@@ -34,6 +34,7 @@
#define _LIBMAPLE_STM32F2_TIMER_H_
#include <libmaple/libmaple_types.h>
+#include <libmaple/gpio.h> /* for gpio_af */
/*
* Register maps and base pointers
@@ -167,4 +168,10 @@ extern struct timer_dev *TIMER12;
extern struct timer_dev *TIMER13;
extern struct timer_dev *TIMER14;
+/*
+ * Routines
+ */
+
+gpio_af timer_get_af(struct timer_dev *dev);
+
#endif