1 /******************************************************************************
2 ** File Name: os_param.h *
3 ** Author: Xueliang.Wang *
5 ** Copyright: 2003 Spreatrum, Incoporated. All Rights Reserved. *
6 ** Description: This file contain some OS parameter config. *
7 ******************************************************************************
9 ******************************************************************************
11 ** ------------------------------------------------------------------------- *
12 ** DATE NAME DESCRIPTION *
13 ** 08/27/2003 Xueliang.Wang Create. *
14 ******************************************************************************/
18 /**---------------------------------------------------------------------------*
20 **---------------------------------------------------------------------------*/
23 /**---------------------------------------------------------------------------*
25 **---------------------------------------------------------------------------*/
31 /**---------------------------------------------------------------------------*
33 **---------------------------------------------------------------------------*/
34 /**---------------------------------------------------------------------------*
35 ** Constant Variables *
36 **---------------------------------------------------------------------------*/
38 // If it is in debug mode, print assert information when assert;
40 #define SCI_ASSERT_DEBUG_MODE 1
41 /* @Jim.zhang CR:MS12298 2004-08-26 */
42 #define SCI_ASSERT_RELEASE_MODE 0x35
45 /**---------------------------------------------------------------------------*
47 **---------------------------------------------------------------------------*/
48 /**---------------------------------------------------------------------------*
49 ** Function Prototypes *
50 **---------------------------------------------------------------------------*/
51 /*****************************************************************************/
52 // Description: The function initialize os parameters which on NVItem.
53 // Global resource dependence:
54 // Author: Xueliang.Wang
55 // Note: It must be called before use the os parameters,
56 // and after flash could access.
57 /*****************************************************************************/
58 PUBLIC void OSPARAM_InitOsParam(void);
60 /*****************************************************************************/
61 // Description: The function gets static thread log table.
62 // Global resource dependence:
63 // Author: Xueliang.Wang
64 // Note: Size of log_table should be not less than
65 // uint32[SCI_MAX_STATIC_THREAD_ID].
66 /*****************************************************************************/
67 PUBLIC uint32 OSPARAM_GetThreadLogTable(// If set successfully, return
68 // SCI_SUCCESS; else return SCI_ERROR
69 uint32 *log_table_ptr // Pointer to a uint32 arry,
70 // which used to save log table.
73 /*****************************************************************************/
74 // Description: The function sets static thread log table.
75 // Global resource dependence:
76 // Author: Xueliang.Wang
77 // Note: Size of log_table should be equal
78 // uint32[SCI_MAX_STATIC_THREAD_ID].
79 /*****************************************************************************/
80 PUBLIC uint32 OSPARAM_SetThreadLogTable(// If set successfully, return
81 // SCI_SUCCESS; else return SCI_ERROR
82 uint32 *log_table_ptr // Pointer to log table which used to set.
85 /*****************************************************************************/
86 // Description: The function gets assert mode.
87 // Global resource dependence:
88 // Author: Xueliang.Wang
89 // Note: The valid value should be:
90 // SCI_ASSERT_DEBUG_MODE or SCI_ASSERT_RELEASE_MODE
91 /*****************************************************************************/
92 PUBLIC uint32 OSPARAM_GetAssertMode(// If set successfully, return SCI_SUCCESS;
93 // else return SCI_ERROR
94 uint8 *assert_mode_ptr // Pointer to a uint8,
95 // which used to save assert mode.
98 /*****************************************************************************/
99 // Description: The function sets assert mode.
100 // Global resource dependence:
101 // Author: Xueliang.Wang
102 // Note: The valid value should be:
103 // SCI_ASSERT_DEBUG_MODE or SCI_ASSERT_RELEASE_MODE
104 /*****************************************************************************/
105 PUBLIC uint32 OSPARAM_SetAssertMode(// If set successfully, return SCI_SUCCESS;
106 // else return SCI_ERROR
107 uint8 assert_mode // Assert mode value used to set.
110 /*****************************************************************************/
111 // Description: The function get record assert infor to flash flag.
112 // Global resource dependence:
113 // Author: Johnson.sun
115 /*****************************************************************************/
116 PUBLIC uint8 OSPARAM_GetRecordAssertInforToFlashFlag( void );
118 /**---------------------------------------------------------------------------*
120 **---------------------------------------------------------------------------*/
125 #endif // _OS_PARAM_H