app_msg.h 414 B

1234567891011121314151617181920
  1. #ifndef SYS_APP_MSG_H
  2. #define SYS_APP_MSG_H
  3. //app自定义消息发送接口
  4. int app_task_put_usr_msg(int msg, int arg_num, ...);
  5. //app消息获取接口(block参数为0表示内部pend,1直接返回)
  6. void app_task_get_msg(int *msg, int msg_size, int block);
  7. //app按键消息发送接口
  8. int app_task_put_key_msg(int msg, int value);
  9. //app清理按键消息接口
  10. void app_task_clear_key_msg();
  11. #endif