⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accordoptimer.h

📁 本程序为ST公司开发的源代码
💻 H
字号:
/************************************************** * * accordoptimer.h * * CVS ID:   $Id: accordoptimer.h,v 1.37 2007/10/02 14:21:01 dellorto Exp $ * Author:   Raffaele Belardi [RB] - STM * Date:     $Date: 2007/10/02 14:21:01 $ * Revision: $Revision: 1.37 $ * * Description: * *   Timer interrupt handler. Processes all the software *   timers used by the application * *************************************************** * * COPYRIGHT (C) ST Microelectronics  2005 *            All Rights Reserved * *************************************************** * * STM CVS Log: * * $Log: accordoptimer.h,v $ * Revision 1.37  2007/10/02 14:21:01  dellorto * added T180ms (handling of stop insertion for Shinwa CLC01) * * Revision 1.36  2007/09/26 15:06:42  dellorto * added timer for hf detection * * Revision 1.35  2007/09/21 05:35:52  hara * Initial implementation for WMDRM feature into A+. * * Revision 1.34  2007/09/07 07:07:49  dellorto * Added time value T35ms for Tanashin loader * * Revision 1.33  2007/08/14 15:28:26  dellorto * multiple mechanisms * * Revision 1.32  2007/04/11 14:20:13  belardi * Integration of HAVE_CD_MECHA modification by [GP] * * Revision 1.31  2007/03/16 14:17:02  dellorto * added timer for rate track counting, used recovering TTM * * Revision 1.30  2006/12/04 14:45:59  dellorto * added timers for new de-bouncing * re-ordered timers vector * * Revision 1.29  2006/11/27 19:52:12  belardi * Modifications for HAVE_TEMP_SENSOR * * Revision 1.28  2006/11/24 16:28:11  sedmik * fixed HAVE_TEMP_SENSOR define * * Revision 1.27  2006/11/24 11:18:30  zhong * Karbin for Temperature sensor detect * * Revision 1.26  2006/11/13 19:03:59  longauer * *** empty log message *** * * Revision 1.25  2006/10/31 08:51:08  belardi * Removed unused STM hostif timer * * Revision 1.24  2006/10/26 10:24:35  dellorto * added timer for loader transition measurement * * Revision 1.23  2006/10/18 12:39:58  belardi * Removed USE_STM_HOSTIF, changed to APM_PICKUP * * Revision 1.22  2006/10/10 17:21:19  longauer * to prevent some  devices which could hook the driver during enumeration * * Revision 1.21  2006/09/18 09:55:24  belardi * Corrected CVS keyword usage * * Revision 1.20  2006/09/18 09:24:52  belardi * Added Log CVS keyword into file header * * ***************************************************/#ifndef _ACCORDOPTIMER_INCLUDED_#define _ACCORDOPTIMER_INCLUDED_typedef uint32 OSAL_TIME_t;typedef enum{#if (HAVE_CD_MECHA == 1)  SERVO_SAFETY_TIMER,  SERVO_FUNCTION_TIMER,  SERVO_ACQ_INT_TIMER,  SERVO_FOCUS_FOUND_TIMER,  SERVO_CHECK_TRACKING_TIMER,  SERVO_CHECK_HF_TIMER,  SERVO_TTM_TIMER,#endif  TOC_TIMER,#if (HAVE_CD_MECHA == 1)  LOADER_TIMER,#endif  MONITOR_TIMESLICE,             // new for Accordop  AUTOLOAD_TIMER,#if (HAVE_CD_MECHA == 1)  MUTE_TIMER,#endif#ifdef APM_PICKUP  LOADER_SW_TIMER,  LOADER_SW_DB_TIMER,  SERVO_CAV_INT_TIMER,  TEMPERATURE_TIMER,  I2C_TIMER,  CRQ_TIMER,#else #if (HAVE_CD_MECHA == 1)  HW_EJECT_TIMER,  LOADER_SW1_DB_TIMER,  LOADER_SW2_DB_TIMER,  LOADER_SW4_DB_TIMER,  SERVO_SLEDGE_TIMER,  SERVO_TRACK_COUNT_TIMER, #endif#if (HAVE_TEMP_SENSOR==1)  TEMPERATURE_TIMER,  TEMPERATURE_SPONT_SEND_TIMER, 	// for spontaneous send out the message karbin#endif  HOSTIF_LL_STOP_TIMER,         // new for Accordop  HOSTIF_LL_CRQ_TIMER,          // new for Accordop#endif#if (0 != HAVE_USB)  USB_TIMER,                     // new for Accordop  USB_ENUM_TIMER,  USB_CHECK_MEDIUM_TIMER,#endif#if (0 != HAVE_SDC)  SDC_TIMER,#endif /* HAVE_SDC */#if((0 != HAVE_SDC) || (0 != HAVE_USB))   //JS for initial USB/SDC messaging  STARTUP_MESSAGING_TIMER,#endif#if (0 != HAVE_WMDRM)  FILESYS_TIMER,#endif  #if (OS20_PROFILING == 1)  PROFILING_TIMER,#endif  MAX_TIMERS,} OSAL_TIMEOUT_ID_t;#define T0ms            0#define T1ms            1#define T2ms            2#define T4ms            4#define T6ms            6#define T7ms            7#define T10ms           10#define T12ms           12#define T14ms           14#define T16ms           16#define T20ms           20#define T30ms           30#define T35ms           35#define T50ms           50#define T80ms           80#define T100ms          100#define T150ms          150#define T180ms          180#define T200ms          200#define T250ms          250#define T300ms          300#define T400ms          400#define T500ms          500#define T600ms          600#define T700ms          700#define T800ms          800#define T1000ms         1000#define T1500ms         1500#define T2000ms         2000#define T3000ms         3000#define T3500ms         3500#define T4000ms         4000#define T5000ms         5000#define T10000ms        10000#define T1s         T1000ms#define T2s         T2000ms#define T3s         T3000ms#define T3s5        T3500ms#define T5s         T5000ms#define T6s         6000#define T10s        T10000ms#define T20s        20000#define T30s        30000#define T50s        50000#define T60s	    60000void OSAL_timer_init(void);void OSAL_start_timeout(OSAL_TIMEOUT_ID_t timer_id, OSAL_TIME_t timer_value);void OSAL_stop_timeout(OSAL_TIMEOUT_ID_t timer_id);uint8 OSAL_timeout_in_progress(OSAL_TIMEOUT_ID_t timer_id);OSAL_TIME_t OSAL_get_timeout(OSAL_TIMEOUT_ID_t timer_id);OSAL_TIME_t OSAL_time_get(void);OSAL_TIME_t OSAL_elapsed_time(OSAL_TIME_t stopwatch_start);#define start_timer       OSAL_start_timeout#define stop_timer        OSAL_stop_timeout#define timer_in_progress OSAL_timeout_in_progress#define get_timer         OSAL_get_timeout#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -