📄 config.h
字号:
/******************************************************************************
* Filename : config.h *
* Program : loader. *
* Copyright : Copyright (C) 2001, Young-Su, Ahn. *
* Author : Young-Su, Ahn <nurie@dreamwiz.com> *
* Description : Set environment of loader. *
* Created at : Wed Mar 13 2001. *
* Based on : blob-1.0.8-pre2 (http://www.lart.tudelft.nl) *
* Modified by : *
* Modified at : *
******************************************************************************/
/* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _CONFIG_H_4718034674012374874802
#define _CONFIG_H_4718034674012374874802
///// Serial //////////////////////////////////////////////////////////////////
//#define USE_SERIAL1 // Use Serial Port 1.
#define USE_SERIAL3 // Use Serial Port 3.
#define SERIAL_SPEED 1 // Serial Speed (SCR).
#define SERIAL_DOWNLOAD_SPEED 1
// SCR : Speed
// 191 : 1200
// 23 : 9600
// 11 : 19200
// 5 : 38400
// 3 : 57600
// 1 : 115200
// Data Bit.
// 捞巴捞 define登绢 乐绢具 酒贰狼 Default蔼捞 利侩凳.
#define SERIAL_CONFIG
#ifdef SERIAL_CONFIG
//#define SERIAL_DATA_BIT UTCR0_7BitData // Data Bit 7.
#define SERIAL_DATA_BIT UTCR0_8BitData // Data Bit 8.
// Stop Bit.
#define SERIAL_STOP_BIT UTCR0_1StpBit // Stop Bit 1.
//#define SERIAL_STOP_BIT UTCR0_2StpBit // Stop Bit 2.
// Parity Bit.
#define SERIAL_PARITY_ENABLE 0 // Parity Bit 荤侩 救窃.
//#define SERIAL_PARITY_ENABLE UTCR0_PE // parity Bit 荤侩.
#define SERIAL_PARITY 0 // Parity Bit 荤侩 救窃.
//#define SERIAL_PARITY UTCR0_OddPar // Odd Parity Bit 荤侩.
//#define SERIAL_PARITY UTCR0_EvenPar // Even Parity Bit 荤侩.
#endif
// USE_SERIAL_UUCODEC捞 define登绢 乐栏搁, Bootloader俊辑 download 疙飞阑 荤侩且 荐 乐栏哥, 弊犯瘤
// 臼栏搁 荤侩且 荐 绝栏哥, UUEncode()客 UUDecode()档 鞍捞 Compile登瘤 臼绰促.
//#define NOT_USE_SERIAL_UUCODEC
#define USE_SERIAL_UUCODEC
///// Static Memory ///////////////////////////////////////////////////////////
// FLASHBIT : Flash 窍唱啊 悼累窍绰 data pin狼 bit 荐.
// FLASHNUM : Flash甫 荤侩窍绰 Chip Select俊 鞍捞 楷搬等 Flash狼 俺荐.
// FLASHSIZE : Flash甫 荤侩窍绰 Chip Select俊 鞍捞 楷搬等 Flash狼 醚 农扁.
// one of 16 bit flash memory.
#define FLASHBIT 16
#define FLASHNUM 1
#define FLASHSIZE (0x01000000) // 16 MB.
// two of 16 bit flash memory.
//#define FLASHBIT 16
//#define FLASHNUM 2
//#define FLASHSIZE (0x02000000) // 32 MB.
// Chip Select Pin number for flash.
#define USE_CS0_FLASH // CS0俊 Flash甫 荤侩.
//#define USE_CS1_FLASH // bootrom阑 荤侩且 版快肺 抛胶飘甫 芭摹瘤 臼疽澜.
// flash memory狼 困摹.
#if defined USE_CS0_FLASH
#define SRAM_BASE_ADDR (0x00000000)
#elif defined USE_CS1_FLASH
#define SRAM_BASE_ADDR (0x08000000)
#endif
#define SRAM_SIZE FLASHSIZE // 16 MB.
#define SRAM_BLOCK_SIZE (0x00020000)
///// Dynamic Memory //////////////////////////////////////////////////////////
#define DRAM_BASE_ADDR (0xc0000000)
#define DRAM_SIZE (0x02000000)
///// Package Information /////////////////////////////////////////////////////
#define PACKAGE "tbloader" // Name of package.
#define VERSION "E2G CS8900 Test" // Version number of package.
///// BootLoader //////////////////////////////////////////////////////////////
// TINY_LOADER啊 define登绢 乐栏搁 弥家茄狼 扁瓷阑 啊柳 累篮 loader啊 积己.
#define FULL_LOADER
//#define TINY_LOADER
//#define MY_LOADER
// Position of BOOT LOADER.
#define LOADER_SRAM_BASE (0x00000000) // Static memory俊辑 困摹.
#define LOADER_SRAM_MAX_SIZE (0x00020000) // loader啊 瞒瘤且 农扁肺 Flash Block 农扁狼 硅荐.
#define LOADER_DRAM_MAX_SIZE (0x00020000) // 2Mbytes. compile等 loader啊 64kbyte 捞惑老 版快
//#define LOADER_DRAM_MAX_SIZE (0x00100000) // 2Mbytes. compile等 loader啊 64kbyte 捞惑老 版快
// ld-script客 鞍捞 官操绢 林绢具 钦聪促.
#define LOADER_DRAM_BASE (DRAM_BASE_ADDR+DRAM_SIZE-LOADER_DRAM_MAX_SIZE)
#define STACK_POINT (DRAM_BASE_ADDR+DRAM_SIZE-LOADER_DRAM_MAX_SIZE-4)
// Position of kernel.
#ifdef USE_CS0_FLASH
#define KERNEL_SRAM_BASE (SRAM_BASE_ADDR+LOADER_SRAM_MAX_SIZE)
#else
#define KERNEL_SRAM_BASE (SRAM_BASE_ADDR)
#endif
#define KERNEL_DRAM_BASE (0xc0008000)
#define KERNEL_MAX_SIZE (0x000c0000)
#define NUM_KERNEL_BLOCKS (KERNEL_MAX_SIZE / SRAM_BLOCK_SIZE)
// Position of ramdisk.
#define RAMDISK_SRAM_BASE (KERNEL_SRAM_BASE + KERNEL_MAX_SIZE)
#define RAMDISK_DRAM_BASE (0xC0500000)
#define RAMDISK_MAX_SIZE (0x00320000)
// Position of ucos.
#define UCOS_SRAM_BASE (0x00000000)
#define UCOS_DRAM_BASE (0xC0000000)
#define UCOS_MAX_SIZE (LOADER_DRAM_MAX_SIZE)
//#define UCOS_MAX_SIZE (DRAM_BASE_ADDR+DRAM_SIZE - LOADER_DRAM_MAX_SIZE)
#define NUM_RAMDISK_BLOCKS (RAMDISK_MAX_LEN / SRAM_BLOCK_SIZE)
///// Newwork /////////////////////////////////////////////////////////////////
#define CLIENT_ETHER {0x00, 0xD0, 0xCA, 0xF1, 0x26, 0x21}
#define MAX_PKT_SIZE 608
// Autoboot肺 啊扁傈俊 扁促府绰 矫埃.
#define DELAY_BEFORE_BOOT 3
// 公矫.
#define USE_LCD_LOGO
#endif // end _CONFIG_H_4718034674012374874802.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -