1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #include "include.h"
- #include "func.h"
- #include "func_idle.h"
- #if FUNC_IDLE_EN
- AT(.text.func.idle)
- void func_idle_process(void)
- {
- func_process();
- }
- static void func_idle_enter(void)
- {
- #if PLUGIN_FUNC_IDLE_ENTER_CHECK
- if (!plugin_func_idle_enter_check()) { //可以处理开机, 判断是否要停在idle模式, 等待设备插入的方案.
- return;
- }
- #endif
- led_idle();
- }
- static void func_idle_exit(void)
- {
- func_cb.last = FUNC_IDLE;
- }
- AT(.text.func.idle)
- void func_idle(void)
- {
- printf("%s\n", __func__);
- func_idle_enter();
- while (func_cb.sta == FUNC_IDLE) {
- func_idle_process();
- func_idle_message(msg_dequeue());
- func_idle_display();
- }
- func_idle_exit();
- }
- #endif
|