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

您好,我把资源放到SD卡或者QSPI FLASH中,使用文件系统如何操作? #194

Open
wpmyj opened this issue Aug 4, 2019 · 3 comments

Comments

@wpmyj
Copy link

wpmyj commented Aug 4, 2019

您好,我把资源放到SD卡或者QSPI FLASH中,使用文件系统如何操作?

@xianjimli
Copy link
Member

稍等两天,我请同事研究一下写个文档。

@sosotan
Copy link
Contributor

sosotan commented Aug 5, 2019

  1. 首先你的系统要支持文件系统, 并且通过文件系统可以操作SD卡或QSPI FLASH

  2. 然后你移植的时候, 需要实现 fs_t* os_fs(void) 这个函数, 把awtk的文件操作适配到实际的文件系统
    可以参考 awtk-aworks-rt1052 这个仓库中的 fs_os.c

  3. 最后在应用初始化的时候, 最后一个参数传入资源文件夹的路径

tk_init(lcd_w, lcd_h, APP_MOBILE, NULL, res_root);

@ytchw101
Copy link

ytchw101 commented Oct 9, 2019

你好 请问有写好的说明文档吗?

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

4 participants