regnual update
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
2013-11-03 Niibe Yutaka <gniibe@fsij.org>
|
2013-11-03 Niibe Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
|
* regnual/regnual.c (usb_cb_get_descriptor): Update to new API.
|
||||||
|
|
||||||
|
* src/usb_lld.h (usb_initial_feature): Remove.
|
||||||
|
|
||||||
* chopstx: Update to 0.01.
|
* chopstx: Update to 0.01.
|
||||||
* src/pin-cir.c: Chatter fix to 200ms.
|
* src/pin-cir.c: Chatter fix to 200ms.
|
||||||
* src/main.c: Fix bDeviceState.
|
* src/main.c: Fix bDeviceState.
|
||||||
|
|||||||
@@ -249,9 +249,13 @@ usb_cb_setup (uint8_t req, uint8_t req_no,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
usb_cb_get_descriptor (uint8_t desc_type, uint16_t index, uint16_t value)
|
usb_cb_get_descriptor (uint8_t rcp, uint8_t desc_type, uint8_t desc_index,
|
||||||
|
uint16_t index)
|
||||||
{
|
{
|
||||||
(void)index;
|
(void)index;
|
||||||
|
if (rcp != DEVICE_RECIPIENT)
|
||||||
|
return USB_UNSUPPORT;
|
||||||
|
|
||||||
if (desc_type == DEVICE_DESCRIPTOR)
|
if (desc_type == DEVICE_DESCRIPTOR)
|
||||||
{
|
{
|
||||||
usb_lld_set_data_to_send (regnual_device_desc,
|
usb_lld_set_data_to_send (regnual_device_desc,
|
||||||
@@ -266,7 +270,6 @@ usb_cb_get_descriptor (uint8_t desc_type, uint16_t index, uint16_t value)
|
|||||||
}
|
}
|
||||||
else if (desc_type == STRING_DESCRIPTOR)
|
else if (desc_type == STRING_DESCRIPTOR)
|
||||||
{
|
{
|
||||||
uint8_t desc_index = value & 0xff;
|
|
||||||
const uint8_t *str;
|
const uint8_t *str;
|
||||||
int size;
|
int size;
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ enum DEVICE_STATE
|
|||||||
CONFIGURED
|
CONFIGURED
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const uint8_t usb_initial_feature;
|
|
||||||
|
|
||||||
extern void usb_lld_init (uint8_t feature);
|
extern void usb_lld_init (uint8_t feature);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user