#endif
if ((g_pms_lcd_on_first_flag == false) && (g_pms_dpu_ready == false)) {
// touch_screen_resume();// open touch/
- post_func_to_graphic(touch_screen_resume); // open touch 太耗时,放到GraphicService里延迟执行,加快亮屏速度。
+ if (touch_resume_in_cmd_queue() != 0)
+ post_func_to_graphic(touch_screen_resume); // open touch 太耗时,放到GraphicService里延迟执行,加快亮屏速度。
rotary_encoder_resume();
}
#ifdef CONFIG_CLDO1PD_SUPPORT
static bool g_custom_cmd_queue_created = 0;
static bool custom_cmd_service_running_stat = false;
-void do_custom_cmd_service_check_msg(int cmd, void *params, int paramlen)
+errcode_t do_custom_cmd_service_check_msg(int cmd, void *params, int paramlen)
{
int ret;
- if (g_custom_cmd_queue_created == 0 ) return ;
+ if (g_custom_cmd_queue_created == 0 ) return ERRCODE_FAIL;
// 检查参数长度是否合法
if (paramlen > sizeof(custom_cmd_cmd_t) - sizeof(uint8_t))
{
PRINT("Error: 参数长度超过最大限制! \r\n");
- return;
+ return ERRCODE_FAIL;
}
custom_cmd_cmd_t mail = {0};
if (ret != OSAL_SUCCESS)
{
PRINT("Error custom_cmd Check MSG 0x%02X send failed! err=0x%x! \r\n", cmd, ret);
+ return ERRCODE_FAIL;
}
+ return ERRCODE_SUCC;
}
static void custom_cmd_service_check_task(void const *arg)
// 根据邮件中的命令进行相应的处理
switch (mail.cmd)
{
+ case CUSTOM_CMD_MSG_TYPE_TOUCH_RESUME:
+ touch_screen_resume();
+ break;
case CUSTOM_CMD_MSG_TYPE_ADD_CAT1VOTE:
uapi_cat1_add_cat1_vote();
//中断会在此添加休眠投票,在收到cat1的消息后,会移除投票进入休眠。
{
uapi_delete_files(SLEEP_FLAG_PATH);
}
+
+
+errcode_t touch_resume_in_cmd_queue(void)
+{
+ return do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_TYPE_TOUCH_RESUME,NULL,0);
+}
\ No newline at end of file
#define CUSTOM_CMD_MSG_CHECK_RES 0x0D
#define CUSTOM_CMD_MSG_DOWNLOAD_RES 0x0E
+
+#define CUSTOM_CMD_MSG_TYPE_TOUCH_RESUME 0x0F
typedef enum {
BR_HFP_CONNECT=1,
BR_HFP_DISCONNECT,
} CUSTOM_CMD_MSG_BR_CONNECT_TYPE;
errcode_t uapi_custom_cmd_service_init(void);
-void do_custom_cmd_service_check_msg(int cmd, void *params, int paramlen);
+errcode_t do_custom_cmd_service_check_msg(int cmd, void *params, int paramlen);
int uapi_delete_files(const char *file_path);
void uapi_restore_factory_setting(void);
*/
uint16_t get_drag_limit(uint8_t direction);
+errcode_t touch_resume_in_cmd_queue(void);
+
#include "custom_utilscpp.h"