新聞中心

        EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > 關(guān)于keil MDK 的配置文件Configuration Wizard

        關(guān)于keil MDK 的配置文件Configuration Wizard

        作者: 時間:2016-11-17 來源:網(wǎng)絡(luò) 收藏
        keil MDK自帶的啟動代碼有一個優(yōu)勢就是可視化的配置選項,就是Configuration wizard選項,這樣就省去了我們手動輸入配置的問題。比如下面對于Memory的設(shè)計的Configuration界面:
        而在啟動代碼中的這個Configuration的程序為:
        // Watchdog Timer Setup
        // Watchdog Timer Control Register (WTCON)
        // Prescaler Value <0-255>
        // Watchdog Timer Enable
        // Clock Division Factor
        // <0=> 16 <1=> 32 <2=> 64 <3=> 128
        // Interrupt Generation Enable
        // Reset Enable
        //
        // Watchdog Timer Data Register (WTDAT)
        // Count Reload Value <0-65535>
        //
        // Watchdog Timer Setup

        可以看出,圖形化的Configuration語句放在了程序的注釋上。具體的語法如下:

        本文引用地址:http://www.104case.com/article/201611/315452.htm

        ItemTextDescription
        yesHeading: the following options belong to a group.
        yesHeading with Enable: the following options belong to a group, which can be enabled via a checkbox.
        yesHeading with Enable: modifies a specific bit (bit 4, in this example).
        or yesHeading or Enable end.
        yesTool-tip help for previous item.
        yesOption for bit values which can be set via a checkbox.
        yesOption with selection or number entry.
        yesModify a range of bits (example: bit 4 to 5).
        yesmodify a single bit (example: bit 4).
        yesOption with ASCII string entry.
        yesOption with ASCII string entry and a size limit of 10 characters.
        ModifierDescription
        <0-31>noValue range for option fields.
        <0-100:10>noValue range for option fields with step 10.
        <0x40-0x1000:0x10>noValue range in hex format and step 10.
        <0=>yesValue and text for selection.
        <#+1> <#-1>
        <#*8> <#/3>
        novalue modification (add, sub, mul, div) before number is merged into field.

        另外還有一個重要的一點:如果想要顯示Configuration Wizard

        必須在代碼文本的頭100行之內(nèi)有如下命令:

        //<<>>

        另外在還有一個可選的命令表示Configuration Wizard的結(jié)束:

        //<<>>




        評論


        技術(shù)專區(qū)

        關(guān)閉
        主站蜘蛛池模板: 巴彦淖尔市| 晋江市| 西充县| 陇南市| 长汀县| 和平区| 稻城县| 麦盖提县| 綦江县| 出国| 富锦市| 宁国市| 进贤县| 扶沟县| 乐山市| 石阡县| 博白县| 驻马店市| 从化市| 顺昌县| 凤台县| 海伦市| 葵青区| 泽库县| 新泰市| 海林市| 岳普湖县| 屯留县| 万山特区| 凉山| 罗山县| 仲巴县| 扬州市| 太保市| 张家港市| 津市市| 华宁县| 萨嘎县| 甘泉县| 辛集市| 山西省|