diff --git a/src/platforms/common/usb_serial.c b/src/platforms/common/usb_serial.c index 5c363dce..2387ec0d 100644 --- a/src/platforms/common/usb_serial.c +++ b/src/platforms/common/usb_serial.c @@ -207,11 +207,11 @@ size_t debug_uart_write(const char *buf, const size_t len) usb_dbg_in %= RX_FIFO_SIZE; } - usbuart_run(); + debug_uart_run(); return len; } -void usbuart_run(void) +void debug_uart_run(void) { nvic_disable_irq(USB_IRQ); diff --git a/src/platforms/common/usbuart.h b/src/platforms/common/usbuart.h index fa0b91bd..a9b3f18c 100644 --- a/src/platforms/common/usbuart.h +++ b/src/platforms/common/usbuart.h @@ -29,7 +29,7 @@ void usbuart_usb_in_cb(usbd_device *dev, uint8_t ep); void usbuart_set_led_state(uint8_t ledn, bool state); void usbuart_send_rx_packet(void); -void usbuart_run(void); +void debug_uart_run(void); #define TX_LED_ACT (1 << 0) #define RX_LED_ACT (1 << 1) diff --git a/src/platforms/stm32/usbuart.c b/src/platforms/stm32/usbuart.c index fe014a31..55eb0ff5 100644 --- a/src/platforms/stm32/usbuart.c +++ b/src/platforms/stm32/usbuart.c @@ -332,7 +332,7 @@ void usbuart_usb_in_cb(usbd_device *dev, uint8_t ep) /* If line is now idle, then transmit a packet */ \ if (isIdle) { \ USART_ICR(USART) = USART_ICR_IDLECF; \ - usbuart_run(); \ + debug_uart_run(); \ } \ \ nvic_enable_irq(DMA_IRQ); \ @@ -350,7 +350,7 @@ void usbuart_usb_in_cb(usbd_device *dev, uint8_t ep) /* On the older uarts, the sequence "read flags", */ \ /* "read DR" clears the flags */ \ \ - usbuart_run(); \ + debug_uart_run(); \ } \ \ nvic_enable_irq(DMA_IRQ); \ @@ -441,7 +441,7 @@ void USBUSART2_DMA_TX_ISR(void) /* Clear flags */ \ dma_clear_interrupt_flags(USBUSART_DMA_BUS, DMA_RX_CHAN, DMA_CGIF); \ /* Transmit a packet */ \ - usbuart_run(); \ + debug_uart_run(); \ \ nvic_enable_irq(USART_IRQ); \ } while(0)