📄 m5282evb.h
字号:
/*
* File: m5282evb.h
* Purpose: Evaluation board definitions and memory map information
*
* Notes:
*/
#ifndef _M5282EVB_H
#define _M5282EVB_H
/********************************************************************/
#include "src/init/mcf5xxx.h"
#include "src/init/mcf5282.h"
#include "src/init/io.h"
/********************************************************************/
/*
* Debug prints ON (#undef) or OFF (#define)
*/
#undef DEBUG
/*
* System Bus Clock Info
*/
#define SYSTEM_CLOCK 64 /* system bus frequency in MHz */
#define PERIOD 15.625 /* system bus period in ns */
#define UART_BAUD 19200 /* 115200 */
/*
* Memory map definitions from linker command files
*/
extern uint8 __IPSBAR[];
extern uint8 __SDRAM[];
extern uint8 __SDRAM_SIZE[];
extern uint8 __SRAM[];
extern uint8 __SRAM_SIZE[];
extern uint8 __EXT_SRAM[];
extern uint8 __EXT_SRAM_SIZE[];
extern uint8 __FLASH[];
extern uint8 __FLASH_SIZE[];
extern uint8 __EXT_FLASH[];
extern uint8 __EXT_FLASH_SIZE[];
/*
* Memory Map Info
*/
#define IPSBAR_ADDRESS (uint32)__IPSBAR
#define SDRAM_ADDRESS (uint32)__SDRAM
#define SDRAM_SIZE (uint32)__SDRAM_SIZE
#define SRAM_ADDRESS (uint32)__SRAM
#define SRAM_SIZE (uint32)__SRAM_SIZE
#define EXT_SRAM_ADDRESS (uint32)__EXT_SRAM
#define EXT_SRAM_SIZE (uint32)__EXT_SRAM_SIZE
#define FLASH_ADDRESS (uint32)__FLASH
#define FLASH_SIZE (uint32)__FLASH_SIZE
#define EXT_FLASH_ADDRESS (uint32)__EXT_FLASH
#define EXT_FLASH_SIZE (uint32)__EXT_FLASH_SIZE
/*
* Interrupt Controller Definitions
*/
#define TIMER_NETWORK_LEVEL 3
#define FEC_LEVEL 4
/*
* Timer period info
*/
#define TIMER_NETWORK_PERIOD 1000000000/0x10000 /* 1 sec / max timeout */
/********************************************************************/
#endif /* _M5282EVB_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -