minor update in library name
This commit is contained in:
@@ -101,18 +101,8 @@ int set_transport(openair0_device *device) {
|
|||||||
int load_lib(openair0_device *device, openair0_config_t *openair0_cfg, char *cfgfile, uint8_t flag) {
|
int load_lib(openair0_device *device, openair0_config_t *openair0_cfg, char *cfgfile, uint8_t flag) {
|
||||||
|
|
||||||
void *lib_handle;
|
void *lib_handle;
|
||||||
char *OAI_RF_LIBNAME;
|
|
||||||
char *OAI_TP_LIBNAME;
|
|
||||||
oai_device_initfunc_t fp ;
|
oai_device_initfunc_t fp ;
|
||||||
|
|
||||||
if (device->host_type==BBU_HOST) {
|
|
||||||
OAI_RF_LIBNAME= "/home/guepe/openairinterface5g/cmake_targets/lte_noS1_build_oai/build/liboai_device.so";
|
|
||||||
OAI_TP_LIBNAME= "/home/guepe/openairinterface5g/cmake_targets/lte_noS1_build_oai/build/liboai_transpro.so";
|
|
||||||
} else {
|
|
||||||
OAI_RF_LIBNAME= "liboai_device.so";
|
|
||||||
OAI_TP_LIBNAME= "liboai_transpro.so";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (flag == RF_DEVICE) {
|
if (flag == RF_DEVICE) {
|
||||||
lib_handle = dlopen(OAI_RF_LIBNAME, RTLD_LAZY);
|
lib_handle = dlopen(OAI_RF_LIBNAME, RTLD_LAZY);
|
||||||
if (!lib_handle) {
|
if (!lib_handle) {
|
||||||
|
|||||||
@@ -391,7 +391,6 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for(i=0;i<s->usrp->get_rx_num_channels();i++) {
|
for(i=0;i<s->usrp->get_rx_num_channels();i++) {
|
||||||
if (i<openair0_cfg[0].rx_num_channels) {
|
if (i<openair0_cfg[0].rx_num_channels) {
|
||||||
s->usrp->set_rx_rate(openair0_cfg[0].sample_rate,i);
|
s->usrp->set_rx_rate(openair0_cfg[0].sample_rate,i);
|
||||||
@@ -446,10 +445,6 @@ extern "C" {
|
|||||||
|
|
||||||
s->usrp->set_time_now(uhd::time_spec_t(0.0));
|
s->usrp->set_time_now(uhd::time_spec_t(0.0));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (i=0;i<openair0_cfg[0].rx_num_channels;i++) {
|
for (i=0;i<openair0_cfg[0].rx_num_channels;i++) {
|
||||||
if (i<openair0_cfg[0].rx_num_channels) {
|
if (i<openair0_cfg[0].rx_num_channels) {
|
||||||
printf("RX Channel %lu\n",i);
|
printf("RX Channel %lu\n",i);
|
||||||
@@ -462,7 +457,6 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i=0;i<openair0_cfg[0].tx_num_channels;i++) {
|
for (i=0;i<openair0_cfg[0].tx_num_channels;i++) {
|
||||||
|
|
||||||
if (i<openair0_cfg[0].tx_num_channels) {
|
if (i<openair0_cfg[0].tx_num_channels) {
|
||||||
printf("TX Channel %lu\n",i);
|
printf("TX Channel %lu\n",i);
|
||||||
std::cout << std::endl<<boost::format("Actual TX sample rate: %fMSps...") % (s->usrp->get_tx_rate(i)/1e6) << std::endl;
|
std::cout << std::endl<<boost::format("Actual TX sample rate: %fMSps...") % (s->usrp->get_tx_rate(i)/1e6) << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user