tim.h 718 B

1234567891011121314151617181920212223242526
  1. #ifndef __TIM_AS_H
  2. #define __TIM_AS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /* 包含头文件-----------------------------------------------------------------*/
  7. #include "stm32f10x.h"
  8. /* 宏定义---------------------------------------------------------------------*/
  9. /* 类型定义-------------------------------------------------------------------*/
  10. /* 全局变量-------------------------------------------------------------------*/
  11. /* 函数原型-------------------------------------------------------------------*/
  12. void tim1_config(uint16_t arr, uint16_t psc);
  13. void tim2_config(uint16_t arr, uint16_t psc);
  14. void tim3_config(uint16_t arr, uint16_t psc);
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif /* tim.h */