From 4cfb1553976c2d0b4573bf39cfa6654cb1862709 Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Wed, 3 Nov 2021 11:32:27 +0100 Subject: [PATCH] stdio_semihosting: Add unit clarification to poll define --- sys/stdio_semihosting/stdio_semihosting.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/stdio_semihosting/stdio_semihosting.c b/sys/stdio_semihosting/stdio_semihosting.c index 191eb33654..dd0d0cebb1 100644 --- a/sys/stdio_semihosting/stdio_semihosting.c +++ b/sys/stdio_semihosting/stdio_semihosting.c @@ -33,9 +33,9 @@ /** * @brief Rate at which the stdin read polls (breaks) the debugger for input - * data + * data in milliseconds */ -#define STDIO_SEMIHOSTING_POLL_RATE (10) +#define STDIO_SEMIHOSTING_POLL_RATE_MS (10) /** * @brief ARM Semihosting STDIN file descriptor. Also used with RISC-V @@ -161,7 +161,7 @@ ssize_t stdio_read(void* buffer, size_t count) ssize_t bytes_read = _semihosting_read(buffer, count); while (bytes_read == 0) { ztimer_periodic_wakeup(ZTIMER_MSEC, &last_wakeup, - STDIO_SEMIHOSTING_POLL_RATE); + STDIO_SEMIHOSTING_POLL_RATE_MS); bytes_read = _semihosting_read(buffer, count); } return bytes_read;