基于AT89C51SND1的MP3的程序设计(包括播放mp3和录音功能)

源代码在线查看: sbc.h

软件大小: 1052 K
上传用户: shkk21
关键词: SND1 89C C51 SND
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*H**************************************************************************
				* NAME:         sbc.h
				*----------------------------------------------------------------------------
				* Copyright (c) 2003 Atmel.
				*----------------------------------------------------------------------------
				* RELEASE:      snd1c-refd-nf-4_0_3      
				* REVISION:     1.5     
				*----------------------------------------------------------------------------
				* PURPOSE:
				* This file contains the SCSI command browsers definition
				*
				* NOTES:
				* - sbc_wr_busy & sbc_rd_busy flags are set to TRUE in mass storage libraries
				*   when write or read is in progress.
				*   These events must be set to FALSE by the display task
				*****************************************************************************/
				
				#ifndef _SBC_H_
				#define _SBC_H_
				
				/*_____ I N C L U D E S ____________________________________________________*/
				
				
				/*_____ M A C R O S ________________________________________________________*/
				
				#if MEM_CHIP_TYPE == CHIP_DF
				  #define Sbc_chip_init     sbc_df_init     /* dataflash memory chip */
				  #define Sbc_command_chip  sbc_command_df
				#elif MEM_CHIP_TYPE == CHIP_NF
				  #define Sbc_chip_init     sbc_nf_init     /* nand flash memory chip */
				  #define Sbc_command_chip  sbc_command_nf
				#elif MEM_CHIP_TYPE == CHIP_HDD
				  #define Sbc_chip_init     sbc_hdd_init    /* hard disk memory chip */
				  #define Sbc_command_chip  sbc_command_hdd
				#elif MEM_CHIP_TYPE == CHIP_NONE
				  #define Sbc_chip_init()                   /* no memory chip */
				  #define Sbc_command_chip()
				#else
				  #error unsupported MEM_CHIP_TYPE defined in config.h
				#endif
				
				#if MEM_CARD_TYPE == CARD_MMC
				  #define Sbc_card_init     sbc_mmc_init    /* multimediacard card */
				  #define Sbc_command_card  sbc_command_mmc
				#elif MEM_CARD_TYPE == CARD_SD
				  #define Sbc_card_init     sbc_sd_init     /* secure digital card */
				  #define Sbc_command_card  sbc_command_sd
				#elif MEM_CARD_TYPE == CARD_CF
				  #define Sbc_card_init     sbc_cf_init     /* compactflash card */
				  #define Sbc_command_card  sbc_command_cf
				#elif MEM_CARD_TYPE == CARD_SMC
				  #define Sbc_card_init     sbc_smc_init    /* smarmedia card */
				  #define Sbc_command_card  sbc_command_smc
				#elif MEM_CARD_TYPE == CARD_CDR
				  #define Sbc_card_init     sbc_atapi_init    /* compactflash card */
				  #define Sbc_command_card  sbc_command_atapi
				#elif MEM_CARD_TYPE == CARD_NONE
				  #define Sbc_card_init()                   /* no card */
				  #define Sbc_command_card()
				#else
				  #error unsupported MEM_CARD_TYPE defined in config.h
				#endif
				
				
				/*_____ D E F I N I T I O N ________________________________________________*/
				
				
				/*_____ D E C L A R A T I O N ______________________________________________*/
				
				
				#endif  /* _SBC_H_ */
				
				
							

相关资源