66965389C51SND1C的mp3源程序包.rar

源代码在线查看: clock.h

软件大小: 1478 K
上传用户: szdoudou
关键词: 66965389C 66965389 SND1 C51
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*H**************************************************************************
				* NAME:         clock.h
				*----------------------------------------------------------------------------
				* Copyright (c) 2003 Atmel.
				*----------------------------------------------------------------------------
				* RELEASE:      snd1c-refd-nf-4_0_3      
				* REVISION:     1.4     
				*----------------------------------------------------------------------------
				* PURPOSE:
				* This file contains the clock definition
				*****************************************************************************/
				
				#ifndef _CLOCK_H_
				#define _CLOCK_H_
				
				/*_____ I N C L U D E S ____________________________________________________*/
				
				#include "lib_mcu\pll\pll_drv.h"    /* clock driver definition */
				
				
				/*_____ M A C R O S ________________________________________________________*/
				
				#define _256Fs              0       /* HLR = 0 => 256 Fs */
				#define _384Fs              1       /* HLR = 1 => 384 Fs */
				
				#define VOC_FREQ            3       /* 8 KHz index in freq tables */
				#define USB_FREQ            7       /* 96 MHz index for USB */
				
				
				/*_____ D E F I N I T I O N ________________________________________________*/
				                                    /* Fpll = Fosc * (R+1) / (N+1) */
				typedef struct { Uint16 r_div;      /* pll R divider */
				                 Byte   n_div;      /* pll N divider */
				                 Byte   mp3_div;    /* mp3 clock - 1 divider */
				                 Byte   aud_div;    /* audio clock - 1 divider */
				                 Byte   dac_over;   /* 256 or 384 Fs oversampling freq */
				               } St_clock;
				
				
				/*_____ D E C L A R A T I O N ______________________________________________*/
				
				void    clock_song_init (Byte);
				void    clock_voice_init (void);
				void    clock_usb_init (void);
				void    clock_disable (void);
				
				
				#endif  /* _CLOCK_H_ */
				
							

相关资源