From 3af03c077810bad654aeb1d8384d03ed44b2af00 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Thu, 18 Aug 2022 23:40:18 +0100 Subject: [PATCH] usb_serial: Renamed usbuart_send_stdout() -> debug_uart_send_stdout() --- src/include/general.h | 2 +- src/platforms/common/usb_serial.c | 2 +- src/target/target.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/general.h b/src/include/general.h index 1b1aba1..0e8fdca 100644 --- a/src/include/general.h +++ b/src/include/general.h @@ -78,7 +78,7 @@ enum BMP_DEBUG { # define DEBUG_WIRE(...) do {} while(0) # define DEBUG_GDB_WIRE(...) do {} while(0) -void usbuart_send_stdout(const uint8_t *data, uint32_t len); +void debug_uart_send_stdout(const uint8_t *data, size_t len); #else # include extern int cl_debuglevel; diff --git a/src/platforms/common/usb_serial.c b/src/platforms/common/usb_serial.c index b8c48de..df4d564 100644 --- a/src/platforms/common/usb_serial.c +++ b/src/platforms/common/usb_serial.c @@ -172,7 +172,7 @@ void usb_serial_set_config(usbd_device *dev, uint16_t value) #endif } -void usbuart_send_stdout(const uint8_t *data, uint32_t len) +void debug_uart_send_stdout(const uint8_t *data, size_t len) { while (len) { uint32_t cnt = CDCACM_PACKET_SIZE; diff --git a/src/target/target.c b/src/target/target.c index 2637233..e332e84 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -702,7 +702,7 @@ int tc_write(target *t, int fd, target_addr buf, unsigned int count) if (cnt > count) cnt = count; target_mem_read(t, tmp, buf, cnt); - usbuart_send_stdout(tmp, cnt); + debug_uart_send_stdout(tmp, cnt); count -= cnt; buf += cnt; }