Commit d7c978e0 authored by root's avatar root

bind to core

parent e7d01103
#define _GNU_SOURCE
#include <sched.h>
#include <assert.h>
#include "trx_test.h"
int txdata_size=57344;
int rxdata_size=2465792;
int absolute_slot=0;
......@@ -34,8 +39,16 @@ struct timespec nr_get_timespec_diff(
}
int main( int argc, char **argv ) {
struct sched_param rr_param;
rr_param.sched_priority = 90;
sched_setscheduler(getpid(), SCHED_RR, &rr_param);
cpu_set_t mask;
CPU_ZERO(&mask);
CPU_SET(5, &mask);
int rc = sched_setaffinity(getpid(), sizeof(mask), &mask);
assert(rc >= 0);
// T_Config_Init();
//T_Config_Init();
openair0_config_t openair0_cfg[4];
openair0_device rfdevice;
......@@ -60,8 +73,8 @@ int main( int argc, char **argv ) {
openair0_cfg[card].rx_num_channels,
openair0_cfg[card].duplex_mode);
int dl_carrier = 3628380000;
int ul_carrier = 3628380000;
double dl_carrier = 3628380000;
double ul_carrier = 3628380000;
int freq_off = 0;
int rx_gain_off = 0;
int rf_chain = 0;
......@@ -154,7 +167,8 @@ int main( int argc, char **argv ) {
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_READ, VCD_FUNCTION_OUT );
// use previous timing_advance value to compute writeTimestamp
writeTimestamp = timestamp+samples_per_subframe/20*5;// sent after 5 slot.
//writeTimestamp = timestamp+samples_per_subframe/20*5;// sent after 5 slot.
writeTimestamp = timestamp+samples_per_subframe/2*5;// sent after 5 slot.
// but use current UE->timing_advance value to compute writeBlockSize
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment