diff --git a/src/platforms/common/aux_serial.c b/src/platforms/common/aux_serial.c index bd1f910..7c0787f 100644 --- a/src/platforms/common/aux_serial.c +++ b/src/platforms/common/aux_serial.c @@ -79,7 +79,7 @@ void aux_serial_set_encoding(struct usb_cdc_line_coding *coding) * Changes USBUSART TX buffer in which data is accumulated from USB. * Filled buffer is submitted to DMA for transfer. */ -void usbuart_change_dma_tx_buf(void) +void aux_serial_switch_transmit_buffers(void) { /* Select buffer for transmission */ char *const tx_buf_ptr = &buf_tx[buf_tx_act_idx * TX_BUF_SIZE]; diff --git a/src/platforms/common/usb_serial.c b/src/platforms/common/usb_serial.c index 510b6c3..e4ee95c 100644 --- a/src/platforms/common/usb_serial.c +++ b/src/platforms/common/usb_serial.c @@ -340,7 +340,7 @@ static void usbuart_usb_out_cb(usbd_device *dev, uint8_t ep) if (tx_trfr_cplt) { tx_trfr_cplt = false; - usbuart_change_dma_tx_buf(); + aux_serial_switch_transmit_buffers(); /* Enable LED */ usbuart_set_led_state(TX_LED_ACT, true); diff --git a/src/platforms/common/usbuart.h b/src/platforms/common/usbuart.h index 42c28ef..bf40ae3 100644 --- a/src/platforms/common/usbuart.h +++ b/src/platforms/common/usbuart.h @@ -23,7 +23,7 @@ #include "general.h" void usbuart_set_led_state(uint8_t ledn, bool state); -void usbuart_change_dma_tx_buf(void); +void aux_serial_switch_transmit_buffers(void); void debug_uart_run(void); #define TX_LED_ACT (1 << 0) diff --git a/src/platforms/stm32/usbuart.c b/src/platforms/stm32/usbuart.c index 3d098a5..f8d30e9 100644 --- a/src/platforms/stm32/usbuart.c +++ b/src/platforms/stm32/usbuart.c @@ -263,7 +263,7 @@ void USBUSART2_ISR(void) */ \ if (buf_tx_act_sz) \ { \ - usbuart_change_dma_tx_buf(); \ + aux_serial_switch_transmit_buffers(); \ usbd_ep_nak_set(usbdev, CDCACM_UART_ENDPOINT, 0); \ } \ else \