<blockquote>
<blockquote>
<p>Does this make sense?</p>
</blockquote>

<p>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.</p>

<p>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.</p>
</blockquote>

<p><a href="https://github.com/kaspar030" class="user-mention">@kaspar030</a> See also the (now removed) device map/device IO stuff in the mulle port in <a href="https://github.com/RIOT-OS/RIOT/tree/bdc12b05cda97b7d9f11a079bd9dac9d59e1a8a8/cpu/k60/devio">https://github.com/RIOT-OS/RIOT/tree/bdc12b05cda97b7d9f11a079bd9dac9d59e1a8a8/cpu/k60/devio</a> and <a href="https://github.com/RIOT-OS/RIOT/blob/bdc12b05cda97b7d9f11a079bd9dac9d59e1a8a8/boards/mulle/devicemap.c">https://github.com/RIOT-OS/RIOT/blob/bdc12b05cda97b7d9f11a079bd9dac9d59e1a8a8/boards/mulle/devicemap.c</a></p>

<p>It was deleted when migrating all the Kinetis platforms to the common Cortex-M framework in <a href="https://github.com/RIOT-OS/RIOT/pull/3099" class="issue-link" title="kinetis: adaption for common makefiles">#3099</a> (<a href="https://github.com/RIOT-OS/RIOT/commit/6e12503937174e9eac63251ef6d975f74d5c5212" class="commit-link"><tt>6e12503</tt></a>), but feel free to reuse any parts of it that you find useful.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/RIOT-OS/RIOT/pull/3161#issuecomment-108849953">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AEn7YPT60NOgqTz6PYluKNOlDAFxDziHks5oQC6jgaJpZM4E388I.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/RIOT-OS/RIOT/pull/3161#issuecomment-108849953"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>