发 帖  
原厂入驻New
张飞60小时讲透半桥串联谐振软开关电源设计,立即学习!
[问答] Microchip Harmony中静态和动态驱动器的区别是什么?
155 驱动器 microchip
分享
静态和动态驱动器在微芯片和谐中有什么区别?

以上来自于百度翻译


      以下为原文

    What is DIFference between Static and Dynamic Driver in Microchip HARMony.?
0
2019-4-3 14:53:30   评论 分享淘帖 邀请回答
6个回答
从我所学到的(没有直接经验的图片),它被称为“静态驱动器”的东西,解决了一个“旧风格”的开放/使用/关闭操作的外设:每一个,即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
2019-4-3 15:00:43 评论

举报

静态驱动程序将代码复制到像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.
2019-4-3 15:10:26 评论

举报

动态的协调驱动程序要求你想把哪个外设作为一个参数。如果你需要一个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
 
2019-4-3 15:18:16 评论

举报

和声帮助:第三卷:MPLAB和谐发展&关键概念&关键一对多关系&静态与动态

以上来自于百度翻译


      以下为原文

    In the Harmony Help:
 
Volume III: MPLAB Harmony Development > Key Concepts > Key One-to-Many Relationships > Static vs. Dynamic
2019-4-3 15:24:27 评论

举报

谢谢大家。

以上来自于百度翻译


      以下为原文

    Thanks ALL OF YOU.
2019-4-3 15:30:36 评论

举报

嗨,静态驱动程序被映射到一个特定的外围设备的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,
 
 
2019-4-3 15:40:05 评论

举报

只有小组成员才能发言,加入小组>>

42个成员聚集在这个小组

加入小组

创建小组步骤

关闭

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

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