usb_serial: Renamed usbuart_usb_out_cb() -> debug_uart_receive_callback()
This commit is contained in:
parent
27ab12f3fc
commit
25ac055602
|
@ -62,7 +62,7 @@ static bool gdb_uart_dtr = true;
|
|||
static void usb_serial_set_state(usbd_device *dev, uint16_t iface, uint8_t ep);
|
||||
|
||||
static void debug_uart_send_callback(usbd_device *dev, uint8_t ep);
|
||||
static void usbuart_usb_out_cb(usbd_device *dev, uint8_t ep);
|
||||
static void debug_uart_receive_callback(usbd_device *dev, uint8_t ep);
|
||||
|
||||
#ifdef ENABLE_DEBUG
|
||||
/*
|
||||
|
@ -157,7 +157,7 @@ void usb_serial_set_config(usbd_device *dev, uint16_t value)
|
|||
usbd_ep_setup(dev, (CDCACM_GDB_ENDPOINT + 1) | USB_REQ_TYPE_IN, USB_ENDPOINT_ATTR_INTERRUPT, 16, NULL);
|
||||
|
||||
/* 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, debug_uart_receive_callback);
|
||||
usbd_ep_setup(
|
||||
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);
|
||||
|
@ -309,7 +309,7 @@ static void debug_uart_send_callback(usbd_device *dev, uint8_t ep)
|
|||
}
|
||||
|
||||
#ifndef ENABLE_RTT
|
||||
static void usbuart_usb_out_cb(usbd_device *dev, uint8_t ep)
|
||||
static void debug_uart_receive_callback(usbd_device *dev, uint8_t ep)
|
||||
{
|
||||
(void)ep;
|
||||
|
||||
|
|
|
@ -59,10 +59,10 @@ inline static bool recv_set_nak()
|
|||
return recv_bytes_free() < 2 * CDCACM_PACKET_SIZE;
|
||||
}
|
||||
|
||||
/* usbuart_usb_out_cb is called when usb uart has received new data for target.
|
||||
/* debug_uart_receive_callback is called when usb uart has received new data for target.
|
||||
this routine has to be fast */
|
||||
|
||||
void usbuart_usb_out_cb(usbd_device *dev, uint8_t ep)
|
||||
void debug_uart_receive_callback(usbd_device *dev, uint8_t ep)
|
||||
{
|
||||
(void)dev;
|
||||
(void)ep;
|
||||
|
|
Loading…
Reference in New Issue