1 /******************************************************************************
2 ** File Name: block_id.h *
3 ** Author: Richard Yang *
5 ** Copyright: 2001 Spreatrum, Incoporated. All Rights Reserved. *
7 ******************************************************************************
9 ******************************************************************************
11 ** ------------------------------------------------------------------------- *
12 ** DATE NAME DESCRIPTION *
13 ** 16/10/2001 Richard.Yang Create. *
14 ******************************************************************************/
19 #include "tasks_def.h"
22 /**---------------------------------------------------------------------------*
24 **---------------------------------------------------------------------------*/
26 /**---------------------------------------------------------------------------*
28 **---------------------------------------------------------------------------*/
35 /**---------------------------------------------------------------------------*
36 ** Constant Variables *
37 **---------------------------------------------------------------------------*/
38 // User can define other static task ids
39 // from USER_CUSTOMIZE_TASK_ID_START
40 // to USER_CUSTOMIZE_TASK_ID_END
41 // NOTE: The number of static tasks user defined
42 // MUST be no more than USER_CUSTOMIZE_TASK_MAX_NUM
43 #define USER_CUSTOMIZE_TASK_MAX_NUM 7
44 #define USER_CUSTOMIZE_TASK_ID_START 93
45 #define USER_CUSTOMIZE_TASK_ID_END 99
47 #define SYSTEM_STATIC_THREAD_MAX_NUM 93
51 /* Here is for Refence design. From 0 to 11*/
52 CM = 0, // Channel manager thread defination.
53 DIAG = 1, // Diagnostic thread defination.
62 FORBIDDEN_USE10, // Reserved for MIDI(for D platform) and MP3,
63 P_TPP, // Touch Panel Task
65 /* Here is for Layer1 design. From 12 to 14*/
67 TESTDSPTOL1 = 13, // just for test
68 TESTPSTOL1 = 14, // just for test
70 /* Here is for simat design. From 15 to 17*/
75 /* Here is for Protocol Stack design. From 18 to 20*/
80 P_APP = 21, // used for APP
82 /* Here is for SIM design. From 22 to 23*/
87 FFS =25,// RESERVED25 = 25,
90 CUSTOMIZED_STATIC_TASKS // 12 tasks id
92 // Add your tasks id here.
93 // But all static tasks MUST be less than SYSTEM_STATIC_THREAD_MAX_NUM !!!
122 MAX_BLOCK_NUM = USER_CUSTOMIZE_TASK_ID_START
125 #define UPM UDISK // UPM is used for M platform
126 // UDISK is used for D platform
127 #define MIDI FORBIDDEN_USE10 // MIDI is used for D platform
129 #define P_TP P_TPP // Touch Panel task used in SC6800 platform
133 STARUP_DYNA_TASK_ID = USER_CUSTOMIZE_TASK_ID_END + 1,
134 CUSTOMIZED_DYNAMIC_TASKS
142 GPRS_LOG_MSG_ID = 0x90
143 }dyna_thread_id_type;
146 #ifndef _SUPPORT_GPRS_
155 #ifndef P_SNDCPEntity
156 #define P_SNDCPEntity 0
160 /**---------------------------------------------------------------------------*
162 **---------------------------------------------------------------------------*/
164 /**---------------------------------------------------------------------------*
165 ** Global Variables *
166 **---------------------------------------------------------------------------*/
168 /**---------------------------------------------------------------------------*
169 ** External Functions *
170 **---------------------------------------------------------------------------*/
172 /**---------------------------------------------------------------------------*
173 ** Function Prototypes *
174 **---------------------------------------------------------------------------*/
176 /**---------------------------------------------------------------------------*
178 **---------------------------------------------------------------------------*/
183 #endif /* End block_id.h*/