usb_serial: Renamed usbuart_send_stdout() -> debug_uart_send_stdout()

This commit is contained in:
dragonmux 2022-08-18 23:40:18 +01:00 committed by Piotr Esden-Tempski
parent 70e24f4203
commit 3af03c0778
3 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ enum BMP_DEBUG {
# define DEBUG_WIRE(...) do {} while(0) # define DEBUG_WIRE(...) do {} while(0)
# define DEBUG_GDB_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 #else
# include <stdarg.h> # include <stdarg.h>
extern int cl_debuglevel; extern int cl_debuglevel;

View File

@ -172,7 +172,7 @@ void usb_serial_set_config(usbd_device *dev, uint16_t value)
#endif #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) { while (len) {
uint32_t cnt = CDCACM_PACKET_SIZE; uint32_t cnt = CDCACM_PACKET_SIZE;

View File

@ -702,7 +702,7 @@ int tc_write(target *t, int fd, target_addr buf, unsigned int count)
if (cnt > count) if (cnt > count)
cnt = count; cnt = count;
target_mem_read(t, tmp, buf, cnt); target_mem_read(t, tmp, buf, cnt);
usbuart_send_stdout(tmp, cnt); debug_uart_send_stdout(tmp, cnt);
count -= cnt; count -= cnt;
buf += cnt; buf += cnt;
} }