📄 config.h
字号:
/*H**************************************************************************
* $RCSfile: config.h,v $
*----------------------------------------------------------------------------
* Copyright (c) 2002 Atmel.
*----------------------------------------------------------------------------
* RELEASE: $Name: DEMO_FAT_1_2_5 $
* REVISION: $Revision: 1.8 $
* FILE_CVSID: $Id: config.h,v 1.8 2002/06/06 15:33:01 ffosse Exp $
*----------------------------------------------------------------------------
* PURPOSE:
* This file contains the system configuration definition
*****************************************************************************/
#ifndef _CONFIG_H_
#define _CONFIG_H_
/*_____ I N C L U D E S ____________________________________________________*/
#include "..\..\..\..\lib\compiler.h" /* compiler definitions */
#include "..\..\..\..\lib\regsnd1.h" /* component declaration */
#include "..\..\..\..\lib\extsnd1.h" /* component extended declaration */
/*_____ M A C R O S ________________________________________________________*/
/*----- Library Configuration -----*/
/* Timer Driver */
#define T0_X2 TRUE /* FT0_IN always Fosc/2 */
#define T1_X2 TRUE /* FT1_IN always Fosc/2 */
/* Keyboard Driver */
#define KBD_EXIT_PD FALSE /* Exit power down configuration */
#define LOCK_ROW P1_2 /* ROW of lock key */
#define KEY_LOCK KEY_2_3 /* Keypad Locked */
/* USB Driver: See usb_drv.h */
/*----- System Definition -----*/
/* Clock */
#define X2_MODE /* X2 mode */
//#undef X2_MODE /* no X2 mode */
#define FOSC 16000 /* oscillator frequency (KHz) */
#ifdef X2_MODE
#define FPER FOSC
#else
#define FPER FOSC/2
#endif
/* Scheduler Tick */
#define SCHEDULER_TICK 10 /* unit is ms */
/* ADC Frequency */
#define SAMPLING_PERIOD 0.125 /* unit is ms */
#define SECT_PER_SECOND (2/SAMPLING_PERIOD) /* 512 bytes sector size */
/* Interrupt Priorities */
#define EX0_PRIO ((Byte)0)
#define T0_PRIO ((Byte)3)
#define EX1_PRIO ((Byte)0)
#define T1_PRIO ((Byte)2)
#define MP3_PRIO ((Byte)2)
#define AUD_PRIO ((Byte)2)
#define MMC_PRIO ((Byte)0)
#define I2C_PRIO ((Byte)0)
#define SPI_PRIO ((Byte)0)
#define ADC_PRIO ((Byte)0)
#define KBD_PRIO ((Byte)0)
#define USB_PRIO ((Byte)1)
/*----- Firmware Definition -----*/
#define GL_BUF_SIZE (256)
/* Voice Mode Configuration */
#define WAV_FILE_NB ((Byte)6) /* number of files in root dir */
#define WAV_FILE_DURATION ((Byte)20) /* unit is s */
/* Mass Storage Configuration */
#define MS_MAX_LUN (1) /* number of logical unit - 1 */
/* Chip Version */
#define CHIP_VERSION ((Byte)0x82)
/* Firmware Version */
#define SYS_VERSION "V1.2.5"
/*_____ D E F I N I T I O N ________________________________________________*/
/* FAT Format Structure */
typedef struct
{
Uint16 nb_cylinder;
Byte nb_head;
Byte nb_sector;
Byte nb_hidden_sector;
Byte nb_sector_per_cluster;
} s_format;
/*_____ D E C L A R A T I O N ______________________________________________*/
#endif /* _CONFIG_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -