關(guān)于keil MDK 的配置文件Configuration Wizard
而在啟動代碼中的這個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://2s4d.com/article/201611/315452.htmItem | Text | Description |
---|---|---|
yes | Heading: the following options belong to a group. | |
yes | Heading with Enable: the following options belong to a group, which can be enabled via a checkbox. | |
yes | Heading with Enable: modifies a specific bit (bit 4, in this example). | |
or | yes | Heading or Enable end. |
yes | Tool-tip help for previous item. | |
yes | Option for bit values which can be set via a checkbox. | |
yes | Option with selection or number entry. | |
yes | Modify a range of bits (example: bit 4 to 5). | |
yes | modify a single bit (example: bit 4). | |
yes | Option with ASCII string entry. | |
yes | Option with ASCII string entry and a size limit of 10 characters. | |
Modifier | Description | |
<0-31> | no | Value range for option fields. |
<0-100:10> | no | Value range for option fields with step 10. |
<0x40-0x1000:0x10> | no | Value range in hex format and step 10. |
<0=> | yes | Value and text for selection. |
<#+1> <#-1> <#*8> <#/3> | no | value modification (add, sub, mul, div) before number is merged into field. |
另外還有一個重要的一點:如果想要顯示Configuration Wizard,
必須在代碼文本的頭100行之內(nèi)有如下命令:
//<<
另外在還有一個可選的命令表示Configuration Wizard的結(jié)束:
//<<
評論