From 4d7f4eb6a924f4df458eda2e624f429d67ef2248 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 15 Apr 2014 19:52:56 +0100 Subject: 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). --- stmhal/timer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stmhal/timer.h') 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); -- cgit v1.2.3