Skip to content

Commit 1431b65

Browse files
authored
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.
1 parent 6a57845 commit 1431b65

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

portable/IAR/AVR_AVRDx/porthardware.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef PORTHARDWARE_H
22
#define PORTHARDWARE_H
33

4-
#include <ioavr.h>
4+
#ifndef __IAR_SYSTEMS_ASM__
5+
#include <ioavr.h>
6+
#endif
57
#include "FreeRTOSConfig.h"
68

79
/*-----------------------------------------------------------*/

portable/IAR/AVR_Mega0/porthardware.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#ifndef PORTHARDWARE_H
22
#define PORTHARDWARE_H
33

4-
#include <ioavr.h>
4+
#ifndef __IAR_SYSTEMS_ASM__
5+
#include <ioavr.h>
6+
#endif
57
#include "FreeRTOSConfig.h"
68

79
/*-----------------------------------------------------------*/

0 commit comments

Comments
 (0)