diff options
| -rw-r--r-- | host/apps/omap_debug/usrp-e-timed.c | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/host/apps/omap_debug/usrp-e-timed.c b/host/apps/omap_debug/usrp-e-timed.c index 69e6c07ca..cfc70f724 100644 --- a/host/apps/omap_debug/usrp-e-timed.c +++ b/host/apps/omap_debug/usrp-e-timed.c @@ -45,6 +45,9 @@ static void *read_thread(void *threadid)  	printf("Greetings from the reading thread!\n"); +	bytes_transfered = 0; +	gettimeofday(&start_time, NULL); +  	// IMPORTANT: must assume max length packet from fpga  	rx_data = malloc(sizeof(struct usrp_transfer_frame) + sizeof(struct pkt) + (1016 * 2));  	p = (struct pkt *) ((void *)rx_data + offsetof(struct usrp_transfer_frame, buf)); @@ -102,6 +105,9 @@ static void *write_thread(void *threadid)  	printf("Greetings from the write thread!\n"); +	bytes_transfered = 0; +	gettimeofday(&start_time, NULL); +  	tx_data = malloc(sizeof(struct usrp_transfer_frame) + sizeof(struct pkt) + (packet_data_length * 2));  	p = (struct pkt *) ((void *)tx_data + offsetof(struct usrp_transfer_frame, buf));  	printf("Address of tx_data = %p, p = %p\n", tx_data, p); | 
