1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

stdio_semihosting: Add unit clarification to poll define

This commit is contained in:
Koen Zandberg 2021-11-03 11:32:27 +01:00
parent 2b696fd770
commit 4cfb155397
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -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;