Keil 的Configuration Wizard的编写
来源:互联网 发布:德阳数控铣床编程培训 编辑:程序博客网 时间:2024/05/22 15:37
Configuration Wizard
Configuration Wizard 是一个集成的编辑器实用工具,在使用汇编语言、C/C++语言或者是初始化文件时用于生成GUI配置控制。利用Configuration Wizard Annotations用源码中产生控制。一个Configuration Wizard部分必须首先是100行的代码并且以下面这行注释开始:
// <<< Use Configuration Wizard in Context Menu >>>
Configuration Wizard 部分的末尾有以下可选的注释:
// <<< end of configuration section >>>
这张图是下面源码示例的结果图
注:
1、option 是设备的特性,它可以以树状结构呈现,每一个条目可以有一个条目工具解释。
2、value 设置属性值。可以通过预来封装数据在下拉菜单中。
单击Configuration Wizard标签页并通过图形界面设置设备选项。单击Text Editor来查看和改变源代码。
例子:
下面的例子代码生成了上面Conguration Wizard所呈现出的效果。
//*** <<< 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 = 0x04000000;}// <s> Change ID// <s1.30> Change Password String#define ID "My User ID"char pw[] = "My Password";//*** <<< end of configuration section >>> ***
Configuration Wizard Annotations
Configuration Wizard Annotations是条目和注释符,用来创建GUI的元素。注释和在代码中写注释一样。
默认情况下:下一个数或者紧跟注解的字符串是要被修改的。以§ 标注的条目可以紧跟一个跳跃值(skip Value),一个跳跃值跳过一些条目,这个例子修改紧跟注释的第二个数字。
条目注释可以紧跟文本。
条目和注释符中的空白字符都将被忽略。
在前面的描述中使用数据手册中的符号名是一个好习惯。
下表列出了配置向导的注释符:
翻译自keil help 的Configuration Wizard 。
- Keil 的Configuration Wizard的编写
- 关于keil MDK 的配置文件Configuration Wizard
- keil 的 配置向导 configuration wizard
- keil 的 配置向导 configuration wizard
- keil 的 配置向导 configuration wizard
- 最近偶然发现keil MDK Configuration Wizard的功能
- 关于STM32的configuration wizard
- Eclipse New Wizard的Wizard
- 关于用KEIL编写C51的注意事项
- MySQL 卸载重装出现的问题:MySQL Server Instance Configuration Wizard 未响应
- 解决MySQL Server Instance Configuration Wizard卡住未响应的问题
- Wizard控件的使用
- RTSC wizard 的使用
- Wizard控件的使用
- ext的wizard
- RTSC wizard 的使用
- Configuration Wizard开启
- MFC和App Wizard编写网络程序需要注意的几个方面
- IIS 部署MVC相关设置
- 专家详解伪造邮件攻击方法和防范措施
- QT 中的 collect2: ld returned 1 exit status 错误
- maven profile
- 开放地址法与链表法的优缺点及其实现
- Keil 的Configuration Wizard的编写
- cp如何拷贝完整路径
- Java版的Eval
- JSTL中C标签的简单用法(一)
- 技术人员应真正学会的第二课程
- oralce instr与 like 比较
- 谁卑微了谁的承诺
- FragmentActivity和Activity的具体区别在哪里
- 【Activity】android:configChanges简介