mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 07:51:55 +02:00
atusb/fw/include/atusb/usb-ids.h: remove (and adapt former users)
This commit is contained in:
parent
d76bdf6a82
commit
dab0d183a2
@ -1,28 +0,0 @@
|
||||
/*
|
||||
* include/atusb/usb-ids.h - USB vendor and product IDs
|
||||
*
|
||||
* Written 2009, 2010 by Werner Almesberger
|
||||
* Copyright 2009, 2010 Werner Almesberger
|
||||
*
|
||||
* 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
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef USB_IDS_H
|
||||
#define USB_IDS_H
|
||||
|
||||
/*
|
||||
* Platform-specific settings
|
||||
*
|
||||
* USB_VENDOR = Qi Hardware
|
||||
* USB_PRODUCT = 802.15.4, device 0
|
||||
* -- - -
|
||||
*/
|
||||
|
||||
#define USB_VENDOR 0x20b7 /* Qi Hardware */
|
||||
#define USB_PRODUCT 0x1540 /* ben-wpan, AT86RF230-based */
|
||||
|
||||
#endif /* !USB_IDS_H */
|
@ -19,7 +19,6 @@
|
||||
#include <errno.h>
|
||||
|
||||
#include "atusb/ep0.h"
|
||||
#include "atusb/usb-ids.h"
|
||||
|
||||
#include "at86rf230.h"
|
||||
#include "usbopen.h"
|
||||
@ -61,7 +60,7 @@ void *atusb_open(const char *arg)
|
||||
usb_unrestrict();
|
||||
if (arg)
|
||||
restrict_usb_path(arg);
|
||||
dev = open_usb(USB_VENDOR, USB_PRODUCT);
|
||||
dev = open_usb(ATUSB_VENDOR_ID, ATUSB_PRODUCT_ID);
|
||||
if (!dev) {
|
||||
if (errno == EPERM)
|
||||
fprintf(stderr, "Permission denied. "
|
||||
|
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* lib/atusb_spi.c - ATRF access functions library (USB-SPI version)
|
||||
*
|
||||
* Written 2010-2011 by Werner Almesberger
|
||||
* Copyright 2010-2011 Werner Almesberger
|
||||
* Written 2010-2011, 2013 by Werner Almesberger
|
||||
* Copyright 2010-2011, 2013 Werner Almesberger
|
||||
*
|
||||
* 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
|
||||
@ -18,7 +18,6 @@
|
||||
#include <usb.h>
|
||||
|
||||
#include "atusb/ep0.h"
|
||||
#include "atusb/usb-ids.h"
|
||||
|
||||
#include "usbopen.h"
|
||||
#include "at86rf230.h"
|
||||
|
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* lib/atusb.c - ATUSB access functions library (USB version)
|
||||
*
|
||||
* Written 2010-2011 by Werner Almesberger
|
||||
* Copyright 2010-2011 Werner Almesberger
|
||||
* Written 2010-2011, 2013 by Werner Almesberger
|
||||
* Copyright 2010-2011, 2013 Werner Almesberger
|
||||
*
|
||||
* 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
|
||||
@ -17,7 +17,6 @@
|
||||
#include <usb.h>
|
||||
|
||||
#include "atusb/ep0.h"
|
||||
#include "atusb/usb-ids.h"
|
||||
|
||||
#include "usbopen.h"
|
||||
#include "driver.h"
|
||||
|
Loading…
Reference in New Issue
Block a user