12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- /*****************************************************************************
- ** File: sysapp_timer.h
- **
- ** Description:
- **
- ** Copyright(c) 2008 Sunmedia Technologies - All Rights Reserved
- **
- ** Author : qin.he
- **
- ** $Id: $
- *****************************************************************************/
- #ifndef _SYSAPP_TIMER_H_
- #define _SYSAPP_TIMER_H_
- /*header file*/
- #include <stdio.h>
- #include <string.h>
- #include <ctype.h>
- #include <types.h>
- /*macro define*/
- #define TIMER_PRIORITY_BASE 3
- #define TIMER_STACK_SIZE 4096
- #define SYS_APP_TIMER_FAILED (-1)
- #define SYS_APP_TIMER_SUCCESS (0)
- /*****************************************************************************
- ** FUNCTION : SYSAPP_TIMER_CreateTimer
- **
- ** DESCRIPTION :
- ** Create app infra timer
- **
- ** PARAMETERS :
- ** None
- **
- ** RETURN VALUES:
- ** SYS_APP_TIMER_FAILED: create timer failed
- ** SYS_APP_TIMER_SUCCESS: create timer success
- *****************************************************************************/
- int SYSAPP_TIMER_CreateTimer(void);
- /*****************************************************************************
- ** FUNCTION : SYSAPP_TIMER_ReleaseTimer
- **
- ** DESCRIPTION :
- ** Release app infra timer
- **
- ** PARAMETERS :
- ** None
- **
- ** RETURN VALUES:
- ** SYS_APP_TIMER_SUCCESS: release timer success
- *****************************************************************************/
- int SYSAPP_TIMER_ReleaseTimer(void);
- #endif
|