sysapp_timer.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*****************************************************************************
  2. ** File: sysapp_timer.h
  3. **
  4. ** Description:
  5. **
  6. ** Copyright(c) 2008 Sunmedia Technologies - All Rights Reserved
  7. **
  8. ** Author : qin.he
  9. **
  10. ** $Id: $
  11. *****************************************************************************/
  12. #ifndef _SYSAPP_TIMER_H_
  13. #define _SYSAPP_TIMER_H_
  14. /*header file*/
  15. #include <stdio.h>
  16. #include <string.h>
  17. #include <ctype.h>
  18. #include <types.h>
  19. /*macro define*/
  20. #define TIMER_PRIORITY_BASE 3
  21. #define TIMER_STACK_SIZE 4096
  22. #define SYS_APP_TIMER_FAILED (-1)
  23. #define SYS_APP_TIMER_SUCCESS (0)
  24. /*****************************************************************************
  25. ** FUNCTION : SYSAPP_TIMER_CreateTimer
  26. **
  27. ** DESCRIPTION :
  28. ** Create app infra timer
  29. **
  30. ** PARAMETERS :
  31. ** None
  32. **
  33. ** RETURN VALUES:
  34. ** SYS_APP_TIMER_FAILED: create timer failed
  35. ** SYS_APP_TIMER_SUCCESS: create timer success
  36. *****************************************************************************/
  37. int SYSAPP_TIMER_CreateTimer(void);
  38. /*****************************************************************************
  39. ** FUNCTION : SYSAPP_TIMER_ReleaseTimer
  40. **
  41. ** DESCRIPTION :
  42. ** Release app infra timer
  43. **
  44. ** PARAMETERS :
  45. ** None
  46. **
  47. ** RETURN VALUES:
  48. ** SYS_APP_TIMER_SUCCESS: release timer success
  49. *****************************************************************************/
  50. int SYSAPP_TIMER_ReleaseTimer(void);
  51. #endif