arm: cmsis: Convert _ScbNmiPend to use direct CMSIS register access

Jira: ZEP-1568

Change-Id: I56231084baaec4f6232f1ef4ebabe4f3fdb5175c
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2017-01-25 08:22:39 -06:00
commit 434fad045a
2 changed files with 2 additions and 15 deletions

View file

@ -51,20 +51,6 @@ extern "C" {
#include <misc/util.h>
#include <stdint.h>
/**
*
* @brief Pend the NMI exception
*
* Pend the NMI exception: it should fire immediately.
*
* @return N/A
*/
static inline void _ScbNmiPend(void)
{
__scs.scb.icsr.bit.nmipendset = 1;
}
/**
*
* @brief Set the PendSV exception

View file

@ -11,6 +11,7 @@
#include <zephyr.h>
#include <misc/printk.h>
#include <misc/reboot.h>
#include <arch/arm/cortex_m/cmsis.h>
#include <tc_util.h>
@ -37,5 +38,5 @@ void main(void)
}
/* Trigger NMI: Should fire immediately */
_ScbNmiPend();
SCB->ICSR |= SCB_ICSR_NMIPENDSET_Msk;
}