动态的协调驱动程序要求你想把哪个外设作为一个参数。如果你需要一个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
动态的协调驱动程序要求你想把哪个外设作为一个参数。如果你需要一个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
举报