uTask.h 530 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __U_TASK_S_H_
  2. #define __U_TASK_S_H_
  3. #include "pt-timer.h"
  4. typedef enum{
  5. UTIMER_BEEP,
  6. UTIMER_MIC,
  7. UTIMER_MAX
  8. }UTIMER_ENUM;
  9. void ptTimerTick(void);
  10. void ptAllInit(void);
  11. void ptTaskRun(void);
  12. extern pt_timer_t pt_timerPool;
  13. void uSysTickUpdate(void);
  14. void uTimerStart(unsigned int *timerId, unsigned int dlyTime);
  15. char uTimerExpired(unsigned int *timerId);
  16. void uTimerHardDly(short time_10ms);
  17. void uTimerCreate(unsigned char type,int timerms);
  18. void uTimerCall(void);
  19. unsigned int uSysTickGet(void);
  20. #endif