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:
parent
5e29f52883
commit
3284865323
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue