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

📄 init.h

📁 一款corefire的bootloader源码 型号 5407 编译环境 c
💻 H
字号:
 /*********************************************************************
 * File:		init.h
 * Purpose:		Function prototypes and memory map information.
 *
 *
 * Copyright:
 *      1999-2000 MOTOROLA, INC. All Rights Reserved.  
 *  You are hereby granted a copyright license to use, modify, and
 *  distribute the SOFTWARE so long as this entire notice is
 *  retained without alteration in any modified and/or redistributed
 *  versions, and that such modified versions are clearly identified
 *  as such. No licenses are granted by implication, estoppel or
 *  otherwise under any patents or trademarks of Motorola, Inc. This 
 *  software is provided on an "AS IS" basis and without warranty.
 *
 *  To the maximum extent permitted by applicable law, MOTOROLA 
 *  DISCLAIMS ALL WARRANTIES WHETHER EXPRESS OR IMPLIED, INCLUDING 
 *  IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
 *  PURPOSE AND ANY WARRANTY AGAINST INFRINGEMENT WITH REGARD TO THE 
 *  SOFTWARE (INCLUDING ANY MODIFIED VERSIONS THEREOF) AND ANY 
 *  ACCOMPANYING WRITTEN MATERIALS.
 * 
 *  To the maximum extent permitted by applicable law, IN NO EVENT
 *  SHALL MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING 
 *  WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS 
 *  INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY
 *  LOSS) ARISING OF THE USE OR INABILITY TO USE THE SOFTWARE.   
 * 
 *  Motorola assumes no responsibility for the maintenance and support
 *  of this software
 ********************************************************************/

#ifndef _INIT_H
#define _INIT_H

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

#define FLASH_ADDRESS		(0x7FE00000)
#define SDRAM_ADDRESS		(0x00000000)
#define SDRAM_ADDRESS_BANK0	(0x00000000)
#define SDRAM_ADDRESS_BANK1	(0x00800000)
#define SDRAM_SIZE			(0x01000000)


#define IMM_ADDRESS			(0x10000000)
#define EXT_SRAM_ADDRESS    (0xFE400000)
#define EXT_SRAM_SIZE	    (0x00080000)
#define INT_SRAM0_ADDRESS   (0x20000000)
#define INT_SRAM0_SIZE      (0x00000800)
#define INT_SRAM1_ADDRESS   (0x20000800)
#define INT_SRAM1_SIZE      (0x00000800)

/*
 * Macro which returns a pointer to the Internal Memory Map
 */ 
#define mcf5407_get_immp()	((MCF5407_IMM *)(IMM_ADDRESS))

/********************************************************************
*	Function Prototypes 
********************************************************************/

void 
mcf5407_sim_init (MCF5407_IMM *);

void 
mcf5407_timer_init	(MCF5407_IMM *);

void 
mcf5407_sdramc_init1 (MCF5407_IMM *);

void 
mcf5407_pp_init (MCF5407_IMM *);

void 
mcf5407_mbus_init (MCF5407_IMM *);

void 
mcf5407_dma_init (MCF5407_IMM *);

void 
mcf5407_cs_init (MCF5407_IMM *);

void 
mcf5407_sdramc_init2 (MCF5407_IMM *);

void 
mcf5407_uart_init (MCF5407_IMM *);

void
mcf5407_sdram_test(void);

int 
probe (uint32, uint32);

int
in_char (void);

void
out_char (int);

int
char_present (void);

int
printf (const char *, ... );

int
sprintf (char *, const char *, ... );


__interrupt__
void exception_handler (void);

__interrupt__
void irq_handler (void);

#endif /* _INIT_H */

⌨️ 快捷键说明

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