⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 app.c

📁 ucos-II2.51在S3C44B0X上的移植 开发环境:SDT2.50 实验板:ES44BO
💻 C
字号:
/*
 *************************************************************************
 * Copyright (c) 2003, The Lab of Embedded System and Net Security,WHUT..
 * All rights reserved. 
 *
 * Filename:    app.c
 * Discription: This file concerns to basic file operations
 * 
 * version:            1.0
 * Author:             Qiu Yanfei <qyfhm@tom.com>
 * Accomplished Date:  2004/5/8 10:29:00
 *************************************************************************
*/
#include "..\bsp\keyboard\keyboard.h"
#include "..\bsp\lcd\window.h"
#include "../os/ucos/includes.h"
#define APP_GLOBAL
#include "app.h"

void usr_msg_process(void * arg)
{
  U16 err;
  struct usr_msg *msg; 
  
  gui_list_init();
  
  while(1)
  {
    msg = (struct usr_msg *)OSQPend(usr_msg_q.usrQ, 0, &err);   

    switch (msg->type)
    {
      case USR_MSG_KEY:
        if(msg->data == 13)//KEY_DOWN)        
        (void)gui_list_inc();
        else if(msg->data ==14)// KEY_UP)        
        (void)gui_list_dec();
        else if(msg->data == 15)//KEY_ESC)
        gui_demo_end();
        else if(msg->data == 12)//KEY_OK)
        (void)gui_list_selected();
        break;
      case USR_MSG_TASK:
        Uart_Printf("USR_MSG_TASK is %d\n", *((S32 *)(msg->pdata)));
        break;      
      default:
        break;
    }
  }
} 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -