Date:2013-04-01 19:40:14 (6 years 8 months ago)
Author:Werner Almesberger
Commit:dab0d183a21a32c96c7d1b25e609bd976082ca8b
Message:atusb/fw/include/atusb/usb-ids.h: remove (and adapt former users)

Files: atusb/fw/include/atusb/usb-ids.h (1 diff)
tools/lib/atusb-common.c (2 diffs)
tools/lib/atusb-spi.c (2 diffs)
tools/lib/atusb.c (2 diffs)

Change Details

atusb/fw/include/atusb/usb-ids.h
1/*
2 * include/atusb/usb-ids.h - USB vendor and product IDs
3 *
4 * Written 2009, 2010 by Werner Almesberger
5 * Copyright 2009, 2010 Werner Almesberger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13
14#ifndef USB_IDS_H
15#define USB_IDS_H
16
17/*
18 * Platform-specific settings
19 *
20 * USB_VENDOR = Qi Hardware
21 * USB_PRODUCT = 802.15.4, device 0
22 * -- - -
23 */
24
25#define USB_VENDOR 0x20b7 /* Qi Hardware */
26#define USB_PRODUCT 0x1540 /* ben-wpan, AT86RF230-based */
27
28#endif /* !USB_IDS_H */
tools/lib/atusb-common.c
1919#include <errno.h>
2020
2121#include "atusb/ep0.h"
22#include "atusb/usb-ids.h"
2322
2423#include "at86rf230.h"
2524#include "usbopen.h"
...... 
6160    usb_unrestrict();
6261    if (arg)
6362        restrict_usb_path(arg);
64    dev = open_usb(USB_VENDOR, USB_PRODUCT);
63    dev = open_usb(ATUSB_VENDOR_ID, ATUSB_PRODUCT_ID);
6564    if (!dev) {
6665        if (errno == EPERM)
6766            fprintf(stderr, "Permission denied. "
tools/lib/atusb-spi.c
11/*
22 * lib/atusb_spi.c - ATRF access functions library (USB-SPI version)
33 *
4 * Written 2010-2011 by Werner Almesberger
5 * Copyright 2010-2011 Werner Almesberger
4 * Written 2010-2011, 2013 by Werner Almesberger
5 * Copyright 2010-2011, 2013 Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
1818#include <usb.h>
1919
2020#include "atusb/ep0.h"
21#include "atusb/usb-ids.h"
2221
2322#include "usbopen.h"
2423#include "at86rf230.h"
tools/lib/atusb.c
11/*
22 * lib/atusb.c - ATUSB access functions library (USB version)
33 *
4 * Written 2010-2011 by Werner Almesberger
5 * Copyright 2010-2011 Werner Almesberger
4 * Written 2010-2011, 2013 by Werner Almesberger
5 * Copyright 2010-2011, 2013 Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
1717#include <usb.h>
1818
1919#include "atusb/ep0.h"
20#include "atusb/usb-ids.h"
2120
2221#include "usbopen.h"
2322#include "driver.h"

Archive Download the corresponding diff file



interactive