Fix reGNUal

This commit is contained in:
NIIBE Yutaka
2016-05-16 22:43:51 +09:00
parent 1a5eb0ec3b
commit 1fa45e3273
2 changed files with 14 additions and 8 deletions

View File

@@ -1,5 +1,8 @@
2016-05-16 Niibe Yutaka <gniibe@fsij.org>
* regnual/regnual.c (usb_cb_rx_ready, usb_cb_tx_done)
(usb_cb_device_reset): Follow the change of USB API.
* chopstx: Update.
* src/sys.c: Update from Chopstx.
@@ -16,7 +19,7 @@
* src/usb_stm32f103.c: Likewise.
* src/usb_ctrl.c (usb_intr): Follow the change of USB API.
* src/main.c (usb_cb_rx_ready, usb_cb_tx_done): Likewise.
(usb_cb_rx_ready, usb_cb_tx_done): Likewise.
* src/adc.h: Remove unused declarations.

View File

@@ -110,13 +110,7 @@ static const uint8_t regnual_string_serial[] = {
void
usb_cb_device_reset (void)
{
/* Set DEVICE as not configured */
usb_lld_set_configuration (0);
/* Current Feature initialization */
usb_lld_set_feature (regnual_config_desc[7]);
usb_lld_reset ();
usb_lld_reset (regnual_config_desc[7]);
/* Initialize Endpoint 0 */
usb_lld_setup_endpoint (ENDP0, EP_CONTROL, 0, ENDP0_RXADDR, ENDP0_TXADDR,
@@ -317,6 +311,15 @@ int usb_cb_interface (uint8_t cmd, struct req_args *detail)
return USB_UNSUPPORT;
}
void usb_cb_rx_ready (uint8_t ep_num)
{
(void)ep_num;
}
void usb_cb_tx_done (uint8_t ep_num)
{
(void)ep_num;
}
static void wait (int count)
{