[riot-notifications] [RIOT-OS/RIOT] Add stdin pseudo module and set it as dependency for applications using getchar (#11598)

Alexandre Abadie notifications at github.com
Wed Jun 12 17:35:26 CEST 2019


@kaspar030, let's move forward on this one.

>  So using getchar() with stdin disabled is actually a compile-time error.

Do you think of something like this ?
```c
#ifdef MODULE_STDIN
ssize_t stdio_read(void* buffer, size_t count)
{
    return (ssize_t)isrpipe_read(&stdio_uart_isrpipe, buffer, count);
}
#endif
```



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11598#issuecomment-501329101
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190612/97a0b104/attachment.html>


More information about the notifications mailing list