tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc9630 / ref_outport.h
1 /******************************************************************************
2  ** File Name:    ref_outport.h                                                    *
3  ** Author:       Daniel.Ding                                                 *
4  ** DATE:         3/25/2006                                                    *
5  ** Copyright:    2005 Spreatrum, Incoporated. All Rights Reserved.           *
6  ** Description:                                                              *
7  ******************************************************************************/
8 /******************************************************************************
9  **                   Edit    History                                         *
10  **---------------------------------------------------------------------------* 
11  ** DATE          NAME            DESCRIPTION                                 * 
12  ** 3/25/2006      Daniel.Ding     Create.                                     *
13  ******************************************************************************/
14 #ifndef _REF_OUTPORT_H_
15     #define _REF_OUTPORT_H_
16 /*----------------------------------------------------------------------------*
17  **                         Dependencies                                      *
18  **-------------------------------------------------------------------------- */
19 #include "sci_types.h"
20 /**---------------------------------------------------------------------------*
21  **                             Compiler Flag                                 *
22  **---------------------------------------------------------------------------*/
23 #ifdef   __cplusplus
24     extern   "C" 
25     {
26 #endif
27 /**----------------------------------------------------------------------------*
28 **                               Micro Define                                 **
29 **----------------------------------------------------------------------------*/
30 //REF ERROR CODE
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
34
35 /**----------------------------------------------------------------------------*
36 **                             Data Prototype                                 **
37 **----------------------------------------------------------------------------*/
38
39 /**----------------------------------------------------------------------------*
40 **                         Local Function Prototype                           **
41 **----------------------------------------------------------------------------*/
42
43 /**----------------------------------------------------------------------------*
44 **                           Function Prototype                               **
45 **----------------------------------------------------------------------------*/
46 /*****************************************************************************/
47 // Description :    This function delay some ticks .
48 // Global resource dependence :
49 // Author :         Daniel.ding
50 // Note :           
51 /*****************************************************************************/
52 PUBLIC uint32 OS_TickDelay(uint32 ticks);
53
54 /*****************************************************************************/
55 //  Description:    OS_CheckStackRegion
56 //  Global resource dependence: 
57 //  Author:        Younger.yang
58 //  Note:           This function  provide system stack region
59 /*****************************************************************************/
60
61 BOOLEAN OS_CheckStackRegion(uint32 addr);
62
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);
70
71 /*****************************************************************************/
72
73 PUBLIC uint32 OS_TickDelay(uint32 ticks);
74
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
79 // Note :           
80 /*****************************************************************************/
81 PUBLIC void OS_DebugPutChar(uint8 ch);
82
83 /******************************************************************************/
84 // Description:   Handler AT Command
85 // Dependence:    None
86 // Author:        Haifeng.Yang
87 // Note:
88 /******************************************************************************/
89 PUBLIC uint32 REF_HandleATCommand(uint8* at_string);
90
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
95 // Note :           
96 /*****************************************************************************/
97 PUBLIC void OS_DebugPutChar(uint8 ch);
98
99 /*****************************************************************************/
100 // Description : This function scanf a char from uart receive register at debug.
101 // Global resource dependence :
102 // Author :         hanjun.liu
103 // Note :           
104 /*****************************************************************************/
105 PUBLIC int OS_DebugGetChar(void);
106  
107 /*****************************************************************************/
108 //  Description:    The OS_DumpPrint function is used to print string by 
109 //                  serial port.
110 //      Global resource dependence:
111 //  Author:         Richard.Yang
112 //      Note:
113 /*****************************************************************************/
114 PUBLIC  void OS_DumpFlush(void);
115
116 /**----------------------------------------------------------------------------*
117 **                         Compiler Flag                                      **
118 **----------------------------------------------------------------------------*/
119 #ifdef   __cplusplus
120     }
121 #endif
122 /**---------------------------------------------------------------------------*/
123 #endif
124 // End