Updated AVR port projects to build with IAR and AVR Studio.

This commit is contained in:
skarg
2012-04-25 19:05:59 +00:00
parent e65ec668e5
commit 972afaa974
3 changed files with 13 additions and 7 deletions
+4 -1
View File
@@ -238,7 +238,10 @@ typedef struct {
/* Interrupts */
#if defined(__ICCAVR__)
#define PRAGMA(x) _Pragma( #x )
#define ISR(vec) PRAGMA( vector=vec ) __interrupt void handler_##vec(void)
#define ISR(vec) \
/* function prototype for use with "require protoptypes" option. */ \
PRAGMA( vector=vec ) __interrupt void handler_##vec(void); \
PRAGMA( vector=vec ) __interrupt void handler_##vec(void)
#elif defined(__GNUC__)
#include <avr/interrupt.h>
#elif defined (__CROSSWORKS_AVR)