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

📄 hd860r3.h

📁 Tornado 2.0 BSP for HaeDong HD860-R3 韩国HaeDong公司开发的基于Motorola的MPC860处理器的开发板的BSP
💻 H
字号:
#ifndef INChd860h
#define INChd860h

/*****************/
/*               */
/* Include files */
/*               */
/*****************/

#include "drv/mem/memDev.h"
#include "drv/intrCtl/ppc860Intr.h"

/*                                                                  */
/* Define CPU type and number of Serial channels                    */
/*                                                                  */
#define BUS             0        /* bus-less board                  */
#define CPU             PPC860   /* CPU type                        */
#define N_SIO_CHANNELS  1         /* No. serial I/O channels         */

/*
 * CPU Mask Level(s)
 */
#define CPU_REV_A2_MASK  0x12

/*                          
 * Cache related commands.  
 */
#define CACHE_DISABLE_CMD      0x0400     
#define CACHE_ENABLE           0x0200     
#define CACHE_UNLOCK_ALL       0x0a00
#define CACHE_INVALIDATE_ALL   0x0c00

/*  
 * PowerPC clock Speed (PLL)
 */

 
#if CLK50MHZ 
#define SYS_CPU_FREQ    50000000
#define DEC_CLOCK_FREQ  50000000/4
#define DEC_CLK_TO_INC	4
#endif

#if CLK65MHZ 
#define SYS_CPU_FREQ    65000000
#define DEC_CLOCK_FREQ  65000000/4
#define DEC_CLK_TO_INC	4
#endif

#if CLK80MHZ 
#define SYS_CPU_FREQ    80000000
#define DEC_CLOCK_FREQ  80000000/4
#define DEC_CLK_TO_INC	4
#endif



/*                                                                  */
/* Internal Memory Map base Address                                 */
/*                                                                  */
#define INTERNAL_MEM_MAP_ADDR  0xFF000000        
#define INTERNAL_MEM_MAP_SIZE  0x00010000        /* 64 K bytes      */

/* 
 *  CPU type in the PVR   
 */                        

#define CPU_TYPE_860              0x0050      /* value for PPC860   */

/*                                                                  */
/* Ethernet parameters                                              */
/*                                                                  */

#ifdef  INCLUDE_CPM                                             /* CPM ethernet driver      */
                                                                /*                          */
#define INCLUDE_IF_USR                                          /* Include IF interface     */
#define IF_USR_NAME     "cpm"                                   /* device name              */
#define IF_USR_ATTACH   cpmattach                               /* driver attach routine    */
                                                                /* address of SCC param RAM */
#define IF_USR_ARG1     (char *) INTERNAL_MEM_MAP_ADDR + 0x3c00 /* address of SCC regs      */
#define IF_USR_ARG2     (int)INTERNAL_MEM_MAP_ADDR + 0x0a00     /*                          */
#define IF_USR_ARG3     (int) IV_SCC1                           /* int number for SCC1      */
                                                                /* address of transmit BDs  */
#define IF_USR_ARG4     (int) INTERNAL_MEM_MAP_ADDR + 0x2000    /*                          */
                                                                /* address of receive BDs   */
#define IF_USR_ARG5     (int) INTERNAL_MEM_MAP_ADDR + 0x2100    /*                          */
#define IF_USR_ARG6     (int) 0x20                              /* number of transmit BDs   */
#define IF_USR_ARG7     (int) 0x20                              /* number of receive BDs    */
#define IF_USR_ARG8     (int) NONE                              /* allocate mem for buffers */

#endif  /* INCLUDE_CPM */
#endif  /* INCest860h  */

⌨️ 快捷键说明

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