timer4.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*******************************************************
  2. * File name锛� timer4.h
  3. * Author : pd
  4. * Versions : 1.0
  5. * Description: timer4 set
  6. * History:
  7. * 1.Date: 2015-7-2
  8. * Author: pd
  9. * Action: create
  10. *********************************************************/
  11. #ifndef _TIMER3_H_
  12. #define _TIMER3_H_
  13. #include <stdint.h>
  14. #include "sys.h"
  15. #include "stm32f1xx_hal.h"
  16. typedef u8 (*time3_callback)(void *arg);
  17. /******************************************************************************
  18. * FunctionName : timer4_init
  19. * Description : init timer4.
  20. * Parameters : time_set: the set time, uint is ms.
  21. * Returns :
  22. ******************************************************************************/
  23. void timer3_init(u16 time_set, u8 repeat_flag, time3_callback time3_cb);
  24. /******************************************************************************
  25. * FunctionName : timer1_start
  26. * Description : start timer1.
  27. * Parameters :
  28. * Returns :
  29. ******************************************************************************/
  30. void timer3_start(void);
  31. /******************************************************************************
  32. * FunctionName : timer1_stop
  33. * Description : stop timer1.
  34. * Parameters :
  35. * Returns :
  36. ******************************************************************************/
  37. void timer3_stop(void);
  38. #endif /* _PANDO_TIMER_H_ */