/*
* USRP - Universal Software Radio Peripheral
*
- * Copyright (C) 2003,2004 Free Software Foundation, Inc.
+ * Copyright (C) 2003,2004,2009 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* Foundation, Inc., 51 Franklin Street, Boston, MA 02110-1301 USA
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <usb.h> /* needed for usb functions */
#include <getopt.h>
#include <assert.h>
#include <errno.h>
-#include "usrp_prims.h"
+#include "usrp/usrp_prims.h"
#include "usrp_spi_defs.h"
-#include <string.h>
char *prog_name;
-
static void
set_progname (char *path)
{
usrp_one_time_init ();
- struct usb_device *udev = usrp_find_device (which_board, fx2_ok_p);
+ libusb_device *udev = usrp_find_device (which_board, fx2_ok_p);
if (udev == 0){
fprintf (stderr, "%s: failed to find usrp[%d]\n", prog_name, which_board);
exit (1);
fprintf (stderr, "%s: found unconfigured FX2; needs firmware.\n", prog_name);
}
- struct usb_dev_handle *udh = usrp_open_cmd_interface (udev);
+ libusb_device_handle *udh = usrp_open_cmd_interface (udev);
if (udh == 0){
fprintf (stderr, "%s: failed to open_cmd_interface\n", prog_name);
exit (1);