1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-23 03:49:41 +02:00

atusb/fw/: moved USB IDs from descr.c to board.h

- descr.c (USB_VENDOR, USB_PRODUCT): moved to board.h
- descr.c: include board.h
This commit is contained in:
Werner Almesberger 2011-03-08 19:01:54 -03:00
parent 0293911fed
commit 79b5daf5a4
2 changed files with 7 additions and 5 deletions

View File

@ -1,8 +1,8 @@
/* /*
* fw/board.h - Board-specific functions and definitions * fw/board.h - Board-specific functions and definitions
* *
* Written 2008-2010 by Werner Almesberger * Written 2008-2011 by Werner Almesberger
* Copyright 2008-2010 Werner Almesberger * Copyright 2008-2011 Werner Almesberger
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -55,6 +55,10 @@
#define PIN(n) PIN_1(n##_PORT, n##_BIT) #define PIN(n) PIN_1(n##_PORT, n##_BIT)
#define USB_VENDOR 0x20b7 /* Qi Hardware */
#define USB_PRODUCT 0x1540 /* ben-wpan atusb */
void reset_rf(void); void reset_rf(void);
uint8_t read_irq(void); uint8_t read_irq(void);
void led(int on); void led(int on);

View File

@ -12,11 +12,9 @@
#include "usb.h" #include "usb.h"
#include "board.h"
#define USB_VENDOR 0x20b7 /* Qi Hardware */
#define USB_PRODUCT 0x1540 /* ben-wpan atusb */
#define LE(x) ((uint16_t) (x) & 0xff), ((uint16_t) (x) >> 8) #define LE(x) ((uint16_t) (x) & 0xff), ((uint16_t) (x) >> 8)
/* /*