可以看出,图形化的Configuration语句放在了程序的注释上。具体的语法如下:
Item | 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行之内有如下命令:
// <<< Use Configuration Wizard in Context Menu >>>
另外在还有一个可选的命令表示Configuration Wizard的结束:
// <<< end of configuration section >>>
上一篇:stm32变更外部晶振时如何配置时钟、以及HSI的使用
下一篇:STM32配置PC13-PC15
推荐阅读最新更新时间:2024-03-16 15:12