📄 timer.h
字号:
/*********************** SGS-THOMSON MICROELECTRONICS ************************
FILENAME : TIMER.H
VERSION : V1.0
DATE : JAN 1999
AUTHOR(s) : ASHISH RUDOLA / DEEPAK DOSHI
PROCESSOR : ST92195
DESCRIPTION : This module contains constant definitions and function
prototypes.
MODIFICATIONS:
-
*****************************************************************************/
#ifndef _timerhead_
#define _timerhead_
//void init_slice_timer(void);
void init_STDT01(void);
void slice_timer_it(void);
void update_fast_timers(void);
void update_slow_timers(void);
unsigned char check_time(unsigned char);
register volatile unsigned int ST_R asm("RR240");
extern unsigned char slow_timers[]; /* Slow timers */
#define STATUS_TIMER ((unsigned char)0) /* Status display time-out */
/* #define MENU_FLASH_TIMER ((unsigned char)1) */ /* Menu display time-out */
#define COMMERCIAL_TIMER ((unsigned char)2) /* Commercial display time-out */
#define DIGIT_TIMER ((unsigned char)3) /* DIGIT KEY TENS->FIRST DEFINE */
extern unsigned char fast_timers[]; /* Fast timers */
#define COMMAND_TIMER ((unsigned char)0) /* Key debounce timer */
#define KEYBOARD_TIMER ((unsigned char)1) /* Scanning rate */
#define IR_TIMER ((unsigned char)2) /* Scanning rate */
#define CLOCK_TIMER ((unsigned char)3) /* Clock timer */
#define POWER_TIMER ((unsigned char)4) /* Power state time-out */
#define TUNING_AV_TIMER ((unsigned char)5) /* Tuning state time-out */
#define I2CERRORTIMER ((unsigned char)6) /* feman add for I2C */
/* #define IR_TX_TIMER ((unsigned char)6) */
#define AFC_TIMER ((unsigned char)7)
#define AUTOSRCH_TIMER ((unsigned char)7) /* Fading timer */
#define NUMBER_OF_SLOW_TIMERS 4 /* Number of software timers */
#define NUMBER_OF_FAST_TIMERS 8 /* Number of software timers */
#define MS_PER_INTERRUPT 20 /* Timer interrupt every 20ms */
#define US_PER_INTERRUPT 20000 /* Timer interrupt every 20000us */
//#define US_PER_EVENT 8 /* Microcseconds per timer event: (10MHz/4)/20 */
/* Value chenged from 5 to 8 for 10MHz operation */
#define CHECK_SECOND 0 /* Check second timer */
#define CHECK_MINUTE 1 /* Check minute timer */
#define CHECK_HALF_SECOND 2 /* Check second timer */
/*#define MENU_TIME_OUT 240 */ /* Menu time_out (seconds) */
#define STATUS_TIME_OUT 5 /* Status time-out (seconds) */
#define STATUS_TIME_OUT_1 5 /* NICAM Status time-out (seconds) */
#define VOLUME_TIME_OUT 5 /* Volume time-out (seconds) */
#define COMMERCIAL_TIME_OUT 5 /* commercial time out (second */
#define DIGIT_TIME_OUT 5 /* dight time-out (seconds) */
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -