forked from ElTangas/jtag2updi
-
Notifications
You must be signed in to change notification settings - Fork 16
/
parts.h
56 lines (35 loc) · 2.28 KB
/
parts.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* parts.h
*
* Created:5/11/2020
* Author: Spence Konde (tindie.com/stores/drazzy)
* github.com/SpenceKonde
*/
#ifndef PARTS_H_
#define PARTS_H_
#include <avr/io.h>
#if (defined(__AVR_ATtiny3217__) || defined(__AVR_ATtiny1617__) || defined(__AVR_ATtiny1604__) || defined(__AVR_ATtiny1607__) || \
defined(__AVR_ATtiny3216__) || defined(__AVR_ATtiny1616__) || defined(__AVR_ATtiny1606__) || defined(__AVR_ATtiny1614__))
#define __AVR_ATtiny_Zero_One__
#elif (defined(__AVR_ATmega16__) || defined(__AVR_ATmega32__) || defined(__AVR_ATmega64__) || defined(__AVR_ATmega128__) || \
defined(__AVR_ATmega164A__) || defined(__AVR_ATmega164PA__) || \
defined(__AVR_ATmega324A__) || defined(__AVR_ATmega324PA__) || defined(__AVR_ATmega324PB__) || defined(__AVR_ATmega644A__) || \
defined(__AVR_ATmega644PA__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
#define __AVR_ATmega_Mighty__
#elif (defined(__AVR_ATmega641__) || defined(__AVR_ATmega1281__) || defined(__AVR_ATmega2561__) || \
defined(__AVR_ATmega640__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__))
#define __AVR_ATmega_Mega__
#elif (defined(__AVR_ATmega328__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328PB__) || \
defined(__AVR_ATmega168__) || defined(__AVR_ATmega168P__) || defined(__AVR_ATmega168PB__) || defined(__AVR_ATmega168A__) || defined(__AVR_ATmega168PA__) || \
defined(__AVR_ATmega88__) || defined(__AVR_ATmega88P__) || defined(__AVR_ATmega88PB__) || \
defined(__AVR_ATmega8__) )
#define __AVR_ATmega_Mini__
#elif (defined(__AVR_ATmega808__) ||defined(__AVR_ATmega1608__) ||defined(__AVR_ATmega3208__) ||defined(__AVR_ATmega4808__) || \
defined(__AVR_ATmega809__) ||defined(__AVR_ATmega1609__) ||defined(__AVR_ATmega3209__) ||defined(__AVR_ATmega4809__) )
#define __AVR_ATmega_Zero__
#elif (defined(__AVR_AVR128DA28__) ||defined(__AVR_AVR128DA32__) ||defined(__AVR_AVR128DA48__) ||defined(__AVR_AVR128DA64__) || \
defined(__AVR_AVR64DA28__) ||defined(__AVR_AVR64DA32__) ||defined(__AVR_AVR64DA48__) ||defined(__AVR_AVR64DA64__) || \
defined(__AVR_AVR32DA28__) ||defined(__AVR_AV324DA32__) ||defined(__AVR_AVR32DA48__) )
#define __AVR_DA__
#endif
#endif