Added code for MAC-PHY interface, DU_APP, F1AP, SCTP and CU stub
[o-du/l2.git] / src / cu_app / cu_mgr_main.c
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 /* This functions contains main() for cu_app */
20
21 #include "cu_mgr_main.h"
22 #include "cu_sctp.h"
23
24 /*******************************************************************
25  *
26  * @brief Main function of CU APP
27  *
28  * @details
29  *
30  *    Function : main
31  *
32  *    Functionality:
33  *         - Reads CU related configurations
34  *         - Initialize SCTP Parameters
35  *         - Start SCTP receiver thread
36  *
37  * @params[in] 
38  * @return ROK     - success
39  *         RFAILED - failure
40  *
41  * ****************************************************************/
42
43 void main()
44 {
45    printf("\nStarting cu_app");
46    
47    /* Read CU configurations */
48    readCuCfg();
49
50    /* Initializing SCTP global parameters */
51    sctpActvInit(0, 0, 0, 0);
52  
53    /* Start CU-SCTP to listen on incoming connection */
54    sctpStartReq(); 
55 }
56
57 /**********************************************************************
58          End of file
59 **********************************************************************/