summaryrefslogtreecommitdiff
path: root/stmhal/timer.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-15 19:52:56 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-15 19:52:56 +0100
commit4d7f4eb6a924f4df458eda2e624f429d67ef2248 (patch)
tree84b51ea3c49ab375e0bdfaa0c4c29885c610e7d5 /stmhal/timer.h
parente95da5b784b290c81cf670b7094d4ea8ea754bc5 (diff)
stmhal: Add ADC function to read data at a given frequency.
Reads ADC values into a bytearray (or similar) at a fixed rate. Needs a better name and improved API. Also fix up DAC dma function (which also needs a better name and API).
Diffstat (limited to 'stmhal/timer.h')
-rw-r--r--stmhal/timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/timer.h b/stmhal/timer.h
index 317b39b3f..06e19bcc8 100644
--- a/stmhal/timer.h
+++ b/stmhal/timer.h
@@ -5,6 +5,8 @@
extern TIM_HandleTypeDef TIM3_Handle;
extern TIM_HandleTypeDef TIM5_Handle;
+extern TIM_HandleTypeDef TIM6_Handle;
void timer_tim3_init(void);
void timer_tim5_init(void);
+void timer_tim6_init(uint freq);