|
|||||||||||
| 技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng) 驅(qū)動編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機 | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計 | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe |
以前用KEIL的配置向?qū)?配置程序RTL,今天用向?qū)渲米约旱某绦? |
| 作者:Life7777 欄目:ARM技術(shù) |
用KEIL的配置向?qū)У奈募缦? 文件名: XXXXXXXXXXXXXXXXXXXXX.H 內(nèi)容: /*---------------------------------------------------------------------------- * LinShengFeng GUI 配置文件 *---------------------------------------------------------------------------*/ // 用KEIL可視化配置向?qū)?br>// 添加下面這一句表示用向?qū)?br>// 你如果感覺煩,可以把下面這一句給刪掉, // 向?qū)Ь筒粫鰜頍┠懔? //-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- // // <h>這是同類配置的類名.一個類名總是以 < h > 開頭的. // =================== // // <o>數(shù)字項以<0>開頭,后面是約束參數(shù) <0-250> // <i> 一般的選項 // <i> 默認: 0 #ifndef GUI_1 #define GUI_1 0 #endif // <o>數(shù)字項還可以運算<0-1024:8><#/4> // <i> 運后的結(jié)果寫入文件,沒有運算過的顯示在向?qū)?br>// <i> 默認: 0 #ifndef GHI_2 #define GHI_2 0 #endif // <q>開關(guān)項以<q>開關(guān) // =============================== // <i> 開關(guān)項只有 1,0 #ifndef GUI_3 #define GUI_3 1 #endif // </h> // <i> 一類結(jié)束 |
| 2樓: | >>參與討論 |
| 作者: lwpzj 于 2006/10/7 19:26:00 發(fā)布:
haha,不錯 很好的方法!值得學(xué)習(xí)!支持! |
|
| 3樓: | >>參與討論 |
| 作者: Life7777 于 2006/10/7 22:25:00 發(fā)布:
原文在這里,我只是用了一點就寫了一點. Configuration Wizard The &MICRO;Vision3 Configuration Wizard enables menu driven configuration of assembler, C, or debugger initialization files. The Configuration Wizard uses CONTROL ITEMs that are embedded into the comments of the configuration file. A file that contains ITEMs for the Configuration Wizard must include the following text within the first 100 text lines. When this text appears the Editor will open the file in Configuration Wizard view. <<< Use Configuration Wizard in Editor Context Menu >>> The following optional text marks the end of the Configuration Wizard section. <<< end of configuration section >>> Configuration Menu The configuration menu is CONTROLled by ITEMs and modifiers. The various CONTROL ITEMs and modifiers for the menu of the Configuration Wizard are described below: ITEM Text DESCRIPTION <h> yes Heading: following options are within a GROUP. <e>§ yes Heading with Enable: following options are within a GROUP that can be enabled via a Checkbox. <e.4>§ yes Heading with Enable: modifies a specific bits (example bit 4) </h> or </e> yes Heading or Enable end. <i> yes Tool tip help for previous ITEM. <q>§ yes Option for bit VALUEs with displays a checkbox <o>§ yes Option with selection or NUMBER entry <o.4..5>§ yes modify bits in NUMBER (example bit 4 and bit 5) <o.4>§ yes modify a SINGLE bit in NUMBER <s>§ yes Option with string entry <s.10>§ yes Option with string entry and size limit (10 characters) Modifier DESCRIPTION <0-31> no VALUE range for options field <0-100:10> no VALUE range for options field with step 10 <0x40-0x1000:0x10> no VALUE range in hex format <0=> yes VALUE and text for selection <#+1> <#-1> <#*8> <#/3> no VALUE modification (add, sub, mul, div) before NUMBER is merged into field Note By default, the next NUMBER or string is MODIFIED that follows the comment section. ITEMs marked with § can be followed by a skip VALUE, for example: <o1> The skip VALUE is used to skip a NUMBER of ITEMs. The example above modifies therefore the second NUMBER that follows the comment. ITEMs of Modifiers can be followed by a text. WHITE space characters are ignored in ITEM or modifiers. As a guideline use symbol NAME from the DEVICE data sheets in front of the DESCRIPTION. Example //*** <<< Use Configuration Wizard in Context Menu >>> *** FUNC void Setup (void) { // <h> External Bus Interface (EBI) // <e1.13> Enable Chip SELECT 0 (CSR0) // <o1.20..31> BA: Base Address <0x0-0xFFF00000:0x100000><#/0x100000> // <i> Start Address for Chip SELECT Signal // <o1.7..8> PAGES: Page Size <0=> 1M Byte <1=> 4M Bytes // <2=> 16M Bytes <3=> 64M Bytes // <i> SELECTs Active Bits in Base Address // <o1.0..1> DBW: Data Bus Width <1=> 16-bit <2=> 8-bit // <o1.12> BAT: Byte Access Type <0=> Byte-write // <1=> Byte-select // <e1.5> WSE: Enable Wait State Generation // <o1.2..4> NWS: NUMBER of STANDARD Wait States <1-8><#-1> // </e> // <o1.9..11> TDF: Data Float OUTPUT Time <0-7> // <i> NUMBER of Cycles Added after the Transfer // </e> _WDWORD(0xFFE00000, 0x010024A9); // EBI_CSR0: FLASH // <e1.13> Enable Chip SELECT 1 (CSR1) // <o1.20..31> BA: Base Address <0x0-0xFFF00000:0x100000><#/0x100000> // <i> Start Address for Chip SELECT Signal // <o1.7..8> PAGES: Page Size <0=> 1M Byte <1=> 4M Bytes // <2=> 16M Bytes <3=> 64M Bytes // <i> SELECTs Active Bits in Base Address // <o1.0..1> DBW: Data Bus Width <1=> 16-bit <2=> 8-bit // <o1.12> BAT: Byte Access Type <0=> Byte-write // <1=> Byte-select // <e1.5> WSE: Enable Wait State Generation // <o1.2..4> NWS: NUMBER of STANDARD Wait States <1-8><#-1> // </e> // <o1.9..11> TDF: Data Float OUTPUT Time <0-7> // <i> NUMBER of Cycles Added after the Transfer // </e> _WDWORD(0xFFE00004, 0x040034A5); // EBI_CSR1: RAM // <q1.4> DRP: Data Read Protocol // <0=> STANDARD Read // <1=> Early Read _WDWORD(0xFFE00024, 0x00000010); // EBI_MCR: Data Read Protocol _WDWORD(0xFFE00020, 0x00000001); // EBI_RCR: Remap Command // </h> // <o> Program Entry Point PC = 0x0 |
|
|
|
| 免費注冊為維庫電子開發(fā)網(wǎng)會員,參與電子工程師社區(qū)討論,點此進入 |
Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號 |