iccarm工具链编译适配

Signed-off-by: i-wangliangliang <willfox@126.com>
Change-Id: I9360dc232c35ec4db7a9bee08f3c288e22941e39
This commit is contained in:
i-wangliangliang
2022-07-09 15:52:58 +08:00
parent 85663b9258
commit 62eb96dd8d
8 changed files with 12 additions and 11 deletions

View File

@@ -34,7 +34,7 @@
/* for IAR Compiler */
#ifdef __ICCARM__
#include"iccarm_builtin.h"
#include "iccarm_builtin.h"
#endif
#ifdef __cplusplus

View File

@@ -87,7 +87,7 @@ VOID OsDoExcHook(EXC_TYPE excType)
INT32 OsLogLevelCheck(INT32 level)
{
if (level > PRINT_LEVEL) {
return LOS_NOK;
return (INT32)LOS_NOK;
}
if ((level != LOG_COMMON_LEVEL) && ((level > LOG_EMG_LEVEL) && (level <= LOG_DEBUG_LEVEL))) {