usb_serial: Renamed usbuart_send_stdout() -> debug_uart_send_stdout()
This commit is contained in:
parent
70e24f4203
commit
3af03c0778
|
@ -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 <stdarg.h>
|
||||
extern int cl_debuglevel;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue