arm: fix __assert.h inclusion in asm files

The #include <__assert.h> in nvic.h must be guarded by __ASMLANGUAGE
since nvic.h is usable by asm code, and __assert.h is C-only.

Change-Id: I16d72e4579705dbd0bfb55a787525c5938fd1f22
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2015-06-13 15:02:03 -04:00 committed by Anas Nashif
commit 3284865323

View file

@ -51,7 +51,6 @@ Supports up to 240 IRQs and 256 priority levels.
#ifndef _NVIC_H_
#define _NVIC_H_
#include <misc/__assert.h>
#include <arch/arm/CortexM/scs.h>
/* for assembler, only works with constants */
@ -84,6 +83,7 @@ Supports up to 240 IRQs and 256 priority levels.
#if !defined(_ASMLANGUAGE)
#include <stdint.h>
#include <misc/__assert.h>
/*******************************************************************************
*