12
返回列表 发新帖
楼主: quentin

[已解决] 【求助】如何使用PE进行外部中断的设置(已解决)

[复制链接]

该用户从未签到

145

主题

4926

帖子

0

金牌会员

Rank: 6Rank: 6

积分
9267
最后登录
1970-1-1
发表于 2014-9-9 12:05:06 | 显示全部楼层
本帖最后由 FSL_TICS_ZJJ 于 2014-9-9 12:06 编辑
quentin 发表于 2014-9-9 11:16
Logical Device Drivers和CPU Internal Perihperals有什么区别啊,为什么一个模块会同时出现在两边,比如我 ...

关于你这个问题,其实是LDD与 high level 部件的区别,这个在我们的help中也有讲了:
Differences between LDD and high level components
1:Each component provides Init() method to initialize appropriate peripheral and driver. Init() method returns a pointer to driver's device structure. 2:Each component provides Deinit() method to de-initialize appropriate peripheral and driver.
3:The first parameter of each component's method is a pointer to a device structure returned from Init() method. It is up to you to pass a valid device structure pointer to component's methods (null check is highly recommended).
4:The Init() method has one parameter UserDataPtr. You can pass a pointer to its own data and this pointer is then returned back as a parameter in component's events. The pointer or date pointed by this pointer is not modified by driver itself. A bare-board application typically passes a null pointer to Init() method.
5:LDD components are not automatically initialized in processor component by default. If Auto initialization property is not enabled, you must call appropriate Init() method during runtime. Otherwise the Init method is automatically called in processor component and device structure is automatically defined.
6 : LDD components have RTOS adapter support allowing to generate variable code for different RTOSes.
7 :   Runtime enable/disable of component events.
8 : Low Power Modes support.
回复 支持 反对

使用道具 举报

该用户从未签到

22

主题

93

帖子

0

中级会员

Rank: 3Rank: 3

积分
315
最后登录
1970-1-1
 楼主| 发表于 2014-9-13 11:08:59 | 显示全部楼层
FSL_TICS_ZJJ 发表于 2014-9-9 12:01
楼主你好,
这个模块是有典型应用的,教你如何配置,如何写代码。
你可以选择AS1,然后右击,选择help On ...

非常感谢,问题已经解决。
我使用的是PE工具没有用CODE warrier,目前使用PE直接生成初始化的代码,然后同步导入IAR,非常方便。另外中断部分我就没有用PE了,直接手动写的代码,更方便一点。
回复 支持 反对

使用道具 举报

该用户从未签到

145

主题

4926

帖子

0

金牌会员

Rank: 6Rank: 6

积分
9267
最后登录
1970-1-1
发表于 2014-9-15 08:46:58 | 显示全部楼层
quentin 发表于 2014-9-13 11:08
非常感谢,问题已经解决。
我使用的是PE工具没有用CODE warrier,目前使用PE直接生成初始化的代码,然后 ...

PE其实就是比CW少了编译,生成代码CW调用的还是PE。
楼主以后问题解决了,还请帮我们及时结贴,在你标题的结尾加上(已解决),方便我们查看未结帖。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条

Archiver|手机版|小黑屋|恩智浦技术社区

GMT+8, 2025-7-20 19:33 , Processed in 0.089823 second(s), 22 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表