www.pudn.com > HT1621Control.rar > variable.c


/*C************************************************************************** 
* NAME:         variable.c 
*---------------------------------------------------------------------------- 
* Copyright (c) 2006 Atmel. 
*---------------------------------------------------------------------------- 
* RELEASE:      C51 Sample       
* REVISION:     1.00      
*---------------------------------------------------------------------------- 
* 
*****************************************************************************/ 
#include "system\reg51.h" 
#include "system\config.h"                      /* scheduler definition */ 
#include "system\compiler.h"                      /* scheduler definition */ 
#include "task\kbd_task.h" 
 
idata   Byte    gl_key;                 /* value of the key pressed */ 
 
data    Byte    gl_cpt_tick;            /* general tick counter */ 
data    Byte    gl_led_tick;            /* Led blinking tick */ 
idata   Uint16  gl_act_tick;            /* Activity tick */ 
data    Byte    gl_kbd_tick;            /* keyboard tick counter */ 
data    Byte    gl_repeat_tick;            /* Led blinking tick */ 
data    int     vol_tick;            /* volume tick */ 
data    Byte    disp_tick;            /* volume tick */ 
 
idata	char 	DTS_buffer[6]; 
idata	int		dts_frequency; 
idata	int		Mem_frequency; 
bdata	bit		DtsMen_flag ;		/*  Flag of DTS Frequency pointer mem address */ 
 
bdata   bit     gl_key_press;           /* set to TRUE if a key is decoded */ 
bdata   bit     gl_key_repeat;          /* set to TRUE if a key is repeated */ 
bdata	bit		key_flag; 
idata   Byte    gl_key;                 /* value of the key pressed */ 
 
data	Byte    mode_state;               /* task state */ 
data	Byte    disp_state;               /* disp state */ 
bdata	bit		vol_flag = Low; 
data	Byte    vol_value = 20;               /* volume value */ 
 
//idata	char 	ht1621disp_Buffer[9]; 
data	Byte 	Mem_add; 
 
idata   Byte    TouchPad[5];                 /*  value of the Touch Pad */ 
data    Byte    touch_tick;            /* Touch tick counter */