variable.c

来自「ATMEL 89c51sndc mp3外接硬盘源码」· C语言 代码 · 共 56 行

C
56
字号
/*C**************************************************************************
* NAME:         variable.c
*----------------------------------------------------------------------------
* Copyright (c) 2002 Atmel.
*----------------------------------------------------------------------------
* RELEASE:      snd1c-demo-hdd-0_2_0      
* REVISION:     1.1     
*----------------------------------------------------------------------------
* PURPOSE:
* This file contains the definition of the global variables
*****************************************************************************/

 
/*_____ I N C L U D E S ____________________________________________________*/

#include "config.h"                     /* system definition */
#include "..\file\wav.h"                    /* wav file definition */


/*_____ M A C R O S ________________________________________________________*/


/*_____ D E F I N I T I O N ________________________________________________*/

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 */
idata   Byte    gl_key;                 /* value of the key pressed */
data    Byte    gl_kbd_tick;            /* keyboard tick counter */

bdata   bit     gl_memory;              /* selected memory */
bdata   bit     gl_mem_failure;         /* memory hardware failure */
data    Uint32  gl_ptr_mem;             /* memory data pointer */
data    Byte    gl_mem_tick;            /* memory tick counter */

data    Byte    gl_cpt_tick;            /* general tick counter */

pdata   Byte    gl_buffer[GL_BUF_SIZE];
data    Byte    gl_pointer;

/* variables for SBC libraries */
bit     gl_sbc_wr_protect;              /* mass storage write protected */
bit     gl_sbc_wr_busy;                 /* mass storage write in progress */
bit     gl_sbc_rd_busy;                 /* mass storage read in progress */

/* const for SBC libraries */
code    Byte    gl_sbc_vendor_id[8] = SBC_VENDOR_ID;
code    Byte    gl_sbc_product_id[16] = SBC_PRODUCT_ID;
code    Byte    gl_sbc_revision_id[4] = SBC_REVISION_ID;

code    wav_struct  gl_wav_header = WAV_HEADER;



/*_____ D E C L A R A T I O N ______________________________________________*/

⌨️ 快捷键说明

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