Skip to content
New issue

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

擦/写操作是否可以优化为非阻塞方式? #95

Open
FarmerAccount opened this issue Aug 5, 2024 · 0 comments
Open

擦/写操作是否可以优化为非阻塞方式? #95

FarmerAccount opened this issue Aug 5, 2024 · 0 comments

Comments

@FarmerAccount
Copy link

当前实现的擦写操作在擦/写命令发出后等待状态字为空闲时再退出函数,这样在嵌入式应用程序中会阻塞应用程序的运行。
是否可以更改为在擦/写函数开始处等待空闲标志,空闲后发送擦/写命令,然后立即退出,这样嵌入式应用程序和Dataflash内部的擦/写操作可以并行,减少应用程序的阻塞。在一些写数据量小,实时性要求高的系统中,性能优化比较明显。

不知您怎样考这两种处理方式的优缺点的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant