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

📄 variable.c

📁 MP3播放器详细设计方案
💻 C
字号:
/*C**************************************************************************
* NAME:         variable.c
*----------------------------------------------------------------------------
* Copyright (c) 2002 Atmel.
*----------------------------------------------------------------------------
* RELEASE:      snd1c-refd-nf-3_0_0      
* REVISION:     1.10     
*----------------------------------------------------------------------------
* PURPOSE:
* This file contains the definition of the global variables
*****************************************************************************/
 
/*_____ I N C L U D E S ____________________________________________________*/

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


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


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

xdata   Byte    LED_ON;                 /* LED On  X X X X VOL BASS MED TREEB*/
xdata   Byte    LED_FAST;               /* fast or slow or very slow led blinking */

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 */
data    Byte    gl_led_tick;            /* Led blinking tick */
idata   Uint16  gl_act_tick;            /* Activity tick */

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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -