[riot-notifications] [RIOT] sys: factor stdio uart functions out of newlib's syscalls (#3161)

Joakim Gebart notifications at github.com
Thu Jun 4 13:31:47 CEST 2015

>> Does this make sense?
>Well, if you'd want to implement a generic stdio_ module, and at some point you want to use uart for a file descriptor, you can use exactly this module. So, this module is a wrapper from uart0 or periph/uart + interrupt handling to posix read/write.
>At some point we might have x86_console_stdio, ..., and this module, and in newlibs syscalls, we can have a (either static or dynamic) file descriptor table, mapping e.g. _file_descriptors[0].write to uart_write.

@kaspar030 See also the (now removed) device map/device IO stuff in the mulle port in https://github.com/RIOT-OS/RIOT/tree/bdc12b05cda97b7d9f11a079bd9dac9d59e1a8a8/cpu/k60/devio and https://github.com/RIOT-OS/RIOT/blob/bdc12b05cda97b7d9f11a079bd9dac9d59e1a8a8/boards/mulle/devicemap.c

It was deleted when migrating all the Kinetis platforms to the common Cortex-M framework in #3099 (https://github.com/RIOT-OS/RIOT/commit/6e12503937174e9eac63251ef6d975f74d5c5212), but feel free to reuse any parts of it that you find useful.

Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150604/142b330a/attachment.html>

More information about the notifications mailing list