aux_serial: Renamed usbuart_change_dma_tx_buf() -> aux_serial_switch_transmit_buffers()
This commit is contained in:
parent
8eea6110b8
commit
27ab12f3fc
|
@ -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.
|
* Changes USBUSART TX buffer in which data is accumulated from USB.
|
||||||
* Filled buffer is submitted to DMA for transfer.
|
* 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 */
|
/* Select buffer for transmission */
|
||||||
char *const tx_buf_ptr = &buf_tx[buf_tx_act_idx * TX_BUF_SIZE];
|
char *const tx_buf_ptr = &buf_tx[buf_tx_act_idx * TX_BUF_SIZE];
|
||||||
|
|
|
@ -340,7 +340,7 @@ static void usbuart_usb_out_cb(usbd_device *dev, uint8_t ep)
|
||||||
if (tx_trfr_cplt)
|
if (tx_trfr_cplt)
|
||||||
{
|
{
|
||||||
tx_trfr_cplt = false;
|
tx_trfr_cplt = false;
|
||||||
usbuart_change_dma_tx_buf();
|
aux_serial_switch_transmit_buffers();
|
||||||
|
|
||||||
/* Enable LED */
|
/* Enable LED */
|
||||||
usbuart_set_led_state(TX_LED_ACT, true);
|
usbuart_set_led_state(TX_LED_ACT, true);
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
|
|
||||||
void usbuart_set_led_state(uint8_t ledn, bool state);
|
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);
|
void debug_uart_run(void);
|
||||||
|
|
||||||
#define TX_LED_ACT (1 << 0)
|
#define TX_LED_ACT (1 << 0)
|
||||||
|
|
|
@ -263,7 +263,7 @@ void USBUSART2_ISR(void)
|
||||||
*/ \
|
*/ \
|
||||||
if (buf_tx_act_sz) \
|
if (buf_tx_act_sz) \
|
||||||
{ \
|
{ \
|
||||||
usbuart_change_dma_tx_buf(); \
|
aux_serial_switch_transmit_buffers(); \
|
||||||
usbd_ep_nak_set(usbdev, CDCACM_UART_ENDPOINT, 0); \
|
usbd_ep_nak_set(usbdev, CDCACM_UART_ENDPOINT, 0); \
|
||||||
} \
|
} \
|
||||||
else \
|
else \
|
||||||
|
|
Loading…
Reference in New Issue