Initial commit
[o-du/l2.git] / src / mt / ss_task.h
1 /*******************************************************************************
2 ################################################################################
3 #   Copyright (c) [2017-2019] [Radisys]                                        #
4 #                                                                              #
5 #   Licensed under the Apache License, Version 2.0 (the "License");            #
6 #   you may not use this file except in compliance with the License.           #
7 #   You may obtain a copy of the License at                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
11 #   Unless required by applicable law or agreed to in writing, software        #
12 #   distributed under the License is distributed on an "AS IS" BASIS,          #
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
14 #   See the License for the specific language governing permissions and        #
15 #   limitations under the License.                                             #
16 ################################################################################
17 *******************************************************************************/
18
19 /********************************************************************20**
20  
21      Name:     System Services -- Task Management
22  
23      Type:     C include file
24  
25      Desc:     Various macro definitions required for the task mgmt.
26  
27      File:     ss_task.h
28  
29 *********************************************************************21*/
30
31
32 #ifndef __SSTASKH__
33 #define __SSTASKH__
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39
40 /* task types */
41 #define SS_TSK_UND              0               /* undefined */
42 #define SS_TSK_NORMAL           1               /* normal task */
43 #define SS_TSK_PERMANENT        2               /* permanent task */
44
45 /* ss001.301: additions */
46 #ifdef SS_LOGGER_SUPPORT 
47 #define SS_LOG_TO_FILE          0               /* write log to file */
48 #define SS_LOG_TO_SOCKET        1               /* write log to socket */
49 #define SS_LOG_ALL              2               /* write log to file and socket*/
50 #endif /* SS_LOGGER_SUPPORT */
51
52 #ifdef SS_WATCHDOG
53 #define ENTDW                           0xcd
54 #define ENTHB                           0xce
55 #define INST0                           0x00
56 #define SS_TMR_HRTBT                    0x00
57 #define EVTSSHRTBTREQ                   0x00
58 #define EVTSSHRTBTRSP                   0x01
59 #define SS_LOOSE_COUPLING               0x00
60 #endif /* SS_WATCHDOG */
61
62 /* task priorities (these are system task priorities--0 to 31) */
63 #define SS_NORM_TSK_PRI         13              /* for normal tasks */
64 #define SS_PERM_TSK_PRI         21              /* for permanent tasks */
65
66
67 #define SS_LOWEST_STSK_PRIOR    31              /* lowest sys task priority */
68
69
70 #ifdef __cplusplus
71 }
72 #endif
73
74 #endif /* __SSTASKH__ */
75
76 \f
77 /********************************************************************30**
78   
79          End of file
80 **********************************************************************/