usbuart: Moved usbuart_usb_in_cb into usb_serial.c

This commit is contained in:
dragonmux 2022-08-19 02:10:25 +01:00 committed by Piotr Esden-Tempski
parent 67e8a5b840
commit a0fab9b772
3 changed files with 2 additions and 15 deletions

View File

@ -299,8 +299,9 @@ static void usbuart_usb_in_cb(usbd_device *dev, uint8_t ep)
{
(void) ep;
(void) dev;
#if defined(STM32F0) || defined(STM32F1) || defined(STM32F3) || defined(STM32F4)
debug_uart_send_rx_packet();
#endif
}
/*

View File

@ -246,14 +246,6 @@ void usbuart_usb_out_cb(usbd_device *dev, uint8_t ep)
}
#endif
void usbuart_usb_in_cb(usbd_device *dev, uint8_t ep)
{
(void) ep;
(void) dev;
debug_uart_send_rx_packet();
}
#if defined(USART_ICR)
#define USBUSART_ISR_TEMPLATE(USART, DMA_IRQ) do { \
nvic_disable_irq(DMA_IRQ); \

View File

@ -90,12 +90,6 @@ void usbuart_usb_out_cb(usbd_device *dev, uint8_t ep)
}
#endif
void usbuart_usb_in_cb(usbd_device *dev, uint8_t ep)
{
(void) dev;
(void) ep;
}
/*
* Read a character from the UART RX and stuff it in a software FIFO.
* Allowed to read from FIFO out pointer, but not write to it.