mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
64 lines
2.0 KiB
C
64 lines
2.0 KiB
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
#include <string.h>
|
|
#include <math.h>
|
|
#include <unistd.h>
|
|
#include "SIMULATION/TOOLS/defs.h"
|
|
#include "SIMULATION/RF/defs.h"
|
|
#include "PHY/types.h"
|
|
#include "PHY/defs.h"
|
|
#include "PHY/vars.h"
|
|
#include "MAC_INTERFACE/vars.h"
|
|
|
|
#include "LAYER2/RLC/AM_v9.3.0/rlc_am.h"
|
|
#include "LAYER2/MAC/defs.h"
|
|
#include "LAYER2/MAC/vars.h"
|
|
#include "UTIL/LOG/log.h"
|
|
#include "RRC/LTE/vars.h"
|
|
#include "PHY_INTERFACE/vars.h"
|
|
#include "UTIL/AT_COMMANDS/parser.h"
|
|
|
|
mapping level_names[] = {
|
|
{"emerg", LOG_EMERG},
|
|
{"alert", LOG_ALERT},
|
|
{"crit", LOG_CRIT},
|
|
{"err", LOG_ERR},
|
|
{"warn", LOG_WARNING},
|
|
{"notice", LOG_NOTICE},
|
|
{"info", LOG_INFO},
|
|
{"debug", LOG_DEBUG},
|
|
{"trace", LOG_TRACE},
|
|
{NULL, -1}
|
|
};
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
char * g_log_level="trace"; // by default global log level is set to trace
|
|
|
|
//initialize the log generator
|
|
logInit(map_str_to_int(level_names, g_log_level));
|
|
LOG_T(LOG,"global log level is set to %s \n",g_log_level );
|
|
|
|
at_parse_init(at_null_callback_handler, mt_null_attach_state_request_handler, mt_null_attach_request_handler, mt_null_detach_request_handler);
|
|
printf("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
|
|
at_parse_string("AT+CGATT=?\r");
|
|
printf("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
|
|
at_parse_string("AT+CGATT?\r");
|
|
printf("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
|
|
at_parse_string("AT+CGATT?\r");
|
|
printf("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
|
|
at_parse_string("AT+CGATT?\r");
|
|
printf("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
|
|
at_parse_string("AT+CGATT?\r");
|
|
printf("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
|
|
at_parse_string("AT+CGATT=1\r");
|
|
printf("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
|
|
at_parse_string("AT+CGATT=0\r");
|
|
printf("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
|
|
return(0);
|
|
}
|
|
|
|
|