usb: webusb: Move USB version definition to right place
Make it possible to reuse definitions from other samples. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
f0274c9e52
commit
54831ec5c7
2 changed files with 2 additions and 3 deletions
|
@ -67,6 +67,8 @@
|
||||||
/* Useful define */
|
/* Useful define */
|
||||||
#define USB_1_1 0x0110
|
#define USB_1_1 0x0110
|
||||||
#define USB_2_0 0x0200
|
#define USB_2_0 0x0200
|
||||||
|
/* Set USB version to 2.1 so that the host will request the BOS descriptor */
|
||||||
|
#define USB_2_1 0x0210
|
||||||
|
|
||||||
#define BCDDEVICE_RELNUM 0x0100
|
#define BCDDEVICE_RELNUM 0x0100
|
||||||
|
|
||||||
|
|
|
@ -43,9 +43,6 @@
|
||||||
#include <device.h>
|
#include <device.h>
|
||||||
#include "usb_device.h"
|
#include "usb_device.h"
|
||||||
|
|
||||||
/* Set USB version to 2.1 so that the host will request the BOS descriptor. */
|
|
||||||
#define USB_2_1 0x0210
|
|
||||||
|
|
||||||
/* BOS descriptor type */
|
/* BOS descriptor type */
|
||||||
#define DESCRIPTOR_TYPE_BOS 0x0f
|
#define DESCRIPTOR_TYPE_BOS 0x0f
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue