From 1431b65110a294720b75af2f80b0f6465220a90f Mon Sep 17 00:00:00 2001 From: filipgeorge Date: Tue, 27 Oct 2020 21:26:52 +0200 Subject: [PATCH] porthardware.h file update for AVR Mega0 and Dx (#212) * Added guard for ioavr.h include in AVR Dx porthardware.h file. * Added guard for ioavr.h include in AVR Mega0 porthardware.h file. --- portable/IAR/AVR_AVRDx/porthardware.h | 4 +++- portable/IAR/AVR_Mega0/porthardware.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/portable/IAR/AVR_AVRDx/porthardware.h b/portable/IAR/AVR_AVRDx/porthardware.h index 2d17b4202..dbbcd05fc 100644 --- a/portable/IAR/AVR_AVRDx/porthardware.h +++ b/portable/IAR/AVR_AVRDx/porthardware.h @@ -1,7 +1,9 @@ #ifndef PORTHARDWARE_H #define PORTHARDWARE_H -#include +#ifndef __IAR_SYSTEMS_ASM__ + #include +#endif #include "FreeRTOSConfig.h" /*-----------------------------------------------------------*/ diff --git a/portable/IAR/AVR_Mega0/porthardware.h b/portable/IAR/AVR_Mega0/porthardware.h index 4188ae274..793d5899c 100644 --- a/portable/IAR/AVR_Mega0/porthardware.h +++ b/portable/IAR/AVR_Mega0/porthardware.h @@ -1,7 +1,9 @@ #ifndef PORTHARDWARE_H #define PORTHARDWARE_H -#include +#ifndef __IAR_SYSTEMS_ASM__ + #include +#endif #include "FreeRTOSConfig.h" /*-----------------------------------------------------------*/