⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swconfig.h

📁 在ARM7和UC/OSII的平台上实现了GPS自动报站的功能,涉及GPS模块LEA_4S的驱动,位置速寻算法,语音芯片ISD4004的录放音驱动,LED页面管理等等.从启动代码到操作系统的移植以及到业
💻 H
字号:
/****************************************************************
**                                                              *
**  FILE         :  CONFIG.H                                    *
**  COPYRIGHT    :  (c) 2004 .Xiamen Yaxon NetWork CO.LTD       *
**                                                              *
**                                                              *
**              2004/10/22                                      *
****************************************************************/


#ifndef DEF_SWCONFIG
#define DEF_SWCONFIG

/*ALL CONFIGURATIONS AND CONDITIONAL COMPLILE SWITCH IS DEFINED HERE*/

/*CONFIGURATIONS*/

/****************************************************************
* DEFINE IRQ INTERRUP PRIOTY
****************************************************************/
#define SYS_PRIO        				4 
#define US0_PRIO        				6
#define US1_PRIO        				5
#define TC0_PRIO                        1
#define TC1_PRIO        				6 
#define TC2_PRIO        				6 
#define WD_PRIO         				6
#define PIO_PRIO        				6 
#define IRQ0_PRIO       				5
#define IRQ1_PRIO       				4
#define IRQ2_PRIO       				6


#define system_time_base         		20

#ifndef OS_TICKS_PER_SEC
#define OS_TICKS_PER_SEC         		20
#endif

/*DEBUGS DEFINES*/

/*
*****************************************************************************************
* 各功能模块的编译控制开关
*****************************************************************************************
*/

#define     EN_DB44                     1
#define     EN_RESETREC                 0

#define 	EN_CODE6                    0

#define     EN_ALWAYSOPENED             1

#define     EN_QUICKCHECK               0

#define     EN_GPS_TIMCOM               0
#define 	EN_GPS_SONY					1
#define     EN_GPS_LEA_4A               1
#define 	EN_GPSSLEEP					0



#define 	EN_HSTSMON					0
#define   	EN_BLACKBOX					0
#define     EN_ODOMETER                 0
#define     EN_ODOMETER1                0

#define		EN_NOSIGNALRESEND			0
#define     EN_TAKESHOW                 0

#if EN_ODOMETER > 0 && EN_ODOMETER1 > 0
#error  "EN_ODOMETER and EN_ODOMETER1 can not be enabled at one time"
#endif
#if EN_ODOMETER > 0 && EN_ODOMETER1 > 0
#error  "EN_GPS_TIMCOM and EN_GPS_SONY can not be enabled at one time"
#endif

#define 	EN_DEBUG_BSP				0

#define     DEBUG_UARTNo_SYSTEM         0x01
#define     DEBUG_UART_PRINTU           0xff
#define     DEBUG_UART_BAUD             57600L

#define     DEBUG_UARTNo_DRIV           0xff

#define     DEBUG_UARTNo_ERR            0xff

#define     DEBUG_UARTNo_GPS            0xff

#define     DEBUG_UARTNo_ALARMER        0x01
#define     DEBUG_UARTno_DEBUG          0xff
#define     DEBUG_UARTNo_SYSTASK        0x01
#define     DEBUG_UARTNo_DISPLAYTASK    0x01
#define     DEBUG_UARTNo_AUDIO          0xff
#define     DEBUG_UARTNo_RECORD         0x01
#define     DEBUG_UARTNo_KEYBOARD       0x01
#define     UARTNo_GPS                  0x00
#define     UARTNo_DEBUG                0x01
#define     USEIRQ2                     0x01
#define     DEBUG_UARTNo_BUSSTATION     0xff
#define     DEBUG_UARTNo_LEDDRV         0xff  		
/*
**************************************************************************************
*                               CONFIG HARDWARE
**************************************************************************************
*/
#define     SIZE_FLASHSECTOR            4096L
#define     FLASH_MEMBASE               0x1000000

//#define     FLASH_GBTOUNI_ADDR          (0x048000 + FLASH_MEMBASE)
//#define     FLASH_UNITOGB_ADDR          (0x040000 + FLASH_MEMBASE)
//#define     UNITOGB_ENDADDR             7444

/*
**************************************************************************************
*                               DEFINE CRYSTAL_FREQ
**************************************************************************************
*/
#define LOW_CRYSTAL_FREQ	 			1
/*
**************************************************************************************
*                               DEFINE GSM_MOUDLE
**************************************************************************************
*/
#define   	GSM_BENQ                   0

/*
**************************************************************************************
*                               DEFINE SIZE_ODOMETER
**************************************************************************************
*/
//#define     SIZE_ODOMETER               7                   /* 1.6 */
/*
**************************************************************************************
*                               DEFINE MAXIMUM TELEPHONE LENGTH
**************************************************************************************
*/
//#define     SYS_TELLEN                  15
/*
**************************************************************************************
*                               DEFINE TIMETASK PARAMETERS
**************************************************************************************
*/
#define    MAXTIMETASK                  100

/*
**************************************************************************************
*                               DEFINE ERRTASK PARAMETERS
**************************************************************************************
*/
#define     MAX_ERRRECORD               10
#define     MAX_DIAGSUBS                50

/*
**************************************************************************************
* DEFINE TASKS STACK SIZE AND PRIORITY
**************************************************************************************
*/
#define STACK_STARTTASK          		512
#define PRIO_STARTTASK               	0

#define STACK_WATCHDOGTASK              256
#define PRIO_WATCHDOGTASK               1

#define STACK_ERRTASK                   512
#define PRIO_ERRTASK                    3

#define STACK_TIMETASK                  512
#define PRIO_TIMETASK                   4


#define STACK_SYSTASK                   1024
#define PRIO_SYSTASK                    5

#define STACK_ALMTASK                   512
#define PRIO_ALMTASK                    6

#define STACK_DISPAYTASK                1024
#define PRIO_DISPLAYTASK                7



//#define STACK_GSMTASK                   512
//#define PRIO_GSMTASK                    7

//#define STACK_MIDTASK                   512
//#define PRIO_MIDTASK                    11


//#define STACK_HANDSET                   512
//#define PRIO_HANDSET                    12

//#define STACK_SOCKTASK                  1024
//#define PRIO_SOCKTASK                   20

//#define STACK_UDPTASK                   1024
//#define PRIO_UDPTASK                    21

//#define STACK_IVUDPTSK                  1024

#define   EN_GGA   1
#define   DEBUG_GPS 0
#define   EN_GSV    1
//#define PRIO_IVUDPTSK                   22
#endif /* __CONFIG_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -