From 710c457afeb7b8132000071468b147ab8c3f8612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 22 Mar 2015 14:26:37 +0100 Subject: Moving mcu grouping to separate header mcu.h is from now for mcu groups defines. mcu_def now doing same as mcu.h previous. --- mcu/mcu.h | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'mcu/mcu.h') diff --git a/mcu/mcu.h b/mcu/mcu.h index 2caf432..2a950c8 100644 --- a/mcu/mcu.h +++ b/mcu/mcu.h @@ -1,19 +1,15 @@ -#if (defined __AVR_ATmega328P__ || defined __AVR_ATmega328__ || \ +#define __MCU_ATmega328p__ \ + ((defined __AVR_ATmega328P__ || defined __AVR_ATmega328__ || \ defined __AVR_ATmega1688PA__ || defined __AVR_ATmega168A__ || \ defined __AVR_ATmega88PA__ || defined __AVR_ATmega88A__ || \ - defined __AVR_ATmega48PA__ || defined AVR_ATmega48A__) -#include "ATmega328P.h" -#endif + defined __AVR_ATmega48PA__ || defined AVR_ATmega48A__)) -#if (defined __AVR_ATmega328U4__ || defined __AVR_ATmega16U4) -#include "ATmega32U4.h" -#endif +#define __MCU_ATmega32U4__ \ + ((defined __AVR_ATmega32U4__ || defined __AVR_ATmega16U4)) -#if (defined __AVR_ATtiny4313__ || defined __AVR_ATtiny2313A__) -#include "ATtiny4313.h" -#endif +#define __MCU_ATtiny4313__ \ + ((defined __AVR_ATtiny4313__ || defined __AVR_ATtiny2313A__)) -#if (defined __AVR_ATtiny85__ || defined __AVR_ATtiny45__ || \ - defined __AVR_ATtiny25__) -#include "ATtiny85.h" -#endif +#define __MCU_ATtiny85__ \ + ((defined __AVR_ATtiny85__ || defined __AVR_ATtiny45__ || \ + defined __AVR_ATtiny25__)) -- cgit v1.2.3