Right, I was confused by the name, since IRQs may be disabled outside of<br>
ISR.<br>
Should the function inISR be renamed "irq_enabled" perhaps? That's a<br>
separate issue though.<br>
On Jun 29, 2015 1:11 PM, "Hauke Petersen" <notifications@github.com> wrote:<br>
<br>
> PRIMASK would not work here, as it is not portable. We already have the<br>
> inISR() function (which calls internally a PRIMASK check on Cortex-Mx<br>
> platforms), so I would go with that.<br>
><br>
> —<br>
> Reply to this email directly or view it on GitHub<br>
> <https://github.com/RIOT-OS/RIOT/pull/3265#issuecomment-116612284>.<br>
><br>


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