diff options
author | AJM <poslathian@poslathian.(none)> | 2010-04-19 18:39:38 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-05-20 22:09:15 -0400 |
commit | 0db5696149d8f01275955c94ec55c9c43d7ca390 (patch) | |
tree | ea26fb6eea84046d07115cc6579e6e665bfa2a23 /core/usb/usb_config.h | |
parent | 06f5a1d3ec3f54a4a6ec9bbe6b9e7c45d9c18c7c (diff) | |
download | librambutan-0db5696149d8f01275955c94ec55c9c43d7ca390.tar.gz librambutan-0db5696149d8f01275955c94ec55c9c43d7ca390.zip |
added the usb_config file for general setup settings and filled out any undefined macros in the usb descriptor files
Diffstat (limited to 'core/usb/usb_config.h')
-rw-r--r-- | core/usb/usb_config.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/core/usb/usb_config.h b/core/usb/usb_config.h new file mode 100644 index 0000000..bf5f4ff --- /dev/null +++ b/core/usb/usb_config.h @@ -0,0 +1,30 @@ +/* insert license */ + +#ifndef __USB_CONFIG_H +#define __USB_CONFIG_H + +#define VCOM_ID_VENDOR 0x0110 +#define VCOM_ID_PRODUCT 0x1003 + +#define USB_CONFIG_MAX_POWER (100 >> 1) + +/* choose addresses to give endpoints the max 64 byte buffers */ +#define USB_BTABLE_ADDRESS 0x00 +#define VCOM_CTRL_EPNUM 0x00 +#define VCOM_CTRL_RX_ADDR 0x40 +#define VCOM_CTRL_TX_ADDR 0x80 +#define VCOM_CTRL_EPSIZE 0x40 + +#define VCOM_NOTIFICATION_EPNUM 0x01 +#define VCOM_NOTIFICATION_ADDR 0xC0 +#define VCOM_NOTIFICATION_EPSIZE 0x40 + +#define VCOM_TX_EPNUM 0x02 +#define VCOM_TX_ADDR 0x100 +#define VCOM_TX_SIZE 0x040 + +#define VCOM_RX_EPNUM 0x03 +#define VCOM_RX_ADDR 0x140 +#define VCOM_RX_EPSIZE 0x40 + +#endif |