Date:2011-03-08 23:01:54 (8 years 7 months ago)
Author:Werner Almesberger
Commit:79b5daf5a437ff765146cfbcb7a0d8a320e7670e
Message: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
Files: atusb/fw/board.h (2 diffs)
atusb/fw/descr.c (1 diff)

Change Details

atusb/fw/board.h
11/*
22 * fw/board.h - Board-specific functions and definitions
33 *
4 * Written 2008-2010 by Werner Almesberger
5 * Copyright 2008-2010 Werner Almesberger
4 * Written 2008-2011 by Werner Almesberger
5 * Copyright 2008-2011 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
...... 
5555#define PIN(n) PIN_1(n##_PORT, n##_BIT)
5656
5757
58#define USB_VENDOR 0x20b7 /* Qi Hardware */
59#define USB_PRODUCT 0x1540 /* ben-wpan atusb */
60
61
5862void reset_rf(void);
5963uint8_t read_irq(void);
6064void led(int on);
atusb/fw/descr.c
1212
1313
1414#include "usb.h"
15#include "board.h"
1516
1617
17#define USB_VENDOR 0x20b7 /* Qi Hardware */
18#define USB_PRODUCT 0x1540 /* ben-wpan atusb */
19
2018#define LE(x) ((uint16_t) (x) & 0xff), ((uint16_t) (x) >> 8)
2119
2220/*

Archive Download the corresponding diff file



interactive