RTEMS Development Environment Guide
Edition 4.10.99.0, for RTEMS 4.10.99.0
24 February 2013
RTEMS
开发环境指南
版本:4.10.99.0,适用于
RTEMS 4.10.99.0
2013
年
2
月
24
日
(译注:本文档的英文原版经常更新,½本页上所注的日期并不更新,本次翻译
所依据的英文原版是
20130610
版。
)
翻译:Tony
Zhu
bizasia@126.com
On-Line Applications Research Corporation
在线应用研究公司
On-Line Applications Research Corporation
TEXinfo 2012-11-08.11
在线应用研究公司
TEXinfo 2012-11-08.11
COPYRIGHT c 1988 - 2013.
On-Line Applications Research Corporation (OAR).
版权所有
c 1988 - 2013
在线应用研究公司
The authors have used their best efforts in preparing this material. These efforts
include the development, research, and testing of the theories and programs to
determine their effectiveness. No warranty of any kind, expressed or implied, with
regard to the software or the material contained in this document is provided. No
liability arising out of the application or use of any product described in this
document is assumed. The authors reserve the right to revise this material and to
make changes from time to time in the content hereof without obligation to notify
anyone of such revision or changes.
½者已经½最大努力编制本材料。这些努力包括理论和程序的开发、研究与测试
以确定它们的有效性。对于½件或包含在本文档中的材料,我们不提供任½类型
的明示或暗示的保证。
我们不承担本文档所描述的在应用程序或产品的½用中所
产生的责任。½者保留修改本材料和不定期改变内容的权利,对这些修改没有义
务通知任½人。
The RTEMS Project is hosted at http: / /www .rtems .com. Any inquiries concerning
RTEMS, its related support components, its documentation, or any custom services
for RTEMS should be directed to the contacts listed on that site. A current list of
RTEMS Support Providers is at http://www.rtems.com/oarsupport.
RTEMS
项目托管在
http://www .rtems .com。任½涉及 RTEMS
的查询、相关的支
持组件、文档或任½定制服务,可以通过在该½站上的通讯½联系。一个½前的
RTEMS
支持提供者列表在
http://www.rtems.com/oarsupport。
3
Table of Contents
1
2
Introduction ····································································· 7
Directory Structure ··························································· 9
2.1 c/ Directory ·································································································· 14
2.1.1 c/src/ Directory ····················································································· 15
2.1.1.1 c/src/lib/libbsp BSP Directory ····················································· 18
2.2 CPU Kit Directory·························································································· 19
2.3 testsuites/ Test Suites ·················································································· 24
2.4 Documentation Directory ············································································ 26
3
Sample Applications ······················································· 31
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
3.9
3.10
Introduction ································································································· 31
Hello World ·································································································· 36
Clock Tick ····································································································· 36
Base Single Processor Application ······························································· 38
Base Multiple Processor Application ··························································· 38
Constructor/Destructor C++ Application ····················································· 39
Minimum Size Test ······················································································· 41
Nanosecond Granularity Application ··························································· 41
Paranoia Floating Point Application ····························································· 43
Network Loopback Test·············································································· 44
4
RTEMS Specific Utilities ·················································· 45
4.1 packhex - Compress Hexadecimal File ························································· 47
4.2 unhex - Convert Hexadecimal File into Binary Equivalent ··························· 48
Command and Variable Index··············································· 51
Concept Index ······································································ 53
5
目½
1
2
简介
················································································· 7
目½结构
·········································································· 9
2.1 c/
目½
········································································································ 14
2.1.1 c/src/
目½
··························································································· 15
2.1.1.1 c/src/lib/libbsp BSP
目½
···························································· 18
2.2 CPU
工具箱目½
·························································································· 19
2.3 testsuites/测试套件 ···················································································· 24
2.4 Documentation
目½
··················································································· 26
3
示例应用程序
································································ 31
3.1
简介
············································································································· 31
3.2 Hello World ·································································································· 36
3.3
3.4
3.5
3.6
3.7
3.8
3.9
3.10
时钟节拍
····································································································· 36
基本单处理器应用程序
············································································· 38
基本多处理器应用程序
············································································· 38
C++构造½数/析构½数应用程序 ······························································ 39
最小大小测试
····························································································· 41
纳秒粒度应用程序
····················································································· 41
Paranoia
浮点应用程序
·············································································· 43
½络环回测试
··························································································· 44
4
RTEMS
特定的工具
························································ 45
4.1 packhex –
压缩
16
进制文件
····································································· 47
4.2 unhex –
½换
16
进制文件到对应的二进制
············································· 48
½令和变量索引
·································································· 51
概念索引
············································································· 53
评论