/***************************************************************************** ** 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 #include #include #include /*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