From 18d49b357a315d77e417d4a5c3942ec0d22997b8 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 18 Mar 2013 20:07:09 +0100 Subject: digital/avr: small hacks to use AVR modules on ARM --- digital/avr/common/io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'digital/avr/common/io.h') diff --git a/digital/avr/common/io.h b/digital/avr/common/io.h index 66a64e04..a1da8660 100644 --- a/digital/avr/common/io.h +++ b/digital/avr/common/io.h @@ -25,7 +25,7 @@ * * }}} */ -#ifndef HOST +#if defined (TARGET_avr) /* Avr part. */ #include @@ -63,7 +63,7 @@ intr_restore (intr_flags_t flags) SREG = flags; } -#else /* HOST */ +#elif defined (HOST) /* Same as on AVR. */ #define _BV(x) (1<<(x)) -- cgit v1.2.3