arduino_ci 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +77 -1
- data/cpp/arduino/Arduino.cpp +17 -7
- data/cpp/arduino/Arduino.h +151 -5
- data/cpp/arduino/ArduinoDefines.h +90 -0
- data/cpp/arduino/AvrMath.h +18 -28
- data/cpp/arduino/Godmode.cpp +62 -0
- data/cpp/arduino/Godmode.h +74 -0
- data/cpp/arduino/HardwareSerial.h +81 -0
- data/cpp/arduino/Print.h +67 -0
- data/cpp/arduino/Stream.h +210 -0
- data/cpp/arduino/WCharacter.h +96 -0
- data/cpp/arduino/WString.h +164 -0
- data/cpp/arduino/binary.h +518 -0
- data/cpp/arduino/include/README.md +3 -0
- data/cpp/arduino/include/common.h +333 -0
- data/cpp/arduino/include/fuse.h +274 -0
- data/cpp/arduino/include/io.h +643 -0
- data/cpp/arduino/include/io1200.h +274 -0
- data/cpp/arduino/include/io2313.h +385 -0
- data/cpp/arduino/include/io2323.h +210 -0
- data/cpp/arduino/include/io2333.h +461 -0
- data/cpp/arduino/include/io2343.h +214 -0
- data/cpp/arduino/include/io43u32x.h +440 -0
- data/cpp/arduino/include/io43u35x.h +432 -0
- data/cpp/arduino/include/io4414.h +500 -0
- data/cpp/arduino/include/io4433.h +489 -0
- data/cpp/arduino/include/io4434.h +588 -0
- data/cpp/arduino/include/io76c711.h +499 -0
- data/cpp/arduino/include/io8515.h +501 -0
- data/cpp/arduino/include/io8534.h +217 -0
- data/cpp/arduino/include/io8535.h +589 -0
- data/cpp/arduino/include/io86r401.h +309 -0
- data/cpp/arduino/include/io90pwm1.h +1157 -0
- data/cpp/arduino/include/io90pwm161.h +918 -0
- data/cpp/arduino/include/io90pwm216.h +1225 -0
- data/cpp/arduino/include/io90pwm2b.h +1466 -0
- data/cpp/arduino/include/io90pwm316.h +1272 -0
- data/cpp/arduino/include/io90pwm3b.h +1466 -0
- data/cpp/arduino/include/io90pwm81.h +1036 -0
- data/cpp/arduino/include/io90pwmx.h +1415 -0
- data/cpp/arduino/include/io90scr100.h +1719 -0
- data/cpp/arduino/include/ioa5272.h +803 -0
- data/cpp/arduino/include/ioa5505.h +803 -0
- data/cpp/arduino/include/ioa5702m322.h +2591 -0
- data/cpp/arduino/include/ioa5782.h +1843 -0
- data/cpp/arduino/include/ioa5790.h +907 -0
- data/cpp/arduino/include/ioa5790n.h +922 -0
- data/cpp/arduino/include/ioa5791.h +923 -0
- data/cpp/arduino/include/ioa5795.h +756 -0
- data/cpp/arduino/include/ioa5831.h +1949 -0
- data/cpp/arduino/include/ioa6285.h +740 -0
- data/cpp/arduino/include/ioa6286.h +740 -0
- data/cpp/arduino/include/ioa6289.h +847 -0
- data/cpp/arduino/include/ioa6612c.h +795 -0
- data/cpp/arduino/include/ioa6613c.h +795 -0
- data/cpp/arduino/include/ioa6614q.h +798 -0
- data/cpp/arduino/include/ioa6616c.h +865 -0
- data/cpp/arduino/include/ioa6617c.h +865 -0
- data/cpp/arduino/include/ioa664251.h +857 -0
- data/cpp/arduino/include/ioa8210.h +1843 -0
- data/cpp/arduino/include/ioa8510.h +1949 -0
- data/cpp/arduino/include/ioat94k.h +565 -0
- data/cpp/arduino/include/iocan128.h +100 -0
- data/cpp/arduino/include/iocan32.h +100 -0
- data/cpp/arduino/include/iocan64.h +100 -0
- data/cpp/arduino/include/iocanxx.h +2020 -0
- data/cpp/arduino/include/iom103.h +735 -0
- data/cpp/arduino/include/iom128.h +1299 -0
- data/cpp/arduino/include/iom1280.h +101 -0
- data/cpp/arduino/include/iom1281.h +101 -0
- data/cpp/arduino/include/iom1284.h +1099 -0
- data/cpp/arduino/include/iom1284p.h +1219 -0
- data/cpp/arduino/include/iom1284rfr2.h +2690 -0
- data/cpp/arduino/include/iom128a.h +1070 -0
- data/cpp/arduino/include/iom128rfa1.h +5385 -0
- data/cpp/arduino/include/iom128rfr2.h +2706 -0
- data/cpp/arduino/include/iom16.h +676 -0
- data/cpp/arduino/include/iom161.h +726 -0
- data/cpp/arduino/include/iom162.h +1022 -0
- data/cpp/arduino/include/iom163.h +686 -0
- data/cpp/arduino/include/iom164.h +101 -0
- data/cpp/arduino/include/iom164a.h +34 -0
- data/cpp/arduino/include/iom164p.h +34 -0
- data/cpp/arduino/include/iom164pa.h +1016 -0
- data/cpp/arduino/include/iom165.h +887 -0
- data/cpp/arduino/include/iom165a.h +832 -0
- data/cpp/arduino/include/iom165p.h +889 -0
- data/cpp/arduino/include/iom165pa.h +948 -0
- data/cpp/arduino/include/iom168.h +97 -0
- data/cpp/arduino/include/iom168a.h +35 -0
- data/cpp/arduino/include/iom168p.h +942 -0
- data/cpp/arduino/include/iom168pa.h +843 -0
- data/cpp/arduino/include/iom168pb.h +899 -0
- data/cpp/arduino/include/iom169.h +1174 -0
- data/cpp/arduino/include/iom169a.h +44 -0
- data/cpp/arduino/include/iom169p.h +1097 -0
- data/cpp/arduino/include/iom169pa.h +1485 -0
- data/cpp/arduino/include/iom16a.h +923 -0
- data/cpp/arduino/include/iom16hva.h +80 -0
- data/cpp/arduino/include/iom16hva2.h +883 -0
- data/cpp/arduino/include/iom16hvb.h +1052 -0
- data/cpp/arduino/include/iom16hvbrevb.h +1052 -0
- data/cpp/arduino/include/iom16m1.h +1571 -0
- data/cpp/arduino/include/iom16u2.h +1000 -0
- data/cpp/arduino/include/iom16u4.h +1423 -0
- data/cpp/arduino/include/iom2560.h +101 -0
- data/cpp/arduino/include/iom2561.h +101 -0
- data/cpp/arduino/include/iom2564rfr2.h +2691 -0
- data/cpp/arduino/include/iom256rfr2.h +2707 -0
- data/cpp/arduino/include/iom3000.h +237 -0
- data/cpp/arduino/include/iom32.h +755 -0
- data/cpp/arduino/include/iom323.h +744 -0
- data/cpp/arduino/include/iom324a.h +1014 -0
- data/cpp/arduino/include/iom324p.h +1016 -0
- data/cpp/arduino/include/iom324pa.h +1372 -0
- data/cpp/arduino/include/iom325.h +886 -0
- data/cpp/arduino/include/iom3250.h +982 -0
- data/cpp/arduino/include/iom3250a.h +34 -0
- data/cpp/arduino/include/iom3250p.h +34 -0
- data/cpp/arduino/include/iom3250pa.h +1042 -0
- data/cpp/arduino/include/iom325a.h +34 -0
- data/cpp/arduino/include/iom325p.h +34 -0
- data/cpp/arduino/include/iom325pa.h +937 -0
- data/cpp/arduino/include/iom328.h +34 -0
- data/cpp/arduino/include/iom328p.h +948 -0
- data/cpp/arduino/include/iom329.h +1069 -0
- data/cpp/arduino/include/iom3290.h +1227 -0
- data/cpp/arduino/include/iom3290a.h +34 -0
- data/cpp/arduino/include/iom3290pa.h +1123 -0
- data/cpp/arduino/include/iom329a.h +34 -0
- data/cpp/arduino/include/iom329p.h +1164 -0
- data/cpp/arduino/include/iom329pa.h +34 -0
- data/cpp/arduino/include/iom32a.h +686 -0
- data/cpp/arduino/include/iom32c1.h +1320 -0
- data/cpp/arduino/include/iom32hvb.h +1052 -0
- data/cpp/arduino/include/iom32hvbrevb.h +953 -0
- data/cpp/arduino/include/iom32m1.h +1625 -0
- data/cpp/arduino/include/iom32u2.h +1000 -0
- data/cpp/arduino/include/iom32u4.h +1512 -0
- data/cpp/arduino/include/iom32u6.h +1431 -0
- data/cpp/arduino/include/iom406.h +783 -0
- data/cpp/arduino/include/iom48.h +93 -0
- data/cpp/arduino/include/iom48a.h +35 -0
- data/cpp/arduino/include/iom48p.h +936 -0
- data/cpp/arduino/include/iom48pa.h +839 -0
- data/cpp/arduino/include/iom48pb.h +890 -0
- data/cpp/arduino/include/iom64.h +1311 -0
- data/cpp/arduino/include/iom640.h +101 -0
- data/cpp/arduino/include/iom644.h +101 -0
- data/cpp/arduino/include/iom644a.h +34 -0
- data/cpp/arduino/include/iom644p.h +101 -0
- data/cpp/arduino/include/iom644pa.h +1387 -0
- data/cpp/arduino/include/iom644rfr2.h +2685 -0
- data/cpp/arduino/include/iom645.h +881 -0
- data/cpp/arduino/include/iom6450.h +978 -0
- data/cpp/arduino/include/iom6450a.h +34 -0
- data/cpp/arduino/include/iom6450p.h +34 -0
- data/cpp/arduino/include/iom645a.h +34 -0
- data/cpp/arduino/include/iom645p.h +34 -0
- data/cpp/arduino/include/iom649.h +1061 -0
- data/cpp/arduino/include/iom6490.h +1182 -0
- data/cpp/arduino/include/iom6490a.h +34 -0
- data/cpp/arduino/include/iom6490p.h +34 -0
- data/cpp/arduino/include/iom649a.h +34 -0
- data/cpp/arduino/include/iom649p.h +1490 -0
- data/cpp/arduino/include/iom64a.h +1084 -0
- data/cpp/arduino/include/iom64c1.h +1321 -0
- data/cpp/arduino/include/iom64hve.h +1034 -0
- data/cpp/arduino/include/iom64hve2.h +767 -0
- data/cpp/arduino/include/iom64m1.h +1572 -0
- data/cpp/arduino/include/iom64rfr2.h +2701 -0
- data/cpp/arduino/include/iom8.h +665 -0
- data/cpp/arduino/include/iom8515.h +687 -0
- data/cpp/arduino/include/iom8535.h +772 -0
- data/cpp/arduino/include/iom88.h +97 -0
- data/cpp/arduino/include/iom88a.h +35 -0
- data/cpp/arduino/include/iom88p.h +941 -0
- data/cpp/arduino/include/iom88pa.h +1185 -0
- data/cpp/arduino/include/iom88pb.h +899 -0
- data/cpp/arduino/include/iom8a.h +621 -0
- data/cpp/arduino/include/iom8hva.h +76 -0
- data/cpp/arduino/include/iom8u2.h +997 -0
- data/cpp/arduino/include/iomx8.h +808 -0
- data/cpp/arduino/include/iomxx0_1.h +1692 -0
- data/cpp/arduino/include/iomxx4.h +954 -0
- data/cpp/arduino/include/iomxxhva.h +550 -0
- data/cpp/arduino/include/iotn10.h +512 -0
- data/cpp/arduino/include/iotn11.h +255 -0
- data/cpp/arduino/include/iotn12.h +288 -0
- data/cpp/arduino/include/iotn13.h +395 -0
- data/cpp/arduino/include/iotn13a.h +394 -0
- data/cpp/arduino/include/iotn15.h +363 -0
- data/cpp/arduino/include/iotn1634.h +914 -0
- data/cpp/arduino/include/iotn167.h +883 -0
- data/cpp/arduino/include/iotn20.h +776 -0
- data/cpp/arduino/include/iotn22.h +221 -0
- data/cpp/arduino/include/iotn2313.h +702 -0
- data/cpp/arduino/include/iotn2313a.h +812 -0
- data/cpp/arduino/include/iotn24.h +94 -0
- data/cpp/arduino/include/iotn24a.h +846 -0
- data/cpp/arduino/include/iotn25.h +93 -0
- data/cpp/arduino/include/iotn26.h +422 -0
- data/cpp/arduino/include/iotn261.h +93 -0
- data/cpp/arduino/include/iotn261a.h +987 -0
- data/cpp/arduino/include/iotn28.h +297 -0
- data/cpp/arduino/include/iotn4.h +477 -0
- data/cpp/arduino/include/iotn40.h +767 -0
- data/cpp/arduino/include/iotn4313.h +813 -0
- data/cpp/arduino/include/iotn43u.h +604 -0
- data/cpp/arduino/include/iotn44.h +94 -0
- data/cpp/arduino/include/iotn441.h +903 -0
- data/cpp/arduino/include/iotn44a.h +844 -0
- data/cpp/arduino/include/iotn45.h +93 -0
- data/cpp/arduino/include/iotn461.h +94 -0
- data/cpp/arduino/include/iotn461a.h +987 -0
- data/cpp/arduino/include/iotn48.h +806 -0
- data/cpp/arduino/include/iotn5.h +512 -0
- data/cpp/arduino/include/iotn828.h +911 -0
- data/cpp/arduino/include/iotn84.h +94 -0
- data/cpp/arduino/include/iotn841.h +903 -0
- data/cpp/arduino/include/iotn84a.h +844 -0
- data/cpp/arduino/include/iotn85.h +93 -0
- data/cpp/arduino/include/iotn861.h +94 -0
- data/cpp/arduino/include/iotn861a.h +988 -0
- data/cpp/arduino/include/iotn87.h +859 -0
- data/cpp/arduino/include/iotn88.h +806 -0
- data/cpp/arduino/include/iotn9.h +477 -0
- data/cpp/arduino/include/iotnx4.h +482 -0
- data/cpp/arduino/include/iotnx5.h +442 -0
- data/cpp/arduino/include/iotnx61.h +541 -0
- data/cpp/arduino/include/iousb1286.h +101 -0
- data/cpp/arduino/include/iousb1287.h +101 -0
- data/cpp/arduino/include/iousb162.h +101 -0
- data/cpp/arduino/include/iousb646.h +102 -0
- data/cpp/arduino/include/iousb647.h +102 -0
- data/cpp/arduino/include/iousb82.h +95 -0
- data/cpp/arduino/include/iousbxx2.h +807 -0
- data/cpp/arduino/include/iousbxx6_7.h +1336 -0
- data/cpp/arduino/include/iox128a1.h +7236 -0
- data/cpp/arduino/include/iox128a1u.h +8305 -0
- data/cpp/arduino/include/iox128a3.h +6987 -0
- data/cpp/arduino/include/iox128a3u.h +7697 -0
- data/cpp/arduino/include/iox128a4u.h +7309 -0
- data/cpp/arduino/include/iox128b1.h +6872 -0
- data/cpp/arduino/include/iox128b3.h +6288 -0
- data/cpp/arduino/include/iox128c3.h +6264 -0
- data/cpp/arduino/include/iox128d3.h +5749 -0
- data/cpp/arduino/include/iox128d4.h +5562 -0
- data/cpp/arduino/include/iox16a4.h +6748 -0
- data/cpp/arduino/include/iox16a4u.h +7309 -0
- data/cpp/arduino/include/iox16c4.h +6078 -0
- data/cpp/arduino/include/iox16d4.h +5717 -0
- data/cpp/arduino/include/iox16e5.h +7699 -0
- data/cpp/arduino/include/iox192a3.h +6987 -0
- data/cpp/arduino/include/iox192a3u.h +7697 -0
- data/cpp/arduino/include/iox192c3.h +6264 -0
- data/cpp/arduino/include/iox192d3.h +5749 -0
- data/cpp/arduino/include/iox256a3.h +6987 -0
- data/cpp/arduino/include/iox256a3b.h +6983 -0
- data/cpp/arduino/include/iox256a3bu.h +7706 -0
- data/cpp/arduino/include/iox256a3u.h +7697 -0
- data/cpp/arduino/include/iox256c3.h +6264 -0
- data/cpp/arduino/include/iox256d3.h +5709 -0
- data/cpp/arduino/include/iox32a4.h +6747 -0
- data/cpp/arduino/include/iox32a4u.h +7309 -0
- data/cpp/arduino/include/iox32c3.h +6264 -0
- data/cpp/arduino/include/iox32c4.h +6078 -0
- data/cpp/arduino/include/iox32d3.h +5105 -0
- data/cpp/arduino/include/iox32d4.h +5685 -0
- data/cpp/arduino/include/iox32e5.h +7699 -0
- data/cpp/arduino/include/iox384c3.h +6849 -0
- data/cpp/arduino/include/iox384d3.h +5833 -0
- data/cpp/arduino/include/iox64a1.h +7236 -0
- data/cpp/arduino/include/iox64a1u.h +8305 -0
- data/cpp/arduino/include/iox64a3.h +6987 -0
- data/cpp/arduino/include/iox64a3u.h +7697 -0
- data/cpp/arduino/include/iox64a4u.h +7309 -0
- data/cpp/arduino/include/iox64b1.h +6454 -0
- data/cpp/arduino/include/iox64b3.h +6288 -0
- data/cpp/arduino/include/iox64c3.h +6264 -0
- data/cpp/arduino/include/iox64d3.h +5764 -0
- data/cpp/arduino/include/iox64d4.h +5555 -0
- data/cpp/arduino/include/iox8e5.h +7699 -0
- data/cpp/arduino/include/lock.h +239 -0
- data/cpp/arduino/include/portpins.h +549 -0
- data/cpp/arduino/include/version.h +90 -0
- data/cpp/arduino/include/xmega.h +71 -0
- data/cpp/unittest/Assertion.h +9 -4
- data/cpp/unittest/Compare.h +93 -0
- data/lib/arduino_ci/arduino_installation.rb +1 -1
- data/lib/arduino_ci/cpp_library.rb +4 -1
- data/lib/arduino_ci/version.rb +1 -1
- data/misc/default.yaml +7 -0
- metadata +285 -2
@@ -0,0 +1,1311 @@
|
|
1
|
+
/* Copyright (c) 2002, Steinar Haugen
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
* Redistributions of source code must retain the above copyright
|
8
|
+
notice, this list of conditions and the following disclaimer.
|
9
|
+
|
10
|
+
* Redistributions in binary form must reproduce the above copyright
|
11
|
+
notice, this list of conditions and the following disclaimer in
|
12
|
+
the documentation and/or other materials provided with the
|
13
|
+
distribution.
|
14
|
+
|
15
|
+
* Neither the name of the copyright holders nor the names of
|
16
|
+
contributors may be used to endorse or promote products derived
|
17
|
+
from this software without specific prior written permission.
|
18
|
+
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
22
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
23
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
24
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
25
|
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
26
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
27
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
28
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
29
|
+
POSSIBILITY OF SUCH DAMAGE. */
|
30
|
+
|
31
|
+
/* $Id: iom64.h 2235 2011-03-17 04:13:14Z arcanum $ */
|
32
|
+
|
33
|
+
/* avr/iom64.h - defines for ATmega64
|
34
|
+
|
35
|
+
As of 2002-11-23:
|
36
|
+
- This should be up to date with data sheet Rev. 2490C-AVR-09/02 */
|
37
|
+
|
38
|
+
#ifndef _AVR_IOM64_H_
|
39
|
+
#define _AVR_IOM64_H_ 1
|
40
|
+
|
41
|
+
/* This file should only be included from <avr/io.h>, never directly. */
|
42
|
+
|
43
|
+
#ifndef _AVR_IO_H_
|
44
|
+
# error "Include <avr/io.h> instead of this file."
|
45
|
+
#endif
|
46
|
+
|
47
|
+
#ifndef _AVR_IOXXX_H_
|
48
|
+
# define _AVR_IOXXX_H_ "iom64.h"
|
49
|
+
#else
|
50
|
+
# error "Attempt to include more than one <avr/ioXXX.h> file."
|
51
|
+
#endif
|
52
|
+
|
53
|
+
/* I/O registers */
|
54
|
+
|
55
|
+
/* Input Pins, Port F */
|
56
|
+
#define PINF _SFR_IO8(0x00)
|
57
|
+
|
58
|
+
/* Input Pins, Port E */
|
59
|
+
#define PINE _SFR_IO8(0x01)
|
60
|
+
|
61
|
+
/* Data Direction Register, Port E */
|
62
|
+
#define DDRE _SFR_IO8(0x02)
|
63
|
+
|
64
|
+
/* Data Register, Port E */
|
65
|
+
#define PORTE _SFR_IO8(0x03)
|
66
|
+
|
67
|
+
/* ADC Data Register */
|
68
|
+
#define ADCW _SFR_IO16(0x04) /* for backwards compatibility */
|
69
|
+
#ifndef __ASSEMBLER__
|
70
|
+
#define ADC _SFR_IO16(0x04)
|
71
|
+
#endif
|
72
|
+
#define ADCL _SFR_IO8(0x04)
|
73
|
+
#define ADCH _SFR_IO8(0x05)
|
74
|
+
|
75
|
+
/* ADC Control and Status Register A */
|
76
|
+
#define ADCSR _SFR_IO8(0x06) /* for backwards compatibility */
|
77
|
+
#define ADCSRA _SFR_IO8(0x06)
|
78
|
+
|
79
|
+
/* ADC Multiplexer select */
|
80
|
+
#define ADMUX _SFR_IO8(0x07)
|
81
|
+
|
82
|
+
/* Analog Comparator Control and Status Register */
|
83
|
+
#define ACSR _SFR_IO8(0x08)
|
84
|
+
|
85
|
+
/* USART0 Baud Rate Register Low */
|
86
|
+
#define UBRR0L _SFR_IO8(0x09)
|
87
|
+
|
88
|
+
/* USART0 Control and Status Register B */
|
89
|
+
#define UCSR0B _SFR_IO8(0x0A)
|
90
|
+
|
91
|
+
/* USART0 Control and Status Register A */
|
92
|
+
#define UCSR0A _SFR_IO8(0x0B)
|
93
|
+
|
94
|
+
/* USART0 I/O Data Register */
|
95
|
+
#define UDR0 _SFR_IO8(0x0C)
|
96
|
+
|
97
|
+
/* SPI Control Register */
|
98
|
+
#define SPCR _SFR_IO8(0x0D)
|
99
|
+
|
100
|
+
/* SPI Status Register */
|
101
|
+
#define SPSR _SFR_IO8(0x0E)
|
102
|
+
|
103
|
+
/* SPI I/O Data Register */
|
104
|
+
#define SPDR _SFR_IO8(0x0F)
|
105
|
+
|
106
|
+
/* Input Pins, Port D */
|
107
|
+
#define PIND _SFR_IO8(0x10)
|
108
|
+
|
109
|
+
/* Data Direction Register, Port D */
|
110
|
+
#define DDRD _SFR_IO8(0x11)
|
111
|
+
|
112
|
+
/* Data Register, Port D */
|
113
|
+
#define PORTD _SFR_IO8(0x12)
|
114
|
+
|
115
|
+
/* Input Pins, Port C */
|
116
|
+
#define PINC _SFR_IO8(0x13)
|
117
|
+
|
118
|
+
/* Data Direction Register, Port C */
|
119
|
+
#define DDRC _SFR_IO8(0x14)
|
120
|
+
|
121
|
+
/* Data Register, Port C */
|
122
|
+
#define PORTC _SFR_IO8(0x15)
|
123
|
+
|
124
|
+
/* Input Pins, Port B */
|
125
|
+
#define PINB _SFR_IO8(0x16)
|
126
|
+
|
127
|
+
/* Data Direction Register, Port B */
|
128
|
+
#define DDRB _SFR_IO8(0x17)
|
129
|
+
|
130
|
+
/* Data Register, Port B */
|
131
|
+
#define PORTB _SFR_IO8(0x18)
|
132
|
+
|
133
|
+
/* Input Pins, Port A */
|
134
|
+
#define PINA _SFR_IO8(0x19)
|
135
|
+
|
136
|
+
/* Data Direction Register, Port A */
|
137
|
+
#define DDRA _SFR_IO8(0x1A)
|
138
|
+
|
139
|
+
/* Data Register, Port A */
|
140
|
+
#define PORTA _SFR_IO8(0x1B)
|
141
|
+
|
142
|
+
/* EEPROM Control Register */
|
143
|
+
#define EECR _SFR_IO8(0x1C)
|
144
|
+
|
145
|
+
/* EEPROM Data Register */
|
146
|
+
#define EEDR _SFR_IO8(0x1D)
|
147
|
+
|
148
|
+
/* EEPROM Address Register */
|
149
|
+
#define EEAR _SFR_IO16(0x1E)
|
150
|
+
#define EEARL _SFR_IO8(0x1E)
|
151
|
+
#define EEARH _SFR_IO8(0x1F)
|
152
|
+
|
153
|
+
/* Special Function I/O Register */
|
154
|
+
#define SFIOR _SFR_IO8(0x20)
|
155
|
+
|
156
|
+
/* Watchdog Timer Control Register */
|
157
|
+
#define WDTCR _SFR_IO8(0x21)
|
158
|
+
|
159
|
+
/* On-chip Debug Register */
|
160
|
+
#define OCDR _SFR_IO8(0x22)
|
161
|
+
|
162
|
+
/* Timer2 Output Compare Register */
|
163
|
+
#define OCR2 _SFR_IO8(0x23)
|
164
|
+
|
165
|
+
/* Timer/Counter 2 */
|
166
|
+
#define TCNT2 _SFR_IO8(0x24)
|
167
|
+
|
168
|
+
/* Timer/Counter 2 Control register */
|
169
|
+
#define TCCR2 _SFR_IO8(0x25)
|
170
|
+
|
171
|
+
/* T/C 1 Input Capture Register */
|
172
|
+
#define ICR1 _SFR_IO16(0x26)
|
173
|
+
#define ICR1L _SFR_IO8(0x26)
|
174
|
+
#define ICR1H _SFR_IO8(0x27)
|
175
|
+
|
176
|
+
/* Timer/Counter1 Output Compare Register B */
|
177
|
+
#define OCR1B _SFR_IO16(0x28)
|
178
|
+
#define OCR1BL _SFR_IO8(0x28)
|
179
|
+
#define OCR1BH _SFR_IO8(0x29)
|
180
|
+
|
181
|
+
/* Timer/Counter1 Output Compare Register A */
|
182
|
+
#define OCR1A _SFR_IO16(0x2A)
|
183
|
+
#define OCR1AL _SFR_IO8(0x2A)
|
184
|
+
#define OCR1AH _SFR_IO8(0x2B)
|
185
|
+
|
186
|
+
/* Timer/Counter 1 */
|
187
|
+
#define TCNT1 _SFR_IO16(0x2C)
|
188
|
+
#define TCNT1L _SFR_IO8(0x2C)
|
189
|
+
#define TCNT1H _SFR_IO8(0x2D)
|
190
|
+
|
191
|
+
/* Timer/Counter 1 Control and Status Register */
|
192
|
+
#define TCCR1B _SFR_IO8(0x2E)
|
193
|
+
|
194
|
+
/* Timer/Counter 1 Control Register */
|
195
|
+
#define TCCR1A _SFR_IO8(0x2F)
|
196
|
+
|
197
|
+
/* Timer/Counter 0 Asynchronous Control & Status Register */
|
198
|
+
#define ASSR _SFR_IO8(0x30)
|
199
|
+
|
200
|
+
/* Output Compare Register 0 */
|
201
|
+
#define OCR0 _SFR_IO8(0x31)
|
202
|
+
|
203
|
+
/* Timer/Counter 0 */
|
204
|
+
#define TCNT0 _SFR_IO8(0x32)
|
205
|
+
|
206
|
+
/* Timer/Counter 0 Control Register */
|
207
|
+
#define TCCR0 _SFR_IO8(0x33)
|
208
|
+
|
209
|
+
/* MCU Status Register */
|
210
|
+
#define MCUSR _SFR_IO8(0x34) /* for backwards compatibility */
|
211
|
+
#define MCUCSR _SFR_IO8(0x34)
|
212
|
+
|
213
|
+
/* MCU general Control Register */
|
214
|
+
#define MCUCR _SFR_IO8(0x35)
|
215
|
+
|
216
|
+
/* Timer/Counter Interrupt Flag Register */
|
217
|
+
#define TIFR _SFR_IO8(0x36)
|
218
|
+
|
219
|
+
/* Timer/Counter Interrupt MaSK register */
|
220
|
+
#define TIMSK _SFR_IO8(0x37)
|
221
|
+
|
222
|
+
/* External Interrupt Flag Register */
|
223
|
+
#define EIFR _SFR_IO8(0x38)
|
224
|
+
|
225
|
+
/* External Interrupt MaSK register */
|
226
|
+
#define EIMSK _SFR_IO8(0x39)
|
227
|
+
|
228
|
+
/* External Interrupt Control Register B */
|
229
|
+
#define EICRB _SFR_IO8(0x3A)
|
230
|
+
|
231
|
+
/* XDIV Divide control register */
|
232
|
+
#define XDIV _SFR_IO8(0x3C)
|
233
|
+
|
234
|
+
/* 0x3D..0x3E SP */
|
235
|
+
|
236
|
+
/* 0x3F SREG */
|
237
|
+
|
238
|
+
/* Extended I/O registers */
|
239
|
+
|
240
|
+
/* Data Direction Register, Port F */
|
241
|
+
#define DDRF _SFR_MEM8(0x61)
|
242
|
+
|
243
|
+
/* Data Register, Port F */
|
244
|
+
#define PORTF _SFR_MEM8(0x62)
|
245
|
+
|
246
|
+
/* Input Pins, Port G */
|
247
|
+
#define PING _SFR_MEM8(0x63)
|
248
|
+
|
249
|
+
/* Data Direction Register, Port G */
|
250
|
+
#define DDRG _SFR_MEM8(0x64)
|
251
|
+
|
252
|
+
/* Data Register, Port G */
|
253
|
+
#define PORTG _SFR_MEM8(0x65)
|
254
|
+
|
255
|
+
/* Store Program Memory Control and Status Register */
|
256
|
+
#define SPMCR _SFR_MEM8(0x68)
|
257
|
+
#define SPMCSR _SFR_MEM8(0x68) /* for backwards compatibility with m128*/
|
258
|
+
|
259
|
+
/* External Interrupt Control Register A */
|
260
|
+
#define EICRA _SFR_MEM8(0x6A)
|
261
|
+
|
262
|
+
/* External Memory Control Register B */
|
263
|
+
#define XMCRB _SFR_MEM8(0x6C)
|
264
|
+
|
265
|
+
/* External Memory Control Register A */
|
266
|
+
#define XMCRA _SFR_MEM8(0x6D)
|
267
|
+
|
268
|
+
/* Oscillator Calibration Register */
|
269
|
+
#define OSCCAL _SFR_MEM8(0x6F)
|
270
|
+
|
271
|
+
/* 2-wire Serial Interface Bit Rate Register */
|
272
|
+
#define TWBR _SFR_MEM8(0x70)
|
273
|
+
|
274
|
+
/* 2-wire Serial Interface Status Register */
|
275
|
+
#define TWSR _SFR_MEM8(0x71)
|
276
|
+
|
277
|
+
/* 2-wire Serial Interface Address Register */
|
278
|
+
#define TWAR _SFR_MEM8(0x72)
|
279
|
+
|
280
|
+
/* 2-wire Serial Interface Data Register */
|
281
|
+
#define TWDR _SFR_MEM8(0x73)
|
282
|
+
|
283
|
+
/* 2-wire Serial Interface Control Register */
|
284
|
+
#define TWCR _SFR_MEM8(0x74)
|
285
|
+
|
286
|
+
/* Time Counter 1 Output Compare Register C */
|
287
|
+
#define OCR1C _SFR_MEM16(0x78)
|
288
|
+
#define OCR1CL _SFR_MEM8(0x78)
|
289
|
+
#define OCR1CH _SFR_MEM8(0x79)
|
290
|
+
|
291
|
+
/* Timer/Counter 1 Control Register C */
|
292
|
+
#define TCCR1C _SFR_MEM8(0x7A)
|
293
|
+
|
294
|
+
/* Extended Timer Interrupt Flag Register */
|
295
|
+
#define ETIFR _SFR_MEM8(0x7C)
|
296
|
+
|
297
|
+
/* Extended Timer Interrupt Mask Register */
|
298
|
+
#define ETIMSK _SFR_MEM8(0x7D)
|
299
|
+
|
300
|
+
/* Timer/Counter 3 Input Capture Register */
|
301
|
+
#define ICR3 _SFR_MEM16(0x80)
|
302
|
+
#define ICR3L _SFR_MEM8(0x80)
|
303
|
+
#define ICR3H _SFR_MEM8(0x81)
|
304
|
+
|
305
|
+
/* Timer/Counter 3 Output Compare Register C */
|
306
|
+
#define OCR3C _SFR_MEM16(0x82)
|
307
|
+
#define OCR3CL _SFR_MEM8(0x82)
|
308
|
+
#define OCR3CH _SFR_MEM8(0x83)
|
309
|
+
|
310
|
+
/* Timer/Counter 3 Output Compare Register B */
|
311
|
+
#define OCR3B _SFR_MEM16(0x84)
|
312
|
+
#define OCR3BL _SFR_MEM8(0x84)
|
313
|
+
#define OCR3BH _SFR_MEM8(0x85)
|
314
|
+
|
315
|
+
/* Timer/Counter 3 Output Compare Register A */
|
316
|
+
#define OCR3A _SFR_MEM16(0x86)
|
317
|
+
#define OCR3AL _SFR_MEM8(0x86)
|
318
|
+
#define OCR3AH _SFR_MEM8(0x87)
|
319
|
+
|
320
|
+
/* Timer/Counter 3 Counter Register */
|
321
|
+
#define TCNT3 _SFR_MEM16(0x88)
|
322
|
+
#define TCNT3L _SFR_MEM8(0x88)
|
323
|
+
#define TCNT3H _SFR_MEM8(0x89)
|
324
|
+
|
325
|
+
/* Timer/Counter 3 Control Register B */
|
326
|
+
#define TCCR3B _SFR_MEM8(0x8A)
|
327
|
+
|
328
|
+
/* Timer/Counter 3 Control Register A */
|
329
|
+
#define TCCR3A _SFR_MEM8(0x8B)
|
330
|
+
|
331
|
+
/* Timer/Counter 3 Control Register C */
|
332
|
+
#define TCCR3C _SFR_MEM8(0x8C)
|
333
|
+
|
334
|
+
/* ADC Control and Status Register B */
|
335
|
+
#define ADCSRB _SFR_MEM8(0x8E)
|
336
|
+
|
337
|
+
/* USART0 Baud Rate Register High */
|
338
|
+
#define UBRR0H _SFR_MEM8(0x90)
|
339
|
+
|
340
|
+
/* USART0 Control and Status Register C */
|
341
|
+
#define UCSR0C _SFR_MEM8(0x95)
|
342
|
+
|
343
|
+
/* USART1 Baud Rate Register High */
|
344
|
+
#define UBRR1H _SFR_MEM8(0x98)
|
345
|
+
|
346
|
+
/* USART1 Baud Rate Register Low*/
|
347
|
+
#define UBRR1L _SFR_MEM8(0x99)
|
348
|
+
|
349
|
+
/* USART1 Control and Status Register B */
|
350
|
+
#define UCSR1B _SFR_MEM8(0x9A)
|
351
|
+
|
352
|
+
/* USART1 Control and Status Register A */
|
353
|
+
#define UCSR1A _SFR_MEM8(0x9B)
|
354
|
+
|
355
|
+
/* USART1 I/O Data Register */
|
356
|
+
#define UDR1 _SFR_MEM8(0x9C)
|
357
|
+
|
358
|
+
/* USART1 Control and Status Register C */
|
359
|
+
#define UCSR1C _SFR_MEM8(0x9D)
|
360
|
+
|
361
|
+
/* Interrupt vectors */
|
362
|
+
|
363
|
+
/* External Interrupt Request 0 */
|
364
|
+
#define INT0_vect_num 1
|
365
|
+
#define INT0_vect _VECTOR(1)
|
366
|
+
#define SIG_INTERRUPT0 _VECTOR(1)
|
367
|
+
|
368
|
+
/* External Interrupt Request 1 */
|
369
|
+
#define INT1_vect_num 2
|
370
|
+
#define INT1_vect _VECTOR(2)
|
371
|
+
#define SIG_INTERRUPT1 _VECTOR(2)
|
372
|
+
|
373
|
+
/* External Interrupt Request 2 */
|
374
|
+
#define INT2_vect_num 3
|
375
|
+
#define INT2_vect _VECTOR(3)
|
376
|
+
#define SIG_INTERRUPT2 _VECTOR(3)
|
377
|
+
|
378
|
+
/* External Interrupt Request 3 */
|
379
|
+
#define INT3_vect_num 4
|
380
|
+
#define INT3_vect _VECTOR(4)
|
381
|
+
#define SIG_INTERRUPT3 _VECTOR(4)
|
382
|
+
|
383
|
+
/* External Interrupt Request 4 */
|
384
|
+
#define INT4_vect_num 5
|
385
|
+
#define INT4_vect _VECTOR(5)
|
386
|
+
#define SIG_INTERRUPT4 _VECTOR(5)
|
387
|
+
|
388
|
+
/* External Interrupt Request 5 */
|
389
|
+
#define INT5_vect_num 6
|
390
|
+
#define INT5_vect _VECTOR(6)
|
391
|
+
#define SIG_INTERRUPT5 _VECTOR(6)
|
392
|
+
|
393
|
+
/* External Interrupt Request 6 */
|
394
|
+
#define INT6_vect_num 7
|
395
|
+
#define INT6_vect _VECTOR(7)
|
396
|
+
#define SIG_INTERRUPT6 _VECTOR(7)
|
397
|
+
|
398
|
+
/* External Interrupt Request 7 */
|
399
|
+
#define INT7_vect_num 8
|
400
|
+
#define INT7_vect _VECTOR(8)
|
401
|
+
#define SIG_INTERRUPT7 _VECTOR(8)
|
402
|
+
|
403
|
+
/* Timer/Counter2 Compare Match */
|
404
|
+
#define TIMER2_COMP_vect_num 9
|
405
|
+
#define TIMER2_COMP_vect _VECTOR(9)
|
406
|
+
#define SIG_OUTPUT_COMPARE2 _VECTOR(9)
|
407
|
+
|
408
|
+
/* Timer/Counter2 Overflow */
|
409
|
+
#define TIMER2_OVF_vect_num 10
|
410
|
+
#define TIMER2_OVF_vect _VECTOR(10)
|
411
|
+
#define SIG_OVERFLOW2 _VECTOR(10)
|
412
|
+
|
413
|
+
/* Timer/Counter1 Capture Event */
|
414
|
+
#define TIMER1_CAPT_vect_num 11
|
415
|
+
#define TIMER1_CAPT_vect _VECTOR(11)
|
416
|
+
#define SIG_INPUT_CAPTURE1 _VECTOR(11)
|
417
|
+
|
418
|
+
/* Timer/Counter1 Compare Match A */
|
419
|
+
#define TIMER1_COMPA_vect_num 12
|
420
|
+
#define TIMER1_COMPA_vect _VECTOR(12)
|
421
|
+
#define SIG_OUTPUT_COMPARE1A _VECTOR(12)
|
422
|
+
|
423
|
+
/* Timer/Counter Compare Match B */
|
424
|
+
#define TIMER1_COMPB_vect_num 13
|
425
|
+
#define TIMER1_COMPB_vect _VECTOR(13)
|
426
|
+
#define SIG_OUTPUT_COMPARE1B _VECTOR(13)
|
427
|
+
|
428
|
+
/* Timer/Counter1 Overflow */
|
429
|
+
#define TIMER1_OVF_vect_num 14
|
430
|
+
#define TIMER1_OVF_vect _VECTOR(14)
|
431
|
+
#define SIG_OVERFLOW1 _VECTOR(14)
|
432
|
+
|
433
|
+
/* Timer/Counter0 Compare Match */
|
434
|
+
#define TIMER0_COMP_vect_num 15
|
435
|
+
#define TIMER0_COMP_vect _VECTOR(15)
|
436
|
+
#define SIG_OUTPUT_COMPARE0 _VECTOR(15)
|
437
|
+
|
438
|
+
/* Timer/Counter0 Overflow */
|
439
|
+
#define TIMER0_OVF_vect_num 16
|
440
|
+
#define TIMER0_OVF_vect _VECTOR(16)
|
441
|
+
#define SIG_OVERFLOW0 _VECTOR(16)
|
442
|
+
|
443
|
+
/* SPI Serial Transfer Complete */
|
444
|
+
#define SPI_STC_vect_num 17
|
445
|
+
#define SPI_STC_vect _VECTOR(17)
|
446
|
+
#define SIG_SPI _VECTOR(17)
|
447
|
+
|
448
|
+
/* USART0, Rx Complete */
|
449
|
+
#define USART0_RX_vect_num 18
|
450
|
+
#define USART0_RX_vect _VECTOR(18)
|
451
|
+
#define SIG_UART0_RECV _VECTOR(18)
|
452
|
+
|
453
|
+
/* USART0 Data Register Empty */
|
454
|
+
#define USART0_UDRE_vect_num 19
|
455
|
+
#define USART0_UDRE_vect _VECTOR(19)
|
456
|
+
#define SIG_UART0_DATA _VECTOR(19)
|
457
|
+
|
458
|
+
/* USART0, Tx Complete */
|
459
|
+
#define USART0_TX_vect_num 20
|
460
|
+
#define USART0_TX_vect _VECTOR(20)
|
461
|
+
#define SIG_UART0_TRANS _VECTOR(20)
|
462
|
+
|
463
|
+
/* ADC Conversion Complete */
|
464
|
+
#define ADC_vect_num 21
|
465
|
+
#define ADC_vect _VECTOR(21)
|
466
|
+
#define SIG_ADC _VECTOR(21)
|
467
|
+
|
468
|
+
/* EEPROM Ready */
|
469
|
+
#define EE_READY_vect_num 22
|
470
|
+
#define EE_READY_vect _VECTOR(22)
|
471
|
+
#define SIG_EEPROM_READY _VECTOR(22)
|
472
|
+
|
473
|
+
/* Analog Comparator */
|
474
|
+
#define ANALOG_COMP_vect_num 23
|
475
|
+
#define ANALOG_COMP_vect _VECTOR(23)
|
476
|
+
#define SIG_COMPARATOR _VECTOR(23)
|
477
|
+
|
478
|
+
/* Timer/Counter1 Compare Match C */
|
479
|
+
#define TIMER1_COMPC_vect_num 24
|
480
|
+
#define TIMER1_COMPC_vect _VECTOR(24)
|
481
|
+
#define SIG_OUTPUT_COMPARE1C _VECTOR(24)
|
482
|
+
|
483
|
+
/* Timer/Counter3 Capture Event */
|
484
|
+
#define TIMER3_CAPT_vect_num 25
|
485
|
+
#define TIMER3_CAPT_vect _VECTOR(25)
|
486
|
+
#define SIG_INPUT_CAPTURE3 _VECTOR(25)
|
487
|
+
|
488
|
+
/* Timer/Counter3 Compare Match A */
|
489
|
+
#define TIMER3_COMPA_vect_num 26
|
490
|
+
#define TIMER3_COMPA_vect _VECTOR(26)
|
491
|
+
#define SIG_OUTPUT_COMPARE3A _VECTOR(26)
|
492
|
+
|
493
|
+
/* Timer/Counter3 Compare Match B */
|
494
|
+
#define TIMER3_COMPB_vect_num 27
|
495
|
+
#define TIMER3_COMPB_vect _VECTOR(27)
|
496
|
+
#define SIG_OUTPUT_COMPARE3B _VECTOR(27)
|
497
|
+
|
498
|
+
/* Timer/Counter3 Compare Match C */
|
499
|
+
#define TIMER3_COMPC_vect_num 28
|
500
|
+
#define TIMER3_COMPC_vect _VECTOR(28)
|
501
|
+
#define SIG_OUTPUT_COMPARE3C _VECTOR(28)
|
502
|
+
|
503
|
+
/* Timer/Counter3 Overflow */
|
504
|
+
#define TIMER3_OVF_vect_num 29
|
505
|
+
#define TIMER3_OVF_vect _VECTOR(29)
|
506
|
+
#define SIG_OVERFLOW3 _VECTOR(29)
|
507
|
+
|
508
|
+
/* USART1, Rx Complete */
|
509
|
+
#define USART1_RX_vect_num 30
|
510
|
+
#define USART1_RX_vect _VECTOR(30)
|
511
|
+
#define SIG_UART1_RECV _VECTOR(30)
|
512
|
+
|
513
|
+
/* USART1, Data Register Empty */
|
514
|
+
#define USART1_UDRE_vect_num 31
|
515
|
+
#define USART1_UDRE_vect _VECTOR(31)
|
516
|
+
#define SIG_UART1_DATA _VECTOR(31)
|
517
|
+
|
518
|
+
/* USART1, Tx Complete */
|
519
|
+
#define USART1_TX_vect_num 32
|
520
|
+
#define USART1_TX_vect _VECTOR(32)
|
521
|
+
#define SIG_UART1_TRANS _VECTOR(32)
|
522
|
+
|
523
|
+
/* 2-wire Serial Interface */
|
524
|
+
#define TWI_vect_num 33
|
525
|
+
#define TWI_vect _VECTOR(33)
|
526
|
+
#define SIG_2WIRE_SERIAL _VECTOR(33)
|
527
|
+
|
528
|
+
/* Store Program Memory Read */
|
529
|
+
#define SPM_READY_vect_num 34
|
530
|
+
#define SPM_READY_vect _VECTOR(34)
|
531
|
+
#define SIG_SPM_READY _VECTOR(34)
|
532
|
+
|
533
|
+
#define _VECTORS_SIZE 140
|
534
|
+
|
535
|
+
/*
|
536
|
+
The Register Bit names are represented by their bit number (0-7).
|
537
|
+
*/
|
538
|
+
|
539
|
+
/* 2-wire Control Register - TWCR */
|
540
|
+
#define TWINT 7
|
541
|
+
#define TWEA 6
|
542
|
+
#define TWSTA 5
|
543
|
+
#define TWSTO 4
|
544
|
+
#define TWWC 3
|
545
|
+
#define TWEN 2
|
546
|
+
#define TWIE 0
|
547
|
+
|
548
|
+
/* 2-wire Address Register - TWAR */
|
549
|
+
#define TWA6 7
|
550
|
+
#define TWA5 6
|
551
|
+
#define TWA4 5
|
552
|
+
#define TWA3 4
|
553
|
+
#define TWA2 3
|
554
|
+
#define TWA1 2
|
555
|
+
#define TWA0 1
|
556
|
+
#define TWGCE 0
|
557
|
+
|
558
|
+
/* 2-wire Status Register - TWSR */
|
559
|
+
#define TWS7 7
|
560
|
+
#define TWS6 6
|
561
|
+
#define TWS5 5
|
562
|
+
#define TWS4 4
|
563
|
+
#define TWS3 3
|
564
|
+
#define TWPS1 1
|
565
|
+
#define TWPS0 0
|
566
|
+
|
567
|
+
/* External Memory Control Register A - XMCRA */
|
568
|
+
#define SRL2 6
|
569
|
+
#define SRL1 5
|
570
|
+
#define SRL0 4
|
571
|
+
#define SRW01 3
|
572
|
+
#define SRW00 2
|
573
|
+
#define SRW11 1
|
574
|
+
|
575
|
+
/* External Memory Control Register B - XMCRA */
|
576
|
+
#define XMBK 7
|
577
|
+
#define XMM2 2
|
578
|
+
#define XMM1 1
|
579
|
+
#define XMM0 0
|
580
|
+
|
581
|
+
/* XDIV Divide control register - XDIV */
|
582
|
+
#define XDIVEN 7
|
583
|
+
#define XDIV6 6
|
584
|
+
#define XDIV5 5
|
585
|
+
#define XDIV4 4
|
586
|
+
#define XDIV3 3
|
587
|
+
#define XDIV2 2
|
588
|
+
#define XDIV1 1
|
589
|
+
#define XDIV0 0
|
590
|
+
|
591
|
+
/* External Interrupt Control Register A - EICRA */
|
592
|
+
#define ISC31 7
|
593
|
+
#define ISC30 6
|
594
|
+
#define ISC21 5
|
595
|
+
#define ISC20 4
|
596
|
+
#define ISC11 3
|
597
|
+
#define ISC10 2
|
598
|
+
#define ISC01 1
|
599
|
+
#define ISC00 0
|
600
|
+
|
601
|
+
/* External Interrupt Control Register B - EICRB */
|
602
|
+
#define ISC71 7
|
603
|
+
#define ISC70 6
|
604
|
+
#define ISC61 5
|
605
|
+
#define ISC60 4
|
606
|
+
#define ISC51 3
|
607
|
+
#define ISC50 2
|
608
|
+
#define ISC41 1
|
609
|
+
#define ISC40 0
|
610
|
+
|
611
|
+
/* Store Program Memory Control Register - SPMCSR, SPMCR */
|
612
|
+
#define SPMIE 7
|
613
|
+
#define RWWSB 6
|
614
|
+
#define RWWSRE 4
|
615
|
+
#define BLBSET 3
|
616
|
+
#define PGWRT 2
|
617
|
+
#define PGERS 1
|
618
|
+
#define SPMEN 0
|
619
|
+
|
620
|
+
/* External Interrupt MaSK register - EIMSK */
|
621
|
+
#define INT7 7
|
622
|
+
#define INT6 6
|
623
|
+
#define INT5 5
|
624
|
+
#define INT4 4
|
625
|
+
#define INT3 3
|
626
|
+
#define INT2 2
|
627
|
+
#define INT1 1
|
628
|
+
#define INT0 0
|
629
|
+
|
630
|
+
/* External Interrupt Flag Register - EIFR */
|
631
|
+
#define INTF7 7
|
632
|
+
#define INTF6 6
|
633
|
+
#define INTF5 5
|
634
|
+
#define INTF4 4
|
635
|
+
#define INTF3 3
|
636
|
+
#define INTF2 2
|
637
|
+
#define INTF1 1
|
638
|
+
#define INTF0 0
|
639
|
+
|
640
|
+
/* Timer/Counter Interrupt MaSK register - TIMSK */
|
641
|
+
#define OCIE2 7
|
642
|
+
#define TOIE2 6
|
643
|
+
#define TICIE1 5
|
644
|
+
#define OCIE1A 4
|
645
|
+
#define OCIE1B 3
|
646
|
+
#define TOIE1 2
|
647
|
+
#define OCIE0 1
|
648
|
+
#define TOIE0 0
|
649
|
+
|
650
|
+
/* Timer/Counter Interrupt Flag Register - TIFR */
|
651
|
+
#define OCF2 7
|
652
|
+
#define TOV2 6
|
653
|
+
#define ICF1 5
|
654
|
+
#define OCF1A 4
|
655
|
+
#define OCF1B 3
|
656
|
+
#define TOV1 2
|
657
|
+
#define OCF0 1
|
658
|
+
#define TOV0 0
|
659
|
+
|
660
|
+
/* Extended Timer Interrupt MaSK register - ETIMSK */
|
661
|
+
#define TICIE3 5
|
662
|
+
#define OCIE3A 4
|
663
|
+
#define OCIE3B 3
|
664
|
+
#define TOIE3 2
|
665
|
+
#define OCIE3C 1
|
666
|
+
#define OCIE1C 0
|
667
|
+
|
668
|
+
/* Extended Timer Interrupt Flag Register - ETIFR */
|
669
|
+
#define ICF3 5
|
670
|
+
#define OCF3A 4
|
671
|
+
#define OCF3B 3
|
672
|
+
#define TOV3 2
|
673
|
+
#define OCF3C 1
|
674
|
+
#define OCF1C 0
|
675
|
+
|
676
|
+
/* MCU Control Register - MCUCR */
|
677
|
+
#define SRE 7
|
678
|
+
#define SRW10 6
|
679
|
+
#define SE 5
|
680
|
+
#define SM1 4
|
681
|
+
#define SM0 3
|
682
|
+
#define SM2 2
|
683
|
+
#define IVSEL 1
|
684
|
+
#define IVCE 0
|
685
|
+
|
686
|
+
/* MCU Control And Status Register - MCUCSR */
|
687
|
+
#define JTD 7
|
688
|
+
#define JTRF 4
|
689
|
+
#define WDRF 3
|
690
|
+
#define BORF 2
|
691
|
+
#define EXTRF 1
|
692
|
+
#define PORF 0
|
693
|
+
|
694
|
+
/* Timer/Counter Control Register (generic) */
|
695
|
+
#define FOC 7
|
696
|
+
#define WGM0 6
|
697
|
+
#define COM1 5
|
698
|
+
#define COM0 4
|
699
|
+
#define WGM1 3
|
700
|
+
#define CS2 2
|
701
|
+
#define CS1 1
|
702
|
+
#define CS0 0
|
703
|
+
|
704
|
+
/* Timer/Counter 0 Control Register - TCCR0 */
|
705
|
+
#define FOC0 7
|
706
|
+
#define WGM00 6
|
707
|
+
#define COM01 5
|
708
|
+
#define COM00 4
|
709
|
+
#define WGM01 3
|
710
|
+
#define CS02 2
|
711
|
+
#define CS01 1
|
712
|
+
#define CS00 0
|
713
|
+
|
714
|
+
/* Timer/Counter 2 Control Register - TCCR2 */
|
715
|
+
#define FOC2 7
|
716
|
+
#define WGM20 6
|
717
|
+
#define COM21 5
|
718
|
+
#define COM20 4
|
719
|
+
#define WGM21 3
|
720
|
+
#define CS22 2
|
721
|
+
#define CS21 1
|
722
|
+
#define CS20 0
|
723
|
+
|
724
|
+
/* Timer/Counter 0 Asynchronous Control & Status Register - ASSR */
|
725
|
+
#define AS0 3
|
726
|
+
#define TCN0UB 2
|
727
|
+
#define OCR0UB 1
|
728
|
+
#define TCR0UB 0
|
729
|
+
|
730
|
+
/* Timer/Counter Control Register A (generic) */
|
731
|
+
#define COMA1 7
|
732
|
+
#define COMA0 6
|
733
|
+
#define COMB1 5
|
734
|
+
#define COMB0 4
|
735
|
+
#define COMC1 3
|
736
|
+
#define COMC0 2
|
737
|
+
#define WGMA1 1
|
738
|
+
#define WGMA0 0
|
739
|
+
|
740
|
+
/* Timer/Counter 1 Control and Status Register A - TCCR1A */
|
741
|
+
#define COM1A1 7
|
742
|
+
#define COM1A0 6
|
743
|
+
#define COM1B1 5
|
744
|
+
#define COM1B0 4
|
745
|
+
#define COM1C1 3
|
746
|
+
#define COM1C0 2
|
747
|
+
#define WGM11 1
|
748
|
+
#define WGM10 0
|
749
|
+
|
750
|
+
/* Timer/Counter 3 Control and Status Register A - TCCR3A */
|
751
|
+
#define COM3A1 7
|
752
|
+
#define COM3A0 6
|
753
|
+
#define COM3B1 5
|
754
|
+
#define COM3B0 4
|
755
|
+
#define COM3C1 3
|
756
|
+
#define COM3C0 2
|
757
|
+
#define WGM31 1
|
758
|
+
#define WGM30 0
|
759
|
+
|
760
|
+
/* Timer/Counter Control and Status Register B (generic) */
|
761
|
+
#define ICNC 7
|
762
|
+
#define ICES 6
|
763
|
+
#define WGMB3 4
|
764
|
+
#define WGMB2 3
|
765
|
+
#define CSB2 2
|
766
|
+
#define CSB1 1
|
767
|
+
#define CSB0 0
|
768
|
+
|
769
|
+
/* Timer/Counter 1 Control and Status Register B - TCCR1B */
|
770
|
+
#define ICNC1 7
|
771
|
+
#define ICES1 6
|
772
|
+
#define WGM13 4
|
773
|
+
#define WGM12 3
|
774
|
+
#define CS12 2
|
775
|
+
#define CS11 1
|
776
|
+
#define CS10 0
|
777
|
+
|
778
|
+
/* Timer/Counter 3 Control and Status Register B - TCCR3B */
|
779
|
+
#define ICNC3 7
|
780
|
+
#define ICES3 6
|
781
|
+
#define WGM33 4
|
782
|
+
#define WGM32 3
|
783
|
+
#define CS32 2
|
784
|
+
#define CS31 1
|
785
|
+
#define CS30 0
|
786
|
+
|
787
|
+
/* Timer/Counter Control Register C (generic) */
|
788
|
+
#define FOCA 7
|
789
|
+
#define FOCB 6
|
790
|
+
#define FOCC 5
|
791
|
+
|
792
|
+
/* Timer/Counter 3 Control Register C - TCCR3C */
|
793
|
+
#define FOC3A 7
|
794
|
+
#define FOC3B 6
|
795
|
+
#define FOC3C 5
|
796
|
+
|
797
|
+
/* Timer/Counter 1 Control Register C - TCCR1C */
|
798
|
+
#define FOC1A 7
|
799
|
+
#define FOC1B 6
|
800
|
+
#define FOC1C 5
|
801
|
+
|
802
|
+
/* On-chip Debug Register - OCDR */
|
803
|
+
#define IDRD 7
|
804
|
+
#define OCDR7 7
|
805
|
+
#define OCDR6 6
|
806
|
+
#define OCDR5 5
|
807
|
+
#define OCDR4 4
|
808
|
+
#define OCDR3 3
|
809
|
+
#define OCDR2 2
|
810
|
+
#define OCDR1 1
|
811
|
+
#define OCDR0 0
|
812
|
+
|
813
|
+
/* Watchdog Timer Control Register - WDTCR */
|
814
|
+
#define WDCE 4
|
815
|
+
#define WDE 3
|
816
|
+
#define WDP2 2
|
817
|
+
#define WDP1 1
|
818
|
+
#define WDP0 0
|
819
|
+
|
820
|
+
/*
|
821
|
+
The ADHSM bit has been removed from all documentation,
|
822
|
+
as being not needed at all since the comparator has proven
|
823
|
+
to be fast enough even without feeding it more power.
|
824
|
+
*/
|
825
|
+
|
826
|
+
/* Special Function I/O Register - SFIOR */
|
827
|
+
#define TSM 7
|
828
|
+
#define ACME 3
|
829
|
+
#define PUD 2
|
830
|
+
#define PSR0 1
|
831
|
+
#define PSR321 0
|
832
|
+
|
833
|
+
/* Port Data Register (generic) */
|
834
|
+
#define PORT7 7
|
835
|
+
#define PORT6 6
|
836
|
+
#define PORT5 5
|
837
|
+
#define PORT4 4
|
838
|
+
#define PORT3 3
|
839
|
+
#define PORT2 2
|
840
|
+
#define PORT1 1
|
841
|
+
#define PORT0 0
|
842
|
+
|
843
|
+
/* Port Data Direction Register (generic) */
|
844
|
+
#define DD7 7
|
845
|
+
#define DD6 6
|
846
|
+
#define DD5 5
|
847
|
+
#define DD4 4
|
848
|
+
#define DD3 3
|
849
|
+
#define DD2 2
|
850
|
+
#define DD1 1
|
851
|
+
#define DD0 0
|
852
|
+
|
853
|
+
/* Port Input Pins (generic) */
|
854
|
+
#define PIN7 7
|
855
|
+
#define PIN6 6
|
856
|
+
#define PIN5 5
|
857
|
+
#define PIN4 4
|
858
|
+
#define PIN3 3
|
859
|
+
#define PIN2 2
|
860
|
+
#define PIN1 1
|
861
|
+
#define PIN0 0
|
862
|
+
|
863
|
+
/* SPI Status Register - SPSR */
|
864
|
+
#define SPIF 7
|
865
|
+
#define WCOL 6
|
866
|
+
#define SPI2X 0
|
867
|
+
|
868
|
+
/* SPI Control Register - SPCR */
|
869
|
+
#define SPIE 7
|
870
|
+
#define SPE 6
|
871
|
+
#define DORD 5
|
872
|
+
#define MSTR 4
|
873
|
+
#define CPOL 3
|
874
|
+
#define CPHA 2
|
875
|
+
#define SPR1 1
|
876
|
+
#define SPR0 0
|
877
|
+
|
878
|
+
/* USART Register C (generic) */
|
879
|
+
#define UMSEL 6
|
880
|
+
#define UPM1 5
|
881
|
+
#define UPM0 4
|
882
|
+
#define USBS 3
|
883
|
+
#define UCSZ1 2
|
884
|
+
#define UCSZ0 1
|
885
|
+
#define UCPOL 0
|
886
|
+
|
887
|
+
/* USART1 Register C - UCSR1C */
|
888
|
+
#define UMSEL1 6
|
889
|
+
#define UPM11 5
|
890
|
+
#define UPM10 4
|
891
|
+
#define USBS1 3
|
892
|
+
#define UCSZ11 2
|
893
|
+
#define UCSZ10 1
|
894
|
+
#define UCPOL1 0
|
895
|
+
|
896
|
+
/* USART0 Register C - UCSR0C */
|
897
|
+
#define UMSEL0 6
|
898
|
+
#define UPM01 5
|
899
|
+
#define UPM00 4
|
900
|
+
#define USBS0 3
|
901
|
+
#define UCSZ01 2
|
902
|
+
#define UCSZ00 1
|
903
|
+
#define UCPOL0 0
|
904
|
+
|
905
|
+
/* USART Status Register A (generic) */
|
906
|
+
#define RXC 7
|
907
|
+
#define TXC 6
|
908
|
+
#define UDRE 5
|
909
|
+
#define FE 4
|
910
|
+
#define DOR 3
|
911
|
+
#define UPE 2
|
912
|
+
#define U2X 1
|
913
|
+
#define MPCM 0
|
914
|
+
|
915
|
+
/* USART1 Status Register A - UCSR1A */
|
916
|
+
#define RXC1 7
|
917
|
+
#define TXC1 6
|
918
|
+
#define UDRE1 5
|
919
|
+
#define FE1 4
|
920
|
+
#define DOR1 3
|
921
|
+
#define UPE1 2
|
922
|
+
#define U2X1 1
|
923
|
+
#define MPCM1 0
|
924
|
+
|
925
|
+
/* USART0 Status Register A - UCSR0A */
|
926
|
+
#define RXC0 7
|
927
|
+
#define TXC0 6
|
928
|
+
#define UDRE0 5
|
929
|
+
#define FE0 4
|
930
|
+
#define DOR0 3
|
931
|
+
#define UPE0 2
|
932
|
+
#define U2X0 1
|
933
|
+
#define MPCM0 0
|
934
|
+
|
935
|
+
/* USART Control Register B (generic) */
|
936
|
+
#define RXCIE 7
|
937
|
+
#define TXCIE 6
|
938
|
+
#define UDRIE 5
|
939
|
+
#define RXEN 4
|
940
|
+
#define TXEN 3
|
941
|
+
#define UCSZ 2
|
942
|
+
#define UCSZ2 2 /* new name in datasheet (2467E-AVR-05/02) */
|
943
|
+
#define RXB8 1
|
944
|
+
#define TXB8 0
|
945
|
+
|
946
|
+
/* USART1 Control Register B - UCSR1B */
|
947
|
+
#define RXCIE1 7
|
948
|
+
#define TXCIE1 6
|
949
|
+
#define UDRIE1 5
|
950
|
+
#define RXEN1 4
|
951
|
+
#define TXEN1 3
|
952
|
+
#define UCSZ12 2
|
953
|
+
#define RXB81 1
|
954
|
+
#define TXB81 0
|
955
|
+
|
956
|
+
/* USART0 Control Register B - UCSR0B */
|
957
|
+
#define RXCIE0 7
|
958
|
+
#define TXCIE0 6
|
959
|
+
#define UDRIE0 5
|
960
|
+
#define RXEN0 4
|
961
|
+
#define TXEN0 3
|
962
|
+
#define UCSZ02 2
|
963
|
+
#define RXB80 1
|
964
|
+
#define TXB80 0
|
965
|
+
|
966
|
+
/* Analog Comparator Control and Status Register - ACSR */
|
967
|
+
#define ACD 7
|
968
|
+
#define ACBG 6
|
969
|
+
#define ACO 5
|
970
|
+
#define ACI 4
|
971
|
+
#define ACIE 3
|
972
|
+
#define ACIC 2
|
973
|
+
#define ACIS1 1
|
974
|
+
#define ACIS0 0
|
975
|
+
|
976
|
+
/* ADC Control and Status Register B - ADCSRB */
|
977
|
+
#define ADTS2 2
|
978
|
+
#define ADTS1 1
|
979
|
+
#define ADTS0 0
|
980
|
+
|
981
|
+
/* ADC Control and status Register A - ADCSRA */
|
982
|
+
#define ADEN 7
|
983
|
+
#define ADSC 6
|
984
|
+
#define ADATE 5
|
985
|
+
#define ADIF 4
|
986
|
+
#define ADIE 3
|
987
|
+
#define ADPS2 2
|
988
|
+
#define ADPS1 1
|
989
|
+
#define ADPS0 0
|
990
|
+
|
991
|
+
/* ADC Multiplexer select - ADMUX */
|
992
|
+
#define REFS1 7
|
993
|
+
#define REFS0 6
|
994
|
+
#define ADLAR 5
|
995
|
+
#define MUX4 4
|
996
|
+
#define MUX3 3
|
997
|
+
#define MUX2 2
|
998
|
+
#define MUX1 1
|
999
|
+
#define MUX0 0
|
1000
|
+
|
1001
|
+
/* Port A Data Register - PORTA */
|
1002
|
+
#define PA7 7
|
1003
|
+
#define PA6 6
|
1004
|
+
#define PA5 5
|
1005
|
+
#define PA4 4
|
1006
|
+
#define PA3 3
|
1007
|
+
#define PA2 2
|
1008
|
+
#define PA1 1
|
1009
|
+
#define PA0 0
|
1010
|
+
|
1011
|
+
/* Port A Data Direction Register - DDRA */
|
1012
|
+
#define DDA7 7
|
1013
|
+
#define DDA6 6
|
1014
|
+
#define DDA5 5
|
1015
|
+
#define DDA4 4
|
1016
|
+
#define DDA3 3
|
1017
|
+
#define DDA2 2
|
1018
|
+
#define DDA1 1
|
1019
|
+
#define DDA0 0
|
1020
|
+
|
1021
|
+
/* Port A Input Pins - PINA */
|
1022
|
+
#define PINA7 7
|
1023
|
+
#define PINA6 6
|
1024
|
+
#define PINA5 5
|
1025
|
+
#define PINA4 4
|
1026
|
+
#define PINA3 3
|
1027
|
+
#define PINA2 2
|
1028
|
+
#define PINA1 1
|
1029
|
+
#define PINA0 0
|
1030
|
+
|
1031
|
+
/* Port B Data Register - PORTB */
|
1032
|
+
#define PB7 7
|
1033
|
+
#define PB6 6
|
1034
|
+
#define PB5 5
|
1035
|
+
#define PB4 4
|
1036
|
+
#define PB3 3
|
1037
|
+
#define PB2 2
|
1038
|
+
#define PB1 1
|
1039
|
+
#define PB0 0
|
1040
|
+
|
1041
|
+
/* Port B Data Direction Register - DDRB */
|
1042
|
+
#define DDB7 7
|
1043
|
+
#define DDB6 6
|
1044
|
+
#define DDB5 5
|
1045
|
+
#define DDB4 4
|
1046
|
+
#define DDB3 3
|
1047
|
+
#define DDB2 2
|
1048
|
+
#define DDB1 1
|
1049
|
+
#define DDB0 0
|
1050
|
+
|
1051
|
+
/* Port B Input Pins - PINB */
|
1052
|
+
#define PINB7 7
|
1053
|
+
#define PINB6 6
|
1054
|
+
#define PINB5 5
|
1055
|
+
#define PINB4 4
|
1056
|
+
#define PINB3 3
|
1057
|
+
#define PINB2 2
|
1058
|
+
#define PINB1 1
|
1059
|
+
#define PINB0 0
|
1060
|
+
|
1061
|
+
/* Port C Data Register - PORTC */
|
1062
|
+
#define PC7 7
|
1063
|
+
#define PC6 6
|
1064
|
+
#define PC5 5
|
1065
|
+
#define PC4 4
|
1066
|
+
#define PC3 3
|
1067
|
+
#define PC2 2
|
1068
|
+
#define PC1 1
|
1069
|
+
#define PC0 0
|
1070
|
+
|
1071
|
+
/* Port C Data Direction Register - DDRC */
|
1072
|
+
#define DDC7 7
|
1073
|
+
#define DDC6 6
|
1074
|
+
#define DDC5 5
|
1075
|
+
#define DDC4 4
|
1076
|
+
#define DDC3 3
|
1077
|
+
#define DDC2 2
|
1078
|
+
#define DDC1 1
|
1079
|
+
#define DDC0 0
|
1080
|
+
|
1081
|
+
/* Port C Input Pins - PINC */
|
1082
|
+
#define PINC7 7
|
1083
|
+
#define PINC6 6
|
1084
|
+
#define PINC5 5
|
1085
|
+
#define PINC4 4
|
1086
|
+
#define PINC3 3
|
1087
|
+
#define PINC2 2
|
1088
|
+
#define PINC1 1
|
1089
|
+
#define PINC0 0
|
1090
|
+
|
1091
|
+
/* Port D Data Register - PORTD */
|
1092
|
+
#define PD7 7
|
1093
|
+
#define PD6 6
|
1094
|
+
#define PD5 5
|
1095
|
+
#define PD4 4
|
1096
|
+
#define PD3 3
|
1097
|
+
#define PD2 2
|
1098
|
+
#define PD1 1
|
1099
|
+
#define PD0 0
|
1100
|
+
|
1101
|
+
/* Port D Data Direction Register - DDRD */
|
1102
|
+
#define DDD7 7
|
1103
|
+
#define DDD6 6
|
1104
|
+
#define DDD5 5
|
1105
|
+
#define DDD4 4
|
1106
|
+
#define DDD3 3
|
1107
|
+
#define DDD2 2
|
1108
|
+
#define DDD1 1
|
1109
|
+
#define DDD0 0
|
1110
|
+
|
1111
|
+
/* Port D Input Pins - PIND */
|
1112
|
+
#define PIND7 7
|
1113
|
+
#define PIND6 6
|
1114
|
+
#define PIND5 5
|
1115
|
+
#define PIND4 4
|
1116
|
+
#define PIND3 3
|
1117
|
+
#define PIND2 2
|
1118
|
+
#define PIND1 1
|
1119
|
+
#define PIND0 0
|
1120
|
+
|
1121
|
+
/* Port E Data Register - PORTE */
|
1122
|
+
#define PE7 7
|
1123
|
+
#define PE6 6
|
1124
|
+
#define PE5 5
|
1125
|
+
#define PE4 4
|
1126
|
+
#define PE3 3
|
1127
|
+
#define PE2 2
|
1128
|
+
#define PE1 1
|
1129
|
+
#define PE0 0
|
1130
|
+
|
1131
|
+
/* Port E Data Direction Register - DDRE */
|
1132
|
+
#define DDE7 7
|
1133
|
+
#define DDE6 6
|
1134
|
+
#define DDE5 5
|
1135
|
+
#define DDE4 4
|
1136
|
+
#define DDE3 3
|
1137
|
+
#define DDE2 2
|
1138
|
+
#define DDE1 1
|
1139
|
+
#define DDE0 0
|
1140
|
+
|
1141
|
+
/* Port E Input Pins - PINE */
|
1142
|
+
#define PINE7 7
|
1143
|
+
#define PINE6 6
|
1144
|
+
#define PINE5 5
|
1145
|
+
#define PINE4 4
|
1146
|
+
#define PINE3 3
|
1147
|
+
#define PINE2 2
|
1148
|
+
#define PINE1 1
|
1149
|
+
#define PINE0 0
|
1150
|
+
|
1151
|
+
/* Port F Data Register - PORTF */
|
1152
|
+
#define PF7 7
|
1153
|
+
#define PF6 6
|
1154
|
+
#define PF5 5
|
1155
|
+
#define PF4 4
|
1156
|
+
#define PF3 3
|
1157
|
+
#define PF2 2
|
1158
|
+
#define PF1 1
|
1159
|
+
#define PF0 0
|
1160
|
+
|
1161
|
+
/* Port F Data Direction Register - DDRF */
|
1162
|
+
#define DDF7 7
|
1163
|
+
#define DDF6 6
|
1164
|
+
#define DDF5 5
|
1165
|
+
#define DDF4 4
|
1166
|
+
#define DDF3 3
|
1167
|
+
#define DDF2 2
|
1168
|
+
#define DDF1 1
|
1169
|
+
#define DDF0 0
|
1170
|
+
|
1171
|
+
/* Port F Input Pins - PINF */
|
1172
|
+
#define PINF7 7
|
1173
|
+
#define PINF6 6
|
1174
|
+
#define PINF5 5
|
1175
|
+
#define PINF4 4
|
1176
|
+
#define PINF3 3
|
1177
|
+
#define PINF2 2
|
1178
|
+
#define PINF1 1
|
1179
|
+
#define PINF0 0
|
1180
|
+
|
1181
|
+
/* Port G Data Register - PORTG */
|
1182
|
+
#define PG4 4
|
1183
|
+
#define PG3 3
|
1184
|
+
#define PG2 2
|
1185
|
+
#define PG1 1
|
1186
|
+
#define PG0 0
|
1187
|
+
|
1188
|
+
/* Port G Data Direction Register - DDRG */
|
1189
|
+
#define DDG4 4
|
1190
|
+
#define DDG3 3
|
1191
|
+
#define DDG2 2
|
1192
|
+
#define DDG1 1
|
1193
|
+
#define DDG0 0
|
1194
|
+
|
1195
|
+
/* Port G Input Pins - PING */
|
1196
|
+
#define PING4 4
|
1197
|
+
#define PING3 3
|
1198
|
+
#define PING2 2
|
1199
|
+
#define PING1 1
|
1200
|
+
#define PING0 0
|
1201
|
+
|
1202
|
+
/* EEPROM Control Register */
|
1203
|
+
#define EERIE 3
|
1204
|
+
#define EEMWE 2
|
1205
|
+
#define EEWE 1
|
1206
|
+
#define EERE 0
|
1207
|
+
|
1208
|
+
/* Constants */
|
1209
|
+
#define SPM_PAGESIZE 256
|
1210
|
+
#define RAMSTART 0x100
|
1211
|
+
#define RAMEND 0x10FF /* Last On-Chip SRAM Location */
|
1212
|
+
#define XRAMEND 0xFFFF
|
1213
|
+
#define E2END 0x07FF
|
1214
|
+
#define E2PAGESIZE 8
|
1215
|
+
#define FLASHEND 0xFFFF
|
1216
|
+
|
1217
|
+
|
1218
|
+
/* Fuses */
|
1219
|
+
|
1220
|
+
#define FUSE_MEMORY_SIZE 3
|
1221
|
+
|
1222
|
+
/* Low Fuse Byte */
|
1223
|
+
#define FUSE_CKSEL0 (unsigned char)~_BV(0)
|
1224
|
+
#define FUSE_CKSEL1 (unsigned char)~_BV(1)
|
1225
|
+
#define FUSE_CKSEL2 (unsigned char)~_BV(2)
|
1226
|
+
#define FUSE_CKSEL3 (unsigned char)~_BV(3)
|
1227
|
+
#define FUSE_SUT0 (unsigned char)~_BV(4)
|
1228
|
+
#define FUSE_SUT1 (unsigned char)~_BV(5)
|
1229
|
+
#define FUSE_BODEN (unsigned char)~_BV(6)
|
1230
|
+
#define FUSE_BODLEVEL (unsigned char)~_BV(7)
|
1231
|
+
#define LFUSE_DEFAULT (FUSE_CKSEL1 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0)
|
1232
|
+
|
1233
|
+
/* High Fuse Byte */
|
1234
|
+
#define FUSE_BOOTRST (unsigned char)~_BV(0)
|
1235
|
+
#define FUSE_BOOTSZ0 (unsigned char)~_BV(1)
|
1236
|
+
#define FUSE_BOOTSZ1 (unsigned char)~_BV(2)
|
1237
|
+
#define FUSE_EESAVE (unsigned char)~_BV(3)
|
1238
|
+
#define FUSE_CKOPT (unsigned char)~_BV(4)
|
1239
|
+
#define FUSE_SPIEN (unsigned char)~_BV(5)
|
1240
|
+
#define FUSE_JTAGEN (unsigned char)~_BV(6)
|
1241
|
+
#define FUSE_OCDEN (unsigned char)~_BV(7)
|
1242
|
+
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
|
1243
|
+
|
1244
|
+
/* Extended Fuse Byte */
|
1245
|
+
#define FUSE_WDTON (unsigned char)~_BV(0)
|
1246
|
+
#define FUSE_M103C (unsigned char)~_BV(1)
|
1247
|
+
#define EFUSE_DEFAULT (FUSE_M103C)
|
1248
|
+
|
1249
|
+
|
1250
|
+
/* Lock Bits */
|
1251
|
+
#define __LOCK_BITS_EXIST
|
1252
|
+
#define __BOOT_LOCK_BITS_0_EXIST
|
1253
|
+
#define __BOOT_LOCK_BITS_1_EXIST
|
1254
|
+
|
1255
|
+
|
1256
|
+
/* Signature */
|
1257
|
+
#define SIGNATURE_0 0x1E
|
1258
|
+
#define SIGNATURE_1 0x96
|
1259
|
+
#define SIGNATURE_2 0x02
|
1260
|
+
|
1261
|
+
|
1262
|
+
/* Deprecated items */
|
1263
|
+
#if !defined(__AVR_LIBC_DEPRECATED_ENABLE__)
|
1264
|
+
|
1265
|
+
#pragma GCC system_header
|
1266
|
+
|
1267
|
+
#pragma GCC poison SIG_INTERRUPT0
|
1268
|
+
#pragma GCC poison SIG_INTERRUPT1
|
1269
|
+
#pragma GCC poison SIG_INTERRUPT2
|
1270
|
+
#pragma GCC poison SIG_INTERRUPT3
|
1271
|
+
#pragma GCC poison SIG_INTERRUPT4
|
1272
|
+
#pragma GCC poison SIG_INTERRUPT5
|
1273
|
+
#pragma GCC poison SIG_INTERRUPT6
|
1274
|
+
#pragma GCC poison SIG_INTERRUPT7
|
1275
|
+
#pragma GCC poison SIG_OUTPUT_COMPARE2
|
1276
|
+
#pragma GCC poison SIG_OVERFLOW2
|
1277
|
+
#pragma GCC poison SIG_INPUT_CAPTURE1
|
1278
|
+
#pragma GCC poison SIG_OUTPUT_COMPARE1A
|
1279
|
+
#pragma GCC poison SIG_OUTPUT_COMPARE1B
|
1280
|
+
#pragma GCC poison SIG_OVERFLOW1
|
1281
|
+
#pragma GCC poison SIG_OUTPUT_COMPARE0
|
1282
|
+
#pragma GCC poison SIG_OVERFLOW0
|
1283
|
+
#pragma GCC poison SIG_SPI
|
1284
|
+
#pragma GCC poison SIG_UART0_RECV
|
1285
|
+
#pragma GCC poison SIG_UART0_DATA
|
1286
|
+
#pragma GCC poison SIG_UART0_TRANS
|
1287
|
+
#pragma GCC poison SIG_ADC
|
1288
|
+
#pragma GCC poison SIG_EEPROM_READY
|
1289
|
+
#pragma GCC poison SIG_COMPARATOR
|
1290
|
+
#pragma GCC poison SIG_OUTPUT_COMPARE1C
|
1291
|
+
#pragma GCC poison SIG_INPUT_CAPTURE3
|
1292
|
+
#pragma GCC poison SIG_OUTPUT_COMPARE3A
|
1293
|
+
#pragma GCC poison SIG_OUTPUT_COMPARE3B
|
1294
|
+
#pragma GCC poison SIG_OUTPUT_COMPARE3C
|
1295
|
+
#pragma GCC poison SIG_OVERFLOW3
|
1296
|
+
#pragma GCC poison SIG_UART1_RECV
|
1297
|
+
#pragma GCC poison SIG_UART1_DATA
|
1298
|
+
#pragma GCC poison SIG_UART1_TRANS
|
1299
|
+
#pragma GCC poison SIG_2WIRE_SERIAL
|
1300
|
+
#pragma GCC poison SIG_SPM_READY
|
1301
|
+
|
1302
|
+
#endif /* !defined(__AVR_LIBC_DEPRECATED_ENABLE__) */
|
1303
|
+
|
1304
|
+
#define SLEEP_MODE_IDLE (0x00<<2)
|
1305
|
+
#define SLEEP_MODE_ADC (0x02<<2)
|
1306
|
+
#define SLEEP_MODE_PWR_DOWN (0x04<<2)
|
1307
|
+
#define SLEEP_MODE_PWR_SAVE (0x06<<2)
|
1308
|
+
#define SLEEP_MODE_STANDBY (0x05<<2)
|
1309
|
+
#define SLEEP_MODE_EXT_STANDBY (0x07<<2)
|
1310
|
+
|
1311
|
+
#endif /* _AVR_IOM64_H_ */
|