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

📄 config.h

📁 arm_bootloader _flash writter &USB
💻 H
字号:
// ====================================================================
// File Name : config.h
// Function  : S3C2410 
// Program   : Lihgong Wu
// Date      : August 02, 2008
// Version   : 0.0
// History
//      This is the global configuration file, should be included first.
// ====================================================================

#ifndef __CONFIG_H__
#define __CONFIG_H__

// There're a lot of logic differences whether use ICE or not, so we define the constant here...
#define USE_ICE     (1)

// CPU status, these setting should be coherent with code in 2410lib.c (SBC2410x_init)
#define FCLK    202800000
#define HCLK    (FCLK/2)
#define PCLK    (HCLK/2)
#define UCLK    48000000

// Bootloader Behavior
// For convenience, the core-bootloader is placed in the beginning 4K of Flash controller.
// The core-bootloader was put in the 1st Flash block which will be loaded into internal SRAM when booting.
// Another part of bootloader, which was written by C code, was put in the 2nd Flash block.
#define START_READ_ADDRESS      0x30000000
#define FLASH_READ_PAGE_START   0x20        // 1page=512bytes, 32pages(1block)=16k
#define FLASH_READ_PAGE_END     0x3F

// Some constant...
#define NULL    (0)

#endif    //__CONFIG_H__

⌨️ 快捷键说明

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