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

Low power mode + document #49

Closed
einthecorgi2 opened this issue Jul 13, 2022 · 1 comment
Closed

Low power mode + document #49

einthecorgi2 opened this issue Jul 13, 2022 · 1 comment

Comments

@einthecorgi2
Copy link

提供低功耗模式的示例和文档。特别是在 AIC8800 上

@versaloon
Copy link
Contributor

VSF的低功耗实现,如果需要的话,我们加上,实现方式如下:

  1. 在用户层实现vsf_plug_in_on_kernel_idle,覆盖weak版本的实现。
    void vsf_plug_in_on_kernel_idle(void) { vsf_sleep(); }
    vsf_sleep没有参数的时候(默认为0),仅仅是处理器内核休眠,等待换新事件或者中断(相当于arm的wfe指令)。
    vsf_sleep如果有参数的话,参数可以指定最低休眠等级。
    vsf_sleep会调用vsf_arch_sleep,并且传入休眠等级。

不过,AIC8800M还没有这么对接,官方也没对应的文档。
如果需要的话,我可以建立AIC8800M的技术支持通道,低功耗有专用的SDK。
可以加QQ群:736714326

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

2 participants