diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-02 15:09:36 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-02 15:09:36 +0100 |
commit | a12be917a4644305e7813b3f4b11880aba3632ca (patch) | |
tree | d1c5cacae61e38673d034bbdc55b0a534c9fc62a /stmhal/timer.h | |
parent | 69dee59ce44685d34662870fff439d7249cace36 (diff) |
stmhal: Add timer module; move servo PWM from TIM2 to TIM5.
As per issue #257, servo is better on TIM5 because TIM2 is connected to
more GPIO.
Diffstat (limited to 'stmhal/timer.h')
-rw-r--r-- | stmhal/timer.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stmhal/timer.h b/stmhal/timer.h new file mode 100644 index 000000000..317b39b3f --- /dev/null +++ b/stmhal/timer.h @@ -0,0 +1,10 @@ +// Periodically, the state of the buffer "UserTxBuffer" is checked. +// The period depends on USBD_CDC_POLLING_INTERVAL +// The value is in ms. The max is 65 and the min is 1. +#define USBD_CDC_POLLING_INTERVAL (10) + +extern TIM_HandleTypeDef TIM3_Handle; +extern TIM_HandleTypeDef TIM5_Handle; + +void timer_tim3_init(void); +void timer_tim5_init(void); |