<p>First of all, a warm welcome to the RIOT community <a class="user-mention" data-hovercard-user-id="5069243" href="https://github.com/madokapeng">@madokapeng</a>.</p>
<p>This isn't really my strong suit, but I would suggest to look into the current implementation in <code>cortexm_common</code> and go from there from the platform you are working on.</p>
<p>Out of interest: who assigned you to this issue?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/issues/5494#issuecomment-380338051">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AEn7YKxCk1k00AVEFhXpHFE6D4o9UvX7ks5tnZ2dgaJpZM4Ir9Lg">mute the thread</a>.<img src="https://github.com/notifications/beacon/AEn7YFS377cjUeplX40e9_VxS7nDjXvlks5tnZ2dgaJpZM4Ir9Lg.gif" height="1" width="1" alt="" /></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/issues/5494#issuecomment-380338051"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/RIOT-OS/RIOT","title":"RIOT-OS/RIOT","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/RIOT-OS/RIOT"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miri64 in #5494: First of all, a warm welcome to the RIOT community @madokapeng.\r\n\r\nThis isn't really my strong suit, but I would suggest to look into the current implementation in `cortexm_common` and go from there from the platform you are working on.\r\n\r\nOut of interest: who assigned you to this issue?"}],"action":{"name":"View Issue","url":"https://github.com/RIOT-OS/RIOT/issues/5494#issuecomment-380338051"}}}</script>