ATMEL公司AT89C51SND1为主控制器MP3源代码

源代码在线查看: song_task.h

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

相关代码

				/*H**************************************************************************
				* NAME:         song_task.h
				*----------------------------------------------------------------------------
				* Copyright (c) 2003 Atmel.
				*----------------------------------------------------------------------------
				* RELEASE:      snd1c-refd-nf-4_0_3      
				* REVISION:     1.10     
				*----------------------------------------------------------------------------
				* PURPOSE:
				* This file contains the song task definition
				*****************************************************************************/
				
				#ifndef _SONG_TASK_H_
				#define _SONG_TASK_H_
				
				/*_____ I N C L U D E S ____________________________________________________*/
				
				
				/*_____ M A C R O S ________________________________________________________*/
				
				#ifndef PLAYER_PLAY_MODE
				  #error PLAYER_PLAY_MODE must be defined in config.h
				  #define PLAYER_PLAY_MODE    PLAY_DIR
				#endif
				#ifndef PLAYER_PLAY_START
				  #error PLAYER_PLAY_START must be defined in config.h
				  #define PLAYER_PLAY_START   START_STOP
				#endif
				#ifndef PLAYER_PLAY_LOOP
				  #error PLAYER_PLAY_LOOP must be defined in config.h
				  #define PLAYER_PLAY_LOOP    PLAY_NO_LOOP
				#endif
				
				/*----- Mode Values -----*/
				#define PLAY_DIR              0
				#define PLAY_DISK             1
				
				/*----- Start Values -----*/
				#define START_STOP            0
				#define START_PLAY            1
				
				/*------Loop Default Values -----*/
				#define PLAY_LOOP             TRUE
				#define PLAY_NO_LOOP          FALSE
				
				
				/*----- Task states -----*/
				#define SONG_START            0
				#define SONG_INSTALL          1
				#define SONG_IDLE             2
				#define SONG_INIT             3
				#define SONG_PLAY             4
				#define SONG_PLL              5
				#define SONG_PAUSE            6
				#define SONG_NEW              7
				#define SONG_STOP             8
				#define SONG_NO_SONG          9
				#define SONG_NEXT             10
				#define SONG_ERROR            11
				#define SONG_PREV             12
				
				
				/*_____ D E F I N I T I O N ________________________________________________*/
				
				
				/*_____ D E C L A R A T I O N ______________________________________________*/
				
				void    song_task_init (void);
				void    song_task (void);
				
				
				#endif  /* _SONG_TASK_H_ */
				
							

相关资源