<p>This is a WIP PR for fixing the problem with xtimer on k60 described in <a href="https://github.com/RIOT-OS/RIOT/issues/3941" class="issue-link" title="kinetis: timer or xtimer is broken [bisected]">#3941</a>.<br>
A separate channel of the PIT is used to provide the counter for the <code>timer_read</code> calls. <code>timer_set</code> and <code>timer_clear</code> will not touch the counter channel.</p>

<p>Currently marked WIP because it is untested since I don't have the hardware with me right now. Will update after I have tested it on actual hardware.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/3969'>https://github.com/RIOT-OS/RIOT/pull/3969</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>kinetis: periph/timer Use separate channel for counting timer_read()</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/3969/files#diff-0">boards/mulle/include/periph_conf.h</a>
    (9)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/3969/files#diff-1">cpu/kinetis_common/timer.c</a>
    (119)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/3969.patch'>https://github.com/RIOT-OS/RIOT/pull/3969.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/3969.diff'>https://github.com/RIOT-OS/RIOT/pull/3969.diff</a></li>
</ul>

<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/3969">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AEn7YIrC1pU6Q1eEfsDpaPYQuBnLrkoFks5o1SD3gaJpZM4GDwFZ.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/3969"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>