usb_serial: Renamed usbuart_usb_in_cb() -> debug_uart_send_callback()

This commit is contained in:
dragonmux 2022-08-19 02:13:48 +01:00 committed by Piotr Esden-Tempski
parent a0fab9b772
commit 9afa946703
1 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ static bool gdb_uart_dtr = true;
static void usb_serial_set_state(usbd_device *dev, uint16_t iface, uint8_t ep); static void usb_serial_set_state(usbd_device *dev, uint16_t iface, uint8_t ep);
static void usbuart_usb_in_cb(usbd_device *dev, uint8_t ep); static void debug_uart_send_callback(usbd_device *dev, uint8_t ep);
#ifdef ENABLE_DEBUG #ifdef ENABLE_DEBUG
/* /*
@ -155,7 +155,7 @@ void usb_serial_set_config(usbd_device *dev, uint16_t value)
/* Serial interface */ /* Serial interface */
usbd_ep_setup(dev, CDCACM_UART_ENDPOINT, USB_ENDPOINT_ATTR_BULK, CDCACM_PACKET_SIZE / 2, usbuart_usb_out_cb); usbd_ep_setup(dev, CDCACM_UART_ENDPOINT, USB_ENDPOINT_ATTR_BULK, CDCACM_PACKET_SIZE / 2, usbuart_usb_out_cb);
usbd_ep_setup( usbd_ep_setup(
dev, CDCACM_UART_ENDPOINT | USB_REQ_TYPE_IN, USB_ENDPOINT_ATTR_BULK, CDCACM_PACKET_SIZE, usbuart_usb_in_cb); dev, CDCACM_UART_ENDPOINT | USB_REQ_TYPE_IN, USB_ENDPOINT_ATTR_BULK, CDCACM_PACKET_SIZE, debug_uart_send_callback);
usbd_ep_setup(dev, (CDCACM_UART_ENDPOINT + 1) | USB_REQ_TYPE_IN, USB_ENDPOINT_ATTR_INTERRUPT, 16, NULL); usbd_ep_setup(dev, (CDCACM_UART_ENDPOINT + 1) | USB_REQ_TYPE_IN, USB_ENDPOINT_ATTR_INTERRUPT, 16, NULL);
#ifdef PLATFORM_HAS_TRACESWO #ifdef PLATFORM_HAS_TRACESWO
@ -295,7 +295,7 @@ void debug_uart_run(void)
nvic_enable_irq(USB_IRQ); nvic_enable_irq(USB_IRQ);
} }
static void usbuart_usb_in_cb(usbd_device *dev, uint8_t ep) static void debug_uart_send_callback(usbd_device *dev, uint8_t ep)
{ {
(void) ep; (void) ep;
(void) dev; (void) dev;