1 /******************************************************************************
2 ** File Name: ref_outport.h *
3 ** Author: Daniel.Ding *
5 ** Copyright: 2005 Spreatrum, Incoporated. All Rights Reserved. *
7 ******************************************************************************/
8 /******************************************************************************
10 **---------------------------------------------------------------------------*
11 ** DATE NAME DESCRIPTION *
12 ** 3/25/2006 Daniel.Ding Create. *
13 ******************************************************************************/
14 #ifndef _REF_OUTPORT_H_
15 #define _REF_OUTPORT_H_
16 /*----------------------------------------------------------------------------*
18 **-------------------------------------------------------------------------- */
19 #include "sci_types.h"
20 /**---------------------------------------------------------------------------*
22 **---------------------------------------------------------------------------*/
27 /**----------------------------------------------------------------------------*
29 **----------------------------------------------------------------------------*/
31 #define REF_AT_BASE 0X80000000
32 #define REF_AT_INVLID_PARA REF_AT_BASE + 1
33 #define REF_AT_INVLID_CMD REF_AT_BASE + 2
35 /**----------------------------------------------------------------------------*
37 **----------------------------------------------------------------------------*/
39 /**----------------------------------------------------------------------------*
40 ** Local Function Prototype **
41 **----------------------------------------------------------------------------*/
43 /**----------------------------------------------------------------------------*
44 ** Function Prototype **
45 **----------------------------------------------------------------------------*/
46 /*****************************************************************************/
47 // Description : This function delay some ticks .
48 // Global resource dependence :
49 // Author : Daniel.ding
51 /*****************************************************************************/
52 PUBLIC uint32 OS_TickDelay(uint32 ticks);
54 /*****************************************************************************/
55 // Description: OS_CheckStackRegion
56 // Global resource dependence:
57 // Author: Younger.yang
58 // Note: This function provide system stack region
59 /*****************************************************************************/
61 BOOLEAN OS_CheckStackRegion(uint32 addr);
63 /*****************************************************************************/
64 // Description: OS_CheckCodeRegion
65 // Global resource dependence:
66 // Author: Younger.yang
67 // Note: This function provide system code region
68 /*****************************************************************************/
69 BOOLEAN OS_CheckCodeRegion(uint32 addr);
71 /*****************************************************************************/
73 PUBLIC uint32 OS_TickDelay(uint32 ticks);
75 /*****************************************************************************/
76 // Description : This function send a char to uart or usb virtual com at assert debug
77 // Global resource dependence :
78 // Author : weihua.wang
80 /*****************************************************************************/
81 PUBLIC void OS_DebugPutChar(uint8 ch);
83 /******************************************************************************/
84 // Description: Handler AT Command
86 // Author: Haifeng.Yang
88 /******************************************************************************/
89 PUBLIC uint32 REF_HandleATCommand(uint8* at_string);
91 /*****************************************************************************/
92 // Description : This function send a char to uart or usb virtual com at assert debug
93 // Global resource dependence :
94 // Author : weihua.wang
96 /*****************************************************************************/
97 PUBLIC void OS_DebugPutChar(uint8 ch);
99 /*****************************************************************************/
100 // Description : This function scanf a char from uart receive register at debug.
101 // Global resource dependence :
102 // Author : hanjun.liu
104 /*****************************************************************************/
105 PUBLIC int OS_DebugGetChar(void);
107 /*****************************************************************************/
108 // Description: The OS_DumpPrint function is used to print string by
110 // Global resource dependence:
111 // Author: Richard.Yang
113 /*****************************************************************************/
114 PUBLIC void OS_DumpFlush(void);
116 /**----------------------------------------------------------------------------*
118 **----------------------------------------------------------------------------*/
122 /**---------------------------------------------------------------------------*/