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

源代码在线查看: c51_drv.h

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

相关代码

				/*H**************************************************************************
				* NAME:         c51_drv.h         
				*----------------------------------------------------------------------------
				* Copyright (c) 2003 Atmel.
				*----------------------------------------------------------------------------
				* RELEASE:      snd1c-refd-nf-4_0_3      
				* REVISION:     1.3     
				*----------------------------------------------------------------------------
				* PURPOSE:
				* This file contains the C51 driver definition
				*****************************************************************************/
				
				#ifndef _C51_DRV_H_
				#define _C51_DRV_H_
				
				/*_____ I N C L U D E S ____________________________________________________*/
				
				
				/*_____ M A C R O S ________________________________________________________*/
				
				
				/*_____ D E F I N I T I O N ________________________________________________*/
				
				
				/*_____ D E C L A R A T I O N ______________________________________________*/
				
				#define Set_x2_mode()           (CKCON |= MSK_X2)
				#define Set_x1_mode()           (CKCON &= ~MSK_X2)
				#define Mode_x2()               ((CKCON & MSK_X2) == MSK_X2)
				
				#define Set_idle_mode()         (PCON |= MSK_IDLE)
				#define Set_power_down_mode()   (PCON |= MSK_PD)
				
				#define Enable_eram()           (AUXR &= ~MSK_EXTRAM)
				#define Disable_eram()          (AUXR |= MSK_EXTRAM)
				#define Set_eram_size(s)        (AUXR &= ~MSK_XRS); (AUXR |= s)
				
				#define Enable_interrupt()      (EA = 1)
				#define Disable_interrupt()     (EA = 0)
				
				
				#endif  /* _C51_DRV_H_ */
				
							

相关资源