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

📄 frmwrk.h

📁 ADS1.2编译环境下的EP7312芯片的一个基本测试范例
💻 H
字号:
#ifndef __FRMWRK_H__
#define __FRMWRK_H__


#include "def.h"


#ifdef __cplusplus
extern "C" {
#endif


/* ********************************************************************* */
/* Module configuration */

#define __mDate "6/23/04"             /* Revision date */
#define __mVer  "1.01"                 /* Revision number */

#define __mProcessor "EP7312 (ARM720T from CIRRUS Logic)"

#define __nConsolPort         1        /* Consol UART port number */
#define __nConsolBaud         115200   /* Consol Baud rate */
#define __nConsolFifoEn       True     /* FIFO Enable flag */

#define MMU_enabled                    /* This switch is included with the compiler flags */

#define MCLK (74000000)                /* 74Mhz */

#define SRAM_SIZE 48*1024              /* 48K internal SRAM */

#define SDRAM_SIZE 16*1024*1024        /* 16M SDRAM */

#ifdef MMU_enabled
        /* note: Reflect the changes in init.s */
        #define FLASH_SADDR  0x00000000 /* Flash starting address */
        #define SRAM_SADDR   0x06000000 /* SRAM starting address */
        #define SFR_BADDR    0x08000000 /* SFR base address */
        #define SDRAM_SADDR  0x09000000 /* SDRAM starting address */
        #define ISR_BADDR    0x06000000 /* ISR vector table start address */
        #define ETH_BADDR    0x02000000 /* Ethernet Controller (CS8900) base address */
#else
        /* note: Reflect the changes in init.s */
        #define FLASH_SADDR  0x00000000 /* Flash starting address */
        #define SRAM_SADDR   0x60000000 /* SRAM starting address */
        #define SFR_BADDR    0x80000000 /* SFR base address */
        #define SDRAM_SADDR  0xc0000000 /* SDRAM starting address */
        #define ISR_BADDR    0x60000000 /* ISR vector table start address */
        #define ETH_BADDR    0x20000000 /* Ethernet Controller (CS8900) base address */
#endif

#define ETH_IOBADDR 0x300 /* default value */

#define SRAM_EADDR (SRAM_SADDR+SRAM_SIZE-1) /* SRAM end address */
#define SDRAM_EADDR (SDRAM_SADDR+SDRAM_SIZE-1) /* SRAM end address */


/* ********************************************************************* */
/* Interface macro & data definition */

extern char Image$$ZI$$Limit[];

#define C_abRTMem Image$$ZI$$Limit

#ifdef FRMWRK_VERBOSE_EN
#define VERBOSE(x) { x }
#else
#define VERBOSE(x) { }
#endif


/* ********************************************************************* */
/* Interface function definition */

/*
*********************************************************************************************
*                                       FRMWRK_vRamTest
*
* Description: This routine is used do RAM test.
*
* Arguments  : pbID   - Test identification string.
*              wSAddr - RAM starting address.
*              wEAddr - RAM end address.
*
* Return     : none.
*
* Note(s)    : Do not test the following areas using this routine:
*                       1. Stack
*                       2. Software vector table
*                       3. C Variables (RW & ZI)
*********************************************************************************************
*/
void FRMWRK_vRamTest(U8 *pbID,U32 wSAddr,U32 wEAddr);

/*
*********************************************************************************************
*                                       APP_vMain
*
* Description: This is the Application main entry function.
*
* Arguments  : none.
*
* Return     : none.
*
* Note(s)    : This function needs to be implemented in the Application.
*********************************************************************************************
*/
void app_main(void);


/* ********************************************************************* */

#ifdef __cplusplus
}
#endif

#endif /*__FRMWRK_H__*/

⌨️ 快捷键说明

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