2017-05-30 22:12:10 +00:00
|
|
|
/*
|
|
|
|
TIM.h - Timer Header
|
|
|
|
Part of STM32F4_HAL
|
|
|
|
|
|
|
|
Copyright (c) 2017 Patrick F.
|
|
|
|
|
|
|
|
STM32F4_HAL is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
STM32F4_HAL is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with STM32F4_HAL. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
#ifndef TIM_H_INCLUDED
|
|
|
|
#define TIM_H_INCLUDED
|
|
|
|
|
|
|
|
|
2020-05-19 14:08:14 +00:00
|
|
|
#define TIM1_INIT 200
|
|
|
|
|
|
|
|
|
2017-05-30 22:12:10 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2017-06-01 19:22:26 +00:00
|
|
|
void TIM1_Init(void);
|
2020-12-01 12:29:12 +00:00
|
|
|
void TIM2_Init(void);
|
|
|
|
void TIM3_Init(void);
|
2021-02-07 12:47:16 +00:00
|
|
|
void TIM4_Init(uint16_t autoreload);
|
2017-06-01 19:22:26 +00:00
|
|
|
void TIM9_Init(void);
|
2017-05-30 22:12:10 +00:00
|
|
|
|
2021-02-07 12:47:16 +00:00
|
|
|
uint16_t TIM4_CNT(void);
|
|
|
|
|
2017-05-30 22:12:10 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* TIM_H_INCLUDED */
|