www.pudn.com > bu1566.rar > BUxx_demoset.h


/* ************************************************************************ */ 
/*                                                                          */ 
/* ROHM BU15xx demo firmware on MD2306                                      */ 
/*     Client   : ROHM Co., Ltd.                                       */ 
/*     End User :                                                           */ 
/*                                                                          */ 
/*     Processor: ARM-7TDMI(THUMB Mode)                                     */ 
/*     Dev.Env. : ARM-SDTv2.51                                              */ 
/*                                                                          */ 
/*     Demo software setup table Header                                     */ 
/*                                                                          */ 
/*     file     : BUxx_demoset.h                                            */ 
/*     Auther   : J.SATO(NTC)                                              */ 
/*     Date     : 2004/Jul./1		                                    */ 
/*                                                                          */ 
/*     Copyright (c) 2002-04 Naritagiken Co., Ltd. All rights reserved.     */ 
/* ************************************************************************ */ 
/* History:								    */ 
/* 2004/Jul./1 Rev 1.00 create		                                    */ 
/*                                                                          */ 
/* ************************************************************************ */ 
 
/* ************************************************** */ 
/*		     INCLUDE FILES		      */ 
/* ************************************************** */ 
 
/* ************************************************** */ 
/*		        DEFINES			      */ 
/* ************************************************** */ 
 
 
//*** Target board select *** 
//#define       __MINIBOARD__ 
//#define       __81MODE__ 
//#define       __SINGLELCD__ 
 
//------------------------------------------- 
//******************************************* 
//                       definition (other)                   * 
//******************************************* 
//------------------------------------------- 
#define BASE_ADDRESS	0x200000 
 
//******************************************* 
//           Target BORAD Version          * 
//******************************************* 
 
#define TAR_VERSION	0x0204 
#define MLCD_MODULE	"newNECLCD/HITACHIdv" 
#define SLCD_MODULE	"newNECLCD/HITACHIdv" 
//#endif 
 
#define CAM_MODULE	"csm_205 or csv1061" 
 
//------------------------------------------- 
//******************************************* 
//                       definition (other)                   * 
//******************************************* 
//------------------------------------------- 
 
//******** Capture data store area ********** 
#define	FSAVE_BMEMO	0x70000 
#define	WORK_MEMO	0x200000 
 
//******************************************* 
//          MotionJPEG store area           * 
//******************************************* 
#define START_MOJPEG	0x230000        //store start address 
#define END_MOJPEG	0x270000        //store end address 
                                        //max  :0x270000  MINI,DEMOBOARD 
                                        //max  :0x3e0000  ARMBOARD 
 
//******************************************* 
//          MPEG4/H263 store area           * 
//******************************************* 
#define BUFFER_ST_ADD	0x230000        //store start address 
#define BUFFER_SIZE	0x100000        //store end address 
                                        //max  :0x27ffff  MINI,DEMOBOARD 
                                        //max  :0x3ffeff  ARMBOARD 
 
 
//******************************************* 
//          USB command control             * 
//******************************************* 
#define USB_CNT_ADR	0x200000        //USB control start address: 
#define MAXSEGMENTSIZE	(64*1024*3)     //Temporary memory size of Bulk dispose 
 
 
 
 
//******************************************* 
//              CHIP is set up                          * 
//******************************************* 
 
#define BU1594	0x0000 
#define BU1593	0x0001 
 
#define BU1560	0x000a 
#define BU1561	0x000b 
#define BU1563	0x000c 
 
#define UNKNOWN	0xffff 
 
/**************** bu15xx ACCESS ***************/ 
#define	ARMBOARD	0x00 
#define   DEMOBOARD	0x01 
 
//For bigendian or littleendian setting 
#define BIG		0x0000 
#define LITTLE		0x0010 
 
//******************************************* 
//              KEY is set up                           * 
//******************************************* 
#define KEY0	0x001 
#define KEY1	0x002 
#define KEY2	0x004 
#define KEY3	0x008 
#define KEY4	0x010 
#define KEY5	0x020 
#define KEY6	0x040 
#define KEY7	0x080 
#define KEY8	0x100 
 
/* ************************************************** */ 
/*		        TYPEDEF		    	      */ 
/* ************************************************** */ 
 
/* ************************************************** */ 
/*		    GLOBAL VARIABLE		      */ 
/* ************************************************** */ 
extern int gl_timer_chk; 
extern int gl_busmode_flag; 
extern volatile unsigned short gl_keystate; 
extern volatile unsigned short gl_keyoldst; 
extern volatile unsigned short gl_keydisp; 
extern volatile int gl_usb_input; 
extern volatile int gl_usb_oldin; 
//extern volatile char gl_macro_st; 
extern unsigned short gl_productID; 
extern int gl_dl_version; 
extern volatile int gl_bus_access; 
extern int gl_busmode_flag; 
 
/* ************************************************** */ 
/*		    GLOBAL FUNCTIONS		      */ 
/* ************************************************** */ 
 
extern void JUMP_DUMMY(void);