From 537c67598dcd9a2503f86c80a5577b95171aa356 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 20 Aug 2010 03:00:27 -0300 Subject: [PATCH] More config rearranging: USB IDs are now in include/atspi/usb-ids.h, which common/config.h includes. --- fw/common/config.h | 13 +------------ fw/include/atspi/usb-ids.h | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 fw/include/atspi/usb-ids.h diff --git a/fw/common/config.h b/fw/common/config.h index a55e2ff..5ee31fc 100644 --- a/fw/common/config.h +++ b/fw/common/config.h @@ -15,18 +15,7 @@ #include "io.h" #include "io-parts.h" - - -/* - * Platform-specific settings - * - * USB_VENDOR = Qi Hardware - * USB_PRODUCT = 802.15.4, device 0 - * -- - - - */ - -#define USB_VENDOR 0x20b7 -#define USB_PRODUCT 0x1540 +#include "atspi/usb-ids.h" /* ----- Boot loader configuration ----------------------------------------- */ diff --git a/fw/include/atspi/usb-ids.h b/fw/include/atspi/usb-ids.h new file mode 100644 index 0000000..a0ba025 --- /dev/null +++ b/fw/include/atspi/usb-ids.h @@ -0,0 +1,28 @@ +/* + * include/atspi/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 */