We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在数据发送和引脚功能配置上可否加入类似如下的代码以加强在各类嵌入式平台的可移植性和可兼容性
#include "deng_foc_interface.h" status I2C_send_interface(some pra) { /*添加输入您库的代码*/ } status I2C_read_interface(some pra) { /*添加输入您库的代码*/ } status delay_interface(some pra) { /*添加输入您库的输入代码*/ } status create_mutex_interface(some pra) { /*添加输入您库的代码*/ } status take_mutex_interface(some pra) { /*添加输入您库的代码*/ } status release_mutex_interface(some pra) { /*添加输入您库的代码*/ } status create_msg_interface(some pra) { /*添加输入您库的代码*/ } status take_msg_interface(some pra) { /*添加输入您库的代码*/ } stauts release_msg_interface(some pra) { /*添加输入您库的代码*/ } /*等等如果需要的话*/
如果有的话,可能仅仅需要完成该文件的移植,所有的代码在移植上就基本完成了,也需逻辑部分也是可以完全通用的 以此类推,也需这样的模块也是不错的
#include "hardware.h" status some_hardware_init(some pra) { /*添加输入您库的代码*/ } status some_hardware_update(some pra) { /*添加输入您库的代码*/ } /*等等如果需要的话*/
这样的话算法部分和硬件部分就可以最大程度的分割开来。
The text was updated successfully, but these errors were encountered:
很好的建议,后续会采用
Sorry, something went wrong.
No branches or pull requests
在数据发送和引脚功能配置上可否加入类似如下的代码以加强在各类嵌入式平台的可移植性和可兼容性
如果有的话,可能仅仅需要完成该文件的移植,所有的代码在移植上就基本完成了,也需逻辑部分也是可以完全通用的
以此类推,也需这样的模块也是不错的
这样的话算法部分和硬件部分就可以最大程度的分割开来。
The text was updated successfully, but these errors were encountered: