📄 app_tasks_fs.c
字号:
#define APP_TASKS_C
/*******************************************************************/
/* Copyright (C) 2001 SPREADTRUM COMMUNICATION CO. */
/* All rights reserved. */
/* */
/* This document contains proprietary information belonging to */
/* SPREADTRUM. Passing on and copying of this */
/* document, use and communication of its contents is not */
/* permitted without prior written authorisation. */
/*******************************************************************/
/* Revision information: */
/* File [ mmilcd.c ] */
/* Version [ 0.1 Draft 04/03/2003 jakle zhu ] */
/* Description This file provide lcd APIs for LCD display */
/* */
/*******************************************************************/
#include "sci_types.h"
#include "os_api.h"
#include "user_tasks_id.h"
#include "mmk_msg.h"
#include "mmk_kbd.h"
#include "mmi_appmsg.h"
#include "dal_lcd.h"
#include "dal_keypad.h"
#include "guicommon.h"
#include "HWTP_manage_FS.h"
#include "HW_recog_FS.h"
//#include "sci_api.h"
// Create static thread macro.
#define CREATE_APP_STATIC_THREAD(NAME, THREAD_ENTRY, PRIO) \
SCI_CreateStaticThread( NAME, "T_"#NAME, THREAD_ENTRY, 0, 0, \
NAME##_THREAD_ADDR, NAME##_STACK_SIZE, PRIO, SCI_PREEMPT, \
"Q_"#NAME, NAME##_QUEUE_ADDR, NAME##_QUEUE_NUM, SCI_AUTO_START);
extern void APP_Task(uint32 argc, void * argv);
//extern PUBLIC uint32 MMI_WaitInit(void);
// stack and queue define
#define P_APP_STACK_SIZE 8000
uint32 P_APP_THREAD_ADDR[P_APP_STACK_SIZE >> 2];
#define P_APP_QUEUE_NUM 256
uint32 P_APP_QUEUE_ADDR[P_APP_QUEUE_NUM * SCI_QUEUE_ITEM_SIZE];
// @Great.Tian, define the init apptask
BLOCK_ID g_appinit_task_id;
extern void APPINIT_Task(uint32 argc, void * argv);
// stack and queue define
#define P_APPINIT_STACK_SIZE 4000
// uint32 P_APPINIT_THREAD_ADDR[P_APP_STACK_SIZE >> 2];
#define P_APPINIT_QUEUE_NUM 2
// uint32 P_APPINIT_QUEUE_ADDR[P_APP_QUEUE_NUM * SCI_QUEUE_ITEM_SIZE];
#define P_APPINIT_TASK_PRIORITY 29
#define HWTP_SEND_POINT_TO_MMI_INTERVAL 1000
#define INVALID_MMI_COORD_X 0x7FFF
#define INVALID_MMI_COORD_Y 0x7FFF
uint32 SCI_InitAppTasks(void)
{
// Create the APP tasks
MMI_WaitInit();
// MMI task create
CREATE_APP_STATIC_THREAD(P_APP, APP_Task, SCI_PRIORITY_LOWEST);
// Add the other taks create function here
g_appinit_task_id = SCI_CreateThread(
"T_P_APPINIT",
"Q_P_APPINIT",
APPINIT_Task,
0,
0,
P_APPINIT_STACK_SIZE,
P_APPINIT_QUEUE_NUM,
P_APPINIT_TASK_PRIORITY,
SCI_PREEMPT,
SCI_AUTO_START);
// create hw recognise task
HWRecog_task_init();
// create hw pen point manage task
HWTP_task_init();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -