diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-04-15 19:52:56 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-04-15 19:52:56 +0100 |
| commit | 4d7f4eb6a924f4df458eda2e624f429d67ef2248 (patch) | |
| tree | 84b51ea3c49ab375e0bdfaa0c4c29885c610e7d5 /stmhal/timer.h | |
| parent | e95da5b784b290c81cf670b7094d4ea8ea754bc5 (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.h | 2 |
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); |
