完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
从我所学到的(没有直接经验的图片),它被称为“静态驱动器”的东西,解决了一个“旧风格”的开放/使用/关闭操作的外设:每一个,即OpenTime1,OpenSART1或OpenSART2 ETCWORD是某种驱动器,被称为使用相同的功能。集合,但返回请求资源的句柄(如果可用):这样可以很容易地在任务之间共享,使用用于报告状态的回调函数等。
以上来自于百度翻译 以下为原文 From what I learnt (no direct experience on PICs) it's called a "static driver" something that resolves to an "old-style" Open/Use/Close modus operandi for the peripherals: each of them, i.e. OpenTimer1, OpenUSART1 or OpenUSART2 etc Dynamic are some kind of drivers that are called using the same function set, but return a Handle to the requested resource (if available): this way it can be easily shared between tasks, using callbacks functions for reporting state, etc |
|
|
|
静态驱动程序将代码复制到像MCC这样的项目中。它们需要每个实例的母代码集。动态的调用和谐库共享代码。
以上来自于百度翻译 以下为原文 The static drivers copy code to the project like MCC. They require a mother set of code for each instance. The dynamic ones call harmony library shared code. |
|
|
|
动态的协调驱动程序要求你想把哪个外设作为一个参数。如果你需要一个USAT的外围动态init的不止一个实例,那么使用更少的内存:静态驱动程序的硬件实例号是硬编码的,所以不需要参数。RMONY的配置程序将动态驱动程序保存在框架文件夹中。配置器将静态驱动程序的副本放在应用程序文件夹中。如果您对动态驱动程序进行更改,则对整个框架进行更改,如果您对STA进行更改,那么对于我来说,这是不太好的。TIC驱动程序在您的应用程序中是本地的,不会破坏其他项目的框架。-IC
以上来自于百度翻译 以下为原文 Dynamic drivers in Harmony ask for which peripheral you want to talk to as an argument. Less memory is used if you require more than one instance of a peripheral Dynamic init of a USART: SYS_MODULE_OBJ DRV_USART_Initialize ( const SYS_MODULE_INDEX index, const SYS_MODULE_INIT * const init ); Static drivers have the hardware instance numbers hard coded so don't require an argument. Static init of a USART: SYS_MODULE_OBJ DRV_USART0_Initialize(void); // USART instance selected by MHC combo box Harmony's configurator keeps the Dynamic drivers inside a framework folder. The configurator puts copies of Static drivers in your application folder. If you make changes to a Dynamic driver, you are making changes to the entire framework, which for me has been not so good, if you make changes to a Static driver it is local to your application and won't wreck the framework for other projects. -IC |
|
|
|
和声帮助:第三卷:MPLAB和谐发展&关键概念&关键一对多关系&静态与动态
以上来自于百度翻译 以下为原文 In the Harmony Help: Volume III: MPLAB Harmony Development > Key Concepts > Key One-to-Many Relationships > Static vs. Dynamic |
|
|
|
|
|
|
|
嗨,静态驱动程序被映射到一个特定的外围设备的HW实例。EX:如果你使用4个SPI接口,你基本上有4个静态驱动程序副本,每个都与特定的特定接口对话。应用程序必须确保它调用适当的驱动程序接口API来进行ACCES。1)它允许多个应用程序客户端在没有竞争条件的情况下与外围设备的相同的HW实例进行对话。2)可以在阻塞和非阻塞模式下配置驱动程序。3)可以动态地(运行时)E。4)动态(运行时)配置的外设(在任何合适的地方)是可能的。5)支持回调通知。6)驱动程序的单一副本(基于它是如何配置的)允许访问外围设备的所有实例。和声帮助文档解释了驱动程序的设计。谢谢,
以上来自于百度翻译 以下为原文 Hi, Static driver is mapped to a particular HW instance of the peripheral. Ex: If you use 4 SPI interfaces, you basically have 4 copies of the static driver, each of them talking to individual specific interface. The application has to make sure that it calls appropriate driver interface APIs to access a particular interface. Dynamic driver is much more than what a static driver does. 1) It allows multiple application clients to talk to the same hw instance of the peripheral without race conditions. 2) Can configure the driver in blocking as well as non-blocking mode. 3)Can dynamically (run time) enable or disable a driver or an interface. 4) Dynamic (Run time) configuration of the peripheral (where ever suitable) is possible. 5) Call back notifications are supported. 6) Single copy of the driver (based on how it is configured) allows to access all the instances of peripheral. and many more. The Harmony help documentation explains the driver design in great deal. Thanks, |
|
|
|
只有小组成员才能发言,加入小组>>
5228 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3199 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
770浏览 1评论
658浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
586浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
668浏览 0评论
570浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 19:28 , Processed in 1.345880 second(s), Total 87, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号