Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/stmhal/timer.h

13 lines
418 B
C
Raw Normal View History

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.
2014-04-02 15:09:36 +01:00
// 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;
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).
2014-04-15 19:52:56 +01:00
extern TIM_HandleTypeDef TIM6_Handle;
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.
2014-04-02 15:09:36 +01:00
void timer_tim3_init(void);
void timer_tim5_init(void);
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).
2014-04-15 19:52:56 +01:00
void timer_tim6_init(uint freq);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 25ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API