Commit 2f00edeb authored by Rohit Gupta's avatar Rohit Gupta

minor compilation fixes to BladeRF driver

parent 3124cb2c
...@@ -902,8 +902,8 @@ int device_init(openair0_device *device, openair0_config_t *openair0_cfg) { ...@@ -902,8 +902,8 @@ int device_init(openair0_device *device, openair0_config_t *openair0_cfg) {
brf_state_t *brf = (brf_state_t*)malloc(sizeof(brf_state_t)); brf_state_t *brf = (brf_state_t*)malloc(sizeof(brf_state_t));
memset(brf, 0, sizeof(brf_state_t)); memset(brf, 0, sizeof(brf_state_t));
/* device specific */ /* device specific */
openair0_cfg->txlaunch_wait = 1;//manage when TX processing is triggered //openair0_cfg->txlaunch_wait = 1;//manage when TX processing is triggered
openair0_cfg->txlaunch_wait_slotcount = 1; //manage when TX processing is triggered //openair0_cfg->txlaunch_wait_slotcount = 1; //manage when TX processing is triggered
openair0_cfg->iq_txshift = 0;// shift openair0_cfg->iq_txshift = 0;// shift
openair0_cfg->iq_rxrescale = 15;//rescale iqs openair0_cfg->iq_rxrescale = 15;//rescale iqs
...@@ -912,22 +912,18 @@ int device_init(openair0_device *device, openair0_config_t *openair0_cfg) { ...@@ -912,22 +912,18 @@ int device_init(openair0_device *device, openair0_config_t *openair0_cfg) {
case 30720000: case 30720000:
openair0_cfg->samples_per_packet = 2048; openair0_cfg->samples_per_packet = 2048;
openair0_cfg->tx_sample_advance = 0; openair0_cfg->tx_sample_advance = 0;
openair0_cfg->tx_scheduling_advance = 8*openair0_cfg->samples_per_packet;
break; break;
case 15360000: case 15360000:
openair0_cfg->samples_per_packet = 2048; openair0_cfg->samples_per_packet = 2048;
openair0_cfg->tx_sample_advance = 0; openair0_cfg->tx_sample_advance = 0;
openair0_cfg->tx_scheduling_advance = 4*openair0_cfg->samples_per_packet;
break; break;
case 7680000: case 7680000:
openair0_cfg->samples_per_packet = 1024; openair0_cfg->samples_per_packet = 1024;
openair0_cfg->tx_sample_advance = 0; openair0_cfg->tx_sample_advance = 0;
openair0_cfg->tx_scheduling_advance = 4*openair0_cfg->samples_per_packet;
break; break;
case 1920000: case 1920000:
openair0_cfg->samples_per_packet = 256; openair0_cfg->samples_per_packet = 256;
openair0_cfg->tx_sample_advance = 50; openair0_cfg->tx_sample_advance = 50;
openair0_cfg->tx_scheduling_advance = 8*openair0_cfg->samples_per_packet;
break; break;
default: default:
printf("Error: unknown sampling rate %f\n",openair0_cfg->sample_rate); printf("Error: unknown sampling rate %f\n",openair0_cfg->sample_rate);
......
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