msc-descriptors.c
00001 #include "descriptors.h"
00002 #include "usb-msc-bulk.h"
00003 #include <usb-arch.h>
00004
00005 const struct usb_st_device_descriptor device_descriptor =
00006 {
00007 sizeof(struct usb_st_device_descriptor),
00008 DEVICE,
00009 0x0210,
00010 0,
00011 0,
00012 0,
00013 CTRL_EP_SIZE,
00014 0xffff,
00015 0xffff,
00016 0x0030,
00017 2,
00018 1,
00019 3,
00020 1
00021 };
00022
00023 const struct configuration_st {
00024 struct usb_st_configuration_descriptor configuration;
00025 struct usb_st_interface_descriptor massbulk;
00026 struct usb_st_endpoint_descriptor ep_in;
00027 struct usb_st_endpoint_descriptor ep_out;
00028 } BYTE_ALIGNED configuration_block =
00029 {
00030
00031 {
00032 sizeof(configuration_block.configuration),
00033 CONFIGURATION,
00034 sizeof(configuration_block),
00035 1,
00036 1,
00037 0,
00038 0x80,
00039 50
00040 },
00041 {
00042 sizeof(configuration_block.massbulk),
00043 INTERFACE,
00044 0,
00045 0,
00046 2,
00047 MASS_STORAGE,
00048 MASS_RBC,
00049 MASS_BULK_ONLY,
00050 0
00051 },
00052 {
00053 sizeof(configuration_block.ep_in),
00054 ENDPOINT,
00055 0x81,
00056 0x02,
00057 64,
00058 0
00059 },
00060 {
00061 sizeof(configuration_block.ep_out),
00062 ENDPOINT,
00063 0x02,
00064 0x02,
00065 64,
00066 0
00067 }
00068
00069 };
00070
00071 const struct usb_st_configuration_descriptor const *configuration_head =
00072 (struct usb_st_configuration_descriptor const*)&configuration_block;