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,740 @@
|
|
1
|
+
/*****************************************************************************
|
2
|
+
*
|
3
|
+
* Copyright (C) 2016 Atmel Corporation
|
4
|
+
* All rights reserved.
|
5
|
+
*
|
6
|
+
* Redistribution and use in source and binary forms, with or without
|
7
|
+
* modification, are permitted provided that the following conditions are met:
|
8
|
+
*
|
9
|
+
* * Redistributions of source code must retain the above copyright
|
10
|
+
* notice, this list of conditions and the following disclaimer.
|
11
|
+
*
|
12
|
+
* * Redistributions in binary form must reproduce the above copyright
|
13
|
+
* notice, this list of conditions and the following disclaimer in
|
14
|
+
* the documentation and/or other materials provided with the
|
15
|
+
* distribution.
|
16
|
+
*
|
17
|
+
* * Neither the name of the copyright holders nor the names of
|
18
|
+
* contributors may be used to endorse or promote products derived
|
19
|
+
* from this software without specific prior written permission.
|
20
|
+
*
|
21
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
22
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
23
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
24
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
25
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
26
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
27
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
28
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
29
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
30
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
31
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
32
|
+
****************************************************************************/
|
33
|
+
|
34
|
+
|
35
|
+
#ifndef _AVR_ATA6285_H_INCLUDED
|
36
|
+
#define _AVR_ATA6285_H_INCLUDED
|
37
|
+
|
38
|
+
|
39
|
+
#ifndef _AVR_IO_H_
|
40
|
+
# error "Include <avr/io.h> instead of this file."
|
41
|
+
#endif
|
42
|
+
|
43
|
+
#ifndef _AVR_IOXXX_H_
|
44
|
+
# define _AVR_IOXXX_H_ "ioa6285.h"
|
45
|
+
#else
|
46
|
+
# error "Attempt to include more than one <avr/ioXXX.h> file."
|
47
|
+
#endif
|
48
|
+
|
49
|
+
/* Registers and associated bit numbers */
|
50
|
+
|
51
|
+
#define PINB _SFR_IO8(0x03)
|
52
|
+
#define PINB7 7
|
53
|
+
#define PINB6 6
|
54
|
+
#define PINB5 5
|
55
|
+
#define PINB4 4
|
56
|
+
#define PINB3 3
|
57
|
+
#define PINB2 2
|
58
|
+
#define PINB1 1
|
59
|
+
#define PINB0 0
|
60
|
+
|
61
|
+
#define DDRB _SFR_IO8(0x04)
|
62
|
+
#define DDRB7 7
|
63
|
+
// Inserted "DDB7" from "DDRB7" due to compatibility
|
64
|
+
#define DDB7 7
|
65
|
+
#define DDRB6 6
|
66
|
+
// Inserted "DDB6" from "DDRB6" due to compatibility
|
67
|
+
#define DDB6 6
|
68
|
+
#define DDRB5 5
|
69
|
+
// Inserted "DDB5" from "DDRB5" due to compatibility
|
70
|
+
#define DDB5 5
|
71
|
+
#define DDRB4 4
|
72
|
+
// Inserted "DDB4" from "DDRB4" due to compatibility
|
73
|
+
#define DDB4 4
|
74
|
+
#define DDRB3 3
|
75
|
+
// Inserted "DDB3" from "DDRB3" due to compatibility
|
76
|
+
#define DDB3 3
|
77
|
+
#define DDRB2 2
|
78
|
+
// Inserted "DDB2" from "DDRB2" due to compatibility
|
79
|
+
#define DDB2 2
|
80
|
+
#define DDRB1 1
|
81
|
+
// Inserted "DDB1" from "DDRB1" due to compatibility
|
82
|
+
#define DDB1 1
|
83
|
+
#define DDRB0 0
|
84
|
+
// Inserted "DDB0" from "DDRB0" due to compatibility
|
85
|
+
#define DDB0 0
|
86
|
+
|
87
|
+
#define PORTB _SFR_IO8(0x05)
|
88
|
+
#define PORTB7 7
|
89
|
+
#define PORTB6 6
|
90
|
+
#define PORTB5 5
|
91
|
+
#define PORTB4 4
|
92
|
+
#define PORTB3 3
|
93
|
+
#define PORTB2 2
|
94
|
+
#define PORTB1 1
|
95
|
+
#define PORTB0 0
|
96
|
+
|
97
|
+
#define PINC _SFR_IO8(0x06)
|
98
|
+
#define PINC2 2
|
99
|
+
#define PINC1 1
|
100
|
+
#define PINC0 0
|
101
|
+
|
102
|
+
#define DDRC _SFR_IO8(0x07)
|
103
|
+
#define DDRC2 2
|
104
|
+
// Inserted "DDC2" from "DDRC2" due to compatibility
|
105
|
+
#define DDC2 2
|
106
|
+
#define DDRC1 1
|
107
|
+
// Inserted "DDC1" from "DDRC1" due to compatibility
|
108
|
+
#define DDC1 1
|
109
|
+
#define DDRC0 0
|
110
|
+
// Inserted "DDC0" from "DDRC0" due to compatibility
|
111
|
+
#define DDC0 0
|
112
|
+
|
113
|
+
#define PORTC _SFR_IO8(0x08)
|
114
|
+
#define PORTC2 2
|
115
|
+
#define PORTC1 1
|
116
|
+
#define PORTC0 0
|
117
|
+
|
118
|
+
#define PIND _SFR_IO8(0x09)
|
119
|
+
#define PIND7 7
|
120
|
+
#define PIND6 6
|
121
|
+
#define PIND5 5
|
122
|
+
#define PIND4 4
|
123
|
+
#define PIND3 3
|
124
|
+
#define PIND2 2
|
125
|
+
#define PIND1 1
|
126
|
+
#define PIND0 0
|
127
|
+
|
128
|
+
#define DDRD _SFR_IO8(0x0A)
|
129
|
+
#define DDRD7 7
|
130
|
+
// Inserted "DDD7" from "DDRD7" due to compatibility
|
131
|
+
#define DDD7 7
|
132
|
+
#define DDRD6 6
|
133
|
+
// Inserted "DDD6" from "DDRD6" due to compatibility
|
134
|
+
#define DDD6 6
|
135
|
+
#define DDRD5 5
|
136
|
+
// Inserted "DDD5" from "DDRD5" due to compatibility
|
137
|
+
#define DDD5 5
|
138
|
+
#define DDRD4 4
|
139
|
+
// Inserted "DDD4" from "DDRD4" due to compatibility
|
140
|
+
#define DDD4 4
|
141
|
+
#define DDRD3 3
|
142
|
+
// Inserted "DDD3" from "DDRD3" due to compatibility
|
143
|
+
#define DDD3 3
|
144
|
+
#define DDRD2 2
|
145
|
+
// Inserted "DDD2" from "DDRD2" due to compatibility
|
146
|
+
#define DDD2 2
|
147
|
+
#define DDRD1 1
|
148
|
+
// Inserted "DDD1" from "DDRD1" due to compatibility
|
149
|
+
#define DDD1 1
|
150
|
+
#define DDRD0 0
|
151
|
+
// Inserted "DDD0" from "DDRD0" due to compatibility
|
152
|
+
#define DDD0 0
|
153
|
+
|
154
|
+
#define PORTD _SFR_IO8(0x0B)
|
155
|
+
#define PORTD7 7
|
156
|
+
#define PORTD6 6
|
157
|
+
#define PORTD5 5
|
158
|
+
#define PORTD4 4
|
159
|
+
#define PORTD3 3
|
160
|
+
#define PORTD2 2
|
161
|
+
#define PORTD1 1
|
162
|
+
#define PORTD0 0
|
163
|
+
|
164
|
+
/* Reserved [0x0C..0x0E] */
|
165
|
+
|
166
|
+
#define CMCR _SFR_IO8(0x0F)
|
167
|
+
#define CMM0 0
|
168
|
+
#define CMM1 1
|
169
|
+
#define SRCD 2
|
170
|
+
#define CMONEN 3
|
171
|
+
#define CCS 4
|
172
|
+
#define ECINS 5
|
173
|
+
#define CMCCE 7
|
174
|
+
|
175
|
+
#define CMSR _SFR_IO8(0x10)
|
176
|
+
#define ECF 0
|
177
|
+
|
178
|
+
#define T2CRA _SFR_IO8(0x11)
|
179
|
+
#define T2OTM 0
|
180
|
+
#define T2CTM 1
|
181
|
+
#define T2CR 2
|
182
|
+
#define T2CRM 3
|
183
|
+
#define T2ICS 5
|
184
|
+
#define T2TS 6
|
185
|
+
#define T2E 7
|
186
|
+
|
187
|
+
#define T2CRB _SFR_IO8(0x12)
|
188
|
+
#define T2SCE 0
|
189
|
+
|
190
|
+
/* Reserved [0x13] */
|
191
|
+
|
192
|
+
#define T3CRA _SFR_IO8(0x14)
|
193
|
+
#define T3AC 0
|
194
|
+
#define T3SCE 1
|
195
|
+
#define T3CR 2
|
196
|
+
#define T3TS 6
|
197
|
+
#define T3E 7
|
198
|
+
|
199
|
+
/* Reserved [0x15] */
|
200
|
+
|
201
|
+
#define VMCSR _SFR_IO8(0x16)
|
202
|
+
#define VMEN 0
|
203
|
+
#define VMLS0 1
|
204
|
+
#define VMLS1 2
|
205
|
+
#define VMLS2 3
|
206
|
+
#define VMIM 4
|
207
|
+
#define VMF 5
|
208
|
+
#define BODPD 6
|
209
|
+
#define BODLS 7
|
210
|
+
|
211
|
+
#define PCIFR _SFR_IO8(0x17)
|
212
|
+
#define PCIF0 0
|
213
|
+
#define PCIF1 1
|
214
|
+
#define PCIF2 2
|
215
|
+
|
216
|
+
#define LFFR _SFR_IO8(0x18)
|
217
|
+
#define LFWPF 0
|
218
|
+
#define LFBF 1
|
219
|
+
#define LFEDF 2
|
220
|
+
#define LFRF 3
|
221
|
+
|
222
|
+
#define SSFR _SFR_IO8(0x19)
|
223
|
+
#define MSENF 0
|
224
|
+
#define MSENO 1
|
225
|
+
|
226
|
+
#define T10IFR _SFR_IO8(0x1A)
|
227
|
+
#define T0F 0
|
228
|
+
#define T1F 1
|
229
|
+
|
230
|
+
#define T2IFR _SFR_IO8(0x1B)
|
231
|
+
#define T2OFF 0
|
232
|
+
#define T2COF 1
|
233
|
+
#define T2ICF 2
|
234
|
+
#define T2RXF 3
|
235
|
+
#define T2TXF 4
|
236
|
+
#define T2TCF 5
|
237
|
+
|
238
|
+
#define T3IFR _SFR_IO8(0x1C)
|
239
|
+
#define T3OFF 0
|
240
|
+
#define T3COAF 1
|
241
|
+
#define T3COBF 2
|
242
|
+
#define T3ICF 3
|
243
|
+
|
244
|
+
#define EIFR _SFR_IO8(0x1D)
|
245
|
+
#define INTF0 0
|
246
|
+
#define INTF1 1
|
247
|
+
|
248
|
+
#define GPIOR0 _SFR_IO8(0x1E)
|
249
|
+
|
250
|
+
#define EECR _SFR_IO8(0x1F)
|
251
|
+
#define EERE 0
|
252
|
+
#define EEWE 1
|
253
|
+
#define EEMWE 2
|
254
|
+
#define EERIE 3
|
255
|
+
#define EEPM0 4
|
256
|
+
#define EEPM1 5
|
257
|
+
|
258
|
+
#define EEDR _SFR_IO8(0x20)
|
259
|
+
|
260
|
+
/* Combine EEARL and EEARH */
|
261
|
+
#define EEAR _SFR_IO16(0x21)
|
262
|
+
|
263
|
+
#define EEARL _SFR_IO8(0x21)
|
264
|
+
#define EEARH _SFR_IO8(0x22)
|
265
|
+
|
266
|
+
#define PCICR _SFR_IO8(0x23)
|
267
|
+
#define PCIE0 0
|
268
|
+
#define PCIE1 1
|
269
|
+
#define PCIE2 2
|
270
|
+
|
271
|
+
#define EIMSK _SFR_IO8(0x24)
|
272
|
+
#define INT0 0
|
273
|
+
#define INT1 1
|
274
|
+
|
275
|
+
/* Reserved [0x25..0x26] */
|
276
|
+
|
277
|
+
#define SVCR _SFR_IO8(0x27)
|
278
|
+
|
279
|
+
#define SCR _SFR_IO8(0x28)
|
280
|
+
#define SMS 0
|
281
|
+
#define SEN0 1
|
282
|
+
#define SEN1 2
|
283
|
+
#define SMEN 3
|
284
|
+
|
285
|
+
#define SCCR _SFR_IO8(0x29)
|
286
|
+
#define SRCC0 0
|
287
|
+
#define SRCC1 1
|
288
|
+
#define SCCS0 2
|
289
|
+
#define SCCS1 3
|
290
|
+
#define SCCS2 4
|
291
|
+
|
292
|
+
#define GPIOR1 _SFR_IO8(0x2A)
|
293
|
+
|
294
|
+
#define GPIOR2 _SFR_IO8(0x2B)
|
295
|
+
|
296
|
+
#define SPCR _SFR_IO8(0x2C)
|
297
|
+
#define SPR0 0
|
298
|
+
#define SPR1 1
|
299
|
+
#define CPHA 2
|
300
|
+
#define CPOL 3
|
301
|
+
#define MSTR 4
|
302
|
+
#define DORD 5
|
303
|
+
#define SPE 6
|
304
|
+
#define SPIE 7
|
305
|
+
|
306
|
+
#define SPSR _SFR_IO8(0x2D)
|
307
|
+
#define SPI2X 0
|
308
|
+
#define WCOL 6
|
309
|
+
#define SPIF 7
|
310
|
+
|
311
|
+
#define SPDR _SFR_IO8(0x2E)
|
312
|
+
|
313
|
+
#define T2MDR _SFR_IO8(0x2F)
|
314
|
+
|
315
|
+
#define LFRR _SFR_IO8(0x30)
|
316
|
+
|
317
|
+
/* Reserved [0x31] */
|
318
|
+
|
319
|
+
#define LFCDR _SFR_IO8(0x32)
|
320
|
+
#define LFDO 0
|
321
|
+
#define LFRST 6
|
322
|
+
#define LFSCE 7
|
323
|
+
|
324
|
+
#define SMCR _SFR_IO8(0x33)
|
325
|
+
#define SE 0
|
326
|
+
#define SM0 1
|
327
|
+
#define SM1 2
|
328
|
+
#define SM2 3
|
329
|
+
|
330
|
+
#define MCUSR _SFR_IO8(0x34)
|
331
|
+
#define PORF 0
|
332
|
+
#define EXTRF 1
|
333
|
+
#define BORF 2
|
334
|
+
#define WDRF 3
|
335
|
+
#define TSRF 5
|
336
|
+
|
337
|
+
#define MCUCR _SFR_IO8(0x35)
|
338
|
+
#define IVCE 0
|
339
|
+
#define IVSEL 1
|
340
|
+
#define PUD 4
|
341
|
+
|
342
|
+
#define LFRB _SFR_IO8(0x36)
|
343
|
+
|
344
|
+
#define SPMCSR _SFR_IO8(0x37)
|
345
|
+
#define SELFPRGEN 0
|
346
|
+
#define PGERS 1
|
347
|
+
#define PGWRT 2
|
348
|
+
#define BLBSET 3
|
349
|
+
#define RWWSRE 4
|
350
|
+
#define RWWSB 6
|
351
|
+
#define SPMIE 7
|
352
|
+
|
353
|
+
#define T1CR _SFR_IO8(0x38)
|
354
|
+
#define T1PS0 0
|
355
|
+
#define T1PS1 1
|
356
|
+
#define T1PS2 2
|
357
|
+
#define T1CS0 3
|
358
|
+
#define T1CS1 4
|
359
|
+
#define T1CS2 5
|
360
|
+
#define T1IE 7
|
361
|
+
|
362
|
+
#define T0CR _SFR_IO8(0x39)
|
363
|
+
#define T0PAS0 0
|
364
|
+
#define T0PAS1 1
|
365
|
+
#define T0PAS2 2
|
366
|
+
#define T0IE 3
|
367
|
+
#define T0PR 4
|
368
|
+
#define T0PBS0 5
|
369
|
+
#define T0PBS1 6
|
370
|
+
#define T0PBS2 7
|
371
|
+
|
372
|
+
/* Reserved [0x3A] */
|
373
|
+
|
374
|
+
#define CMIMR _SFR_IO8(0x3B)
|
375
|
+
#define ECIE 0
|
376
|
+
|
377
|
+
#define CLKPR _SFR_IO8(0x3C)
|
378
|
+
#define CLKPS0 0
|
379
|
+
#define CLKPS1 1
|
380
|
+
#define CLKPS2 2
|
381
|
+
#define CLTPS0 3
|
382
|
+
#define CLTPS1 4
|
383
|
+
#define CLTPS2 5
|
384
|
+
#define CLPCE 7
|
385
|
+
|
386
|
+
/* SP [0x3D..0x3E] */
|
387
|
+
|
388
|
+
/* SREG [0x3F] */
|
389
|
+
|
390
|
+
#define WDTCR _SFR_MEM8(0x60)
|
391
|
+
#define WDPS0 0
|
392
|
+
#define WDPS1 1
|
393
|
+
#define WDPS2 2
|
394
|
+
#define WDE 3
|
395
|
+
#define WDCE 4
|
396
|
+
|
397
|
+
#define SIMSK _SFR_MEM8(0x61)
|
398
|
+
#define MSIE 0
|
399
|
+
|
400
|
+
/* Reserved [0x62..0x63] */
|
401
|
+
|
402
|
+
#define TSCR _SFR_MEM8(0x64)
|
403
|
+
#define TSSD 0
|
404
|
+
|
405
|
+
#define SRCCAL _SFR_MEM8(0x65)
|
406
|
+
|
407
|
+
#define FRCCAL _SFR_MEM8(0x66)
|
408
|
+
|
409
|
+
#define MSVCAL _SFR_MEM8(0x67)
|
410
|
+
|
411
|
+
/* Reserved [0x68] */
|
412
|
+
|
413
|
+
#define EICRA _SFR_MEM8(0x69)
|
414
|
+
#define ISC00 0
|
415
|
+
#define ISC01 1
|
416
|
+
#define ISC10 2
|
417
|
+
#define ISC11 3
|
418
|
+
|
419
|
+
#define PCMSK0 _SFR_MEM8(0x6A)
|
420
|
+
#define PCINT0 0
|
421
|
+
#define PCINT1 1
|
422
|
+
#define PCINT2 2
|
423
|
+
#define PCINT3 3
|
424
|
+
#define PCINT4 4
|
425
|
+
#define PCINT5 5
|
426
|
+
#define PCINT6 6
|
427
|
+
#define PCINT7 7
|
428
|
+
|
429
|
+
#define PCMSK1 _SFR_MEM8(0x6B)
|
430
|
+
#define PCINT8 0
|
431
|
+
#define PCINT9 1
|
432
|
+
#define PCINT10 2
|
433
|
+
|
434
|
+
#define PCMSK2 _SFR_MEM8(0x6C)
|
435
|
+
#define PCINT16 0
|
436
|
+
#define PCINT17 1
|
437
|
+
#define PCINT18 2
|
438
|
+
#define PCINT19 3
|
439
|
+
#define PCINT20 4
|
440
|
+
#define PCINT21 5
|
441
|
+
#define PCINT22 6
|
442
|
+
#define PCINT23 7
|
443
|
+
|
444
|
+
/* Reserved [0x6D] */
|
445
|
+
|
446
|
+
#define T2ICRL _SFR_MEM8(0x6E)
|
447
|
+
|
448
|
+
#define T2ICR _SFR_MEM8(0x6F)
|
449
|
+
|
450
|
+
/* Combine T2CORL and T2CORH */
|
451
|
+
#define T2COR _SFR_MEM16(0x70)
|
452
|
+
|
453
|
+
#define T2CORL _SFR_MEM8(0x70)
|
454
|
+
#define T2CORH _SFR_MEM8(0x71)
|
455
|
+
|
456
|
+
#define T2MRA _SFR_MEM8(0x72)
|
457
|
+
#define T2CS0 0
|
458
|
+
#define T2CS1 1
|
459
|
+
#define T2CS2 2
|
460
|
+
#define T2CE0 3
|
461
|
+
#define T2CE1 4
|
462
|
+
#define T2CNC 5
|
463
|
+
#define T2TP0 6
|
464
|
+
#define T2TP1 7
|
465
|
+
|
466
|
+
#define T2MRB _SFR_MEM8(0x73)
|
467
|
+
#define T2M0 0
|
468
|
+
#define T2M1 1
|
469
|
+
#define T2M2 2
|
470
|
+
#define T2M3 3
|
471
|
+
#define T2TOP 4
|
472
|
+
#define T2CPOL 6
|
473
|
+
#define T2SSIE 7
|
474
|
+
|
475
|
+
#define T2IMR _SFR_MEM8(0x74)
|
476
|
+
#define T2OIM 0
|
477
|
+
#define T2CIM 1
|
478
|
+
#define T2CPIM 2
|
479
|
+
#define T2RXIM 3
|
480
|
+
#define T2TXIM 4
|
481
|
+
#define T2TCIM 5
|
482
|
+
|
483
|
+
/* Reserved [0x75] */
|
484
|
+
|
485
|
+
/* Combine T3ICRL and T3ICRH */
|
486
|
+
#define T3ICR _SFR_MEM16(0x76)
|
487
|
+
|
488
|
+
#define T3ICRL _SFR_MEM8(0x76)
|
489
|
+
#define T3ICRH _SFR_MEM8(0x77)
|
490
|
+
|
491
|
+
/* Combine T3CORAL and T3CORAH */
|
492
|
+
#define T3CORA _SFR_MEM16(0x78)
|
493
|
+
|
494
|
+
#define T3CORAL _SFR_MEM8(0x78)
|
495
|
+
#define T3CORAH _SFR_MEM8(0x79)
|
496
|
+
|
497
|
+
/* Combine T3CORBL and T3CORBH */
|
498
|
+
#define T3CORB _SFR_MEM16(0x7A)
|
499
|
+
|
500
|
+
#define T3CORBL _SFR_MEM8(0x7A)
|
501
|
+
#define T3CORBH _SFR_MEM8(0x7B)
|
502
|
+
|
503
|
+
#define T3MRA _SFR_MEM8(0x7C)
|
504
|
+
#define T3CS0 0
|
505
|
+
#define T3CS1 1
|
506
|
+
#define T3CS2 2
|
507
|
+
#define T3CE0 3
|
508
|
+
#define T3CE1 4
|
509
|
+
#define T3CNC 5
|
510
|
+
#define T3ICS0 6
|
511
|
+
#define T3ICS1 7
|
512
|
+
|
513
|
+
#define T3MRB _SFR_MEM8(0x7D)
|
514
|
+
#define T3M0 0
|
515
|
+
#define T3M1 1
|
516
|
+
#define T3M2 2
|
517
|
+
#define T3TOP 4
|
518
|
+
|
519
|
+
#define T3CRB _SFR_MEM8(0x7E)
|
520
|
+
#define T3CTMA 0
|
521
|
+
#define T3SAMA 1
|
522
|
+
#define T3CRMA 2
|
523
|
+
#define T3CTMB 3
|
524
|
+
#define T3SAMB 4
|
525
|
+
#define T3CRMB 5
|
526
|
+
#define T3CPRM 6
|
527
|
+
|
528
|
+
#define T3IMR _SFR_MEM8(0x7F)
|
529
|
+
#define T3OIM 0
|
530
|
+
#define T3CAIM 1
|
531
|
+
#define T3CBIM 2
|
532
|
+
#define T3CPIM 3
|
533
|
+
|
534
|
+
/* Reserved [0x80] */
|
535
|
+
|
536
|
+
#define LFIMR _SFR_MEM8(0x81)
|
537
|
+
#define LFWIM 0
|
538
|
+
#define LFBIM 1
|
539
|
+
#define LFEIM 2
|
540
|
+
|
541
|
+
#define LFRCR _SFR_MEM8(0x82)
|
542
|
+
#define LFEN 0
|
543
|
+
#define LFBM 1
|
544
|
+
#define LFWM0 2
|
545
|
+
#define LFWM1 3
|
546
|
+
#define LFRSS 4
|
547
|
+
#define LFCS0 5
|
548
|
+
#define LFCS1 6
|
549
|
+
#define LFCS2 7
|
550
|
+
|
551
|
+
#define LFHCR _SFR_MEM8(0x83)
|
552
|
+
|
553
|
+
/* Combine LFIDCL and LFIDCH */
|
554
|
+
#define LFIDC _SFR_MEM16(0x84)
|
555
|
+
|
556
|
+
#define LFIDCL _SFR_MEM8(0x84)
|
557
|
+
#define LFIDCH _SFR_MEM8(0x85)
|
558
|
+
|
559
|
+
/* Combine LFCALL and LFCALH */
|
560
|
+
#define LFCAL _SFR_MEM16(0x86)
|
561
|
+
|
562
|
+
#define LFCALL _SFR_MEM8(0x86)
|
563
|
+
#define LFCALH _SFR_MEM8(0x87)
|
564
|
+
|
565
|
+
|
566
|
+
|
567
|
+
/* Values and associated defines */
|
568
|
+
|
569
|
+
|
570
|
+
#define SLEEP_MODE_IDLE (0x00<<1)
|
571
|
+
#define SLEEP_MODE_SENSOR_NOISE_REDUCTION (0x01<<1)
|
572
|
+
#define SLEEP_MODE_PWR_DOWN (0x02<<1)
|
573
|
+
|
574
|
+
/* Interrupt vectors */
|
575
|
+
/* Vector 0 is the reset vector */
|
576
|
+
/* External Interrupt Request 0 */
|
577
|
+
#define INT0_vect _VECTOR(1)
|
578
|
+
#define INT0_vect_num 1
|
579
|
+
|
580
|
+
/* External Interrupt Request 1 */
|
581
|
+
#define INT1_vect _VECTOR(2)
|
582
|
+
#define INT1_vect_num 2
|
583
|
+
|
584
|
+
/* Pin Change Interrupt Request 0 */
|
585
|
+
#define PCINT0_vect _VECTOR(3)
|
586
|
+
#define PCINT0_vect_num 3
|
587
|
+
|
588
|
+
/* Pin Change Interrupt Request 1 */
|
589
|
+
#define PCINT1_vect _VECTOR(4)
|
590
|
+
#define PCINT1_vect_num 4
|
591
|
+
|
592
|
+
/* Pin Change Interrupt Request 2 */
|
593
|
+
#define PCINT2_vect _VECTOR(5)
|
594
|
+
#define PCINT2_vect_num 5
|
595
|
+
|
596
|
+
/* Voltage Monitor Interrupt */
|
597
|
+
#define INTVM_vect _VECTOR(6)
|
598
|
+
#define INTVM_vect_num 6
|
599
|
+
|
600
|
+
/* Sensor Interface Interrupt */
|
601
|
+
#define SENINT_vect _VECTOR(7)
|
602
|
+
#define SENINT_vect_num 7
|
603
|
+
|
604
|
+
/* Timer0 Interval Interrupt */
|
605
|
+
#define INTT0_vect _VECTOR(8)
|
606
|
+
#define INTT0_vect_num 8
|
607
|
+
|
608
|
+
/* LF-Receiver Wake-up Interrupt */
|
609
|
+
#define LFWP_vect _VECTOR(9)
|
610
|
+
#define LFWP_vect_num 9
|
611
|
+
|
612
|
+
/* Timer/Counter3 Capture Event */
|
613
|
+
#define T3CAP_vect _VECTOR(10)
|
614
|
+
#define T3CAP_vect_num 10
|
615
|
+
|
616
|
+
/* Timer/Counter3 Compare Match A */
|
617
|
+
#define T3COMA_vect _VECTOR(11)
|
618
|
+
#define T3COMA_vect_num 11
|
619
|
+
|
620
|
+
/* Timer/Counter3 Compare Match B */
|
621
|
+
#define T3COMB_vect _VECTOR(12)
|
622
|
+
#define T3COMB_vect_num 12
|
623
|
+
|
624
|
+
/* Timer/Counter3 Overflow */
|
625
|
+
#define T3OVF_vect _VECTOR(13)
|
626
|
+
#define T3OVF_vect_num 13
|
627
|
+
|
628
|
+
/* Timer/Counter2 Capture Event */
|
629
|
+
#define T2CAP_vect _VECTOR(14)
|
630
|
+
#define T2CAP_vect_num 14
|
631
|
+
|
632
|
+
/* Timer/Counter2 Compare Match */
|
633
|
+
#define T2COM_vect _VECTOR(15)
|
634
|
+
#define T2COM_vect_num 15
|
635
|
+
|
636
|
+
/* Timer/Counter2 Overflow */
|
637
|
+
#define T2OVF_vect _VECTOR(16)
|
638
|
+
#define T2OVF_vect_num 16
|
639
|
+
|
640
|
+
/* SPI Serial Transfer Complete */
|
641
|
+
#define SPISTC_vect _VECTOR(17)
|
642
|
+
#define SPISTC_vect_num 17
|
643
|
+
|
644
|
+
/* LF Receive Buffer Interrupt */
|
645
|
+
#define LFRXB_vect _VECTOR(18)
|
646
|
+
#define LFRXB_vect_num 18
|
647
|
+
|
648
|
+
/* Timer1 Interval Interrupt */
|
649
|
+
#define INTT1_vect _VECTOR(19)
|
650
|
+
#define INTT1_vect_num 19
|
651
|
+
|
652
|
+
/* Timer2 SSI Receive Buffer Interrupt */
|
653
|
+
#define T2RXB_vect _VECTOR(20)
|
654
|
+
#define T2RXB_vect_num 20
|
655
|
+
|
656
|
+
/* Timer2 SSI Transmit Buffer Interrupt */
|
657
|
+
#define T2TXB_vect _VECTOR(21)
|
658
|
+
#define T2TXB_vect_num 21
|
659
|
+
|
660
|
+
/* Timer2 SSI Transmit Complete Interrupt */
|
661
|
+
#define T2TXC_vect _VECTOR(22)
|
662
|
+
#define T2TXC_vect_num 22
|
663
|
+
|
664
|
+
/* LF-Receiver End of Burst Interrupt */
|
665
|
+
#define LFREOB_vect _VECTOR(23)
|
666
|
+
#define LFREOB_vect_num 23
|
667
|
+
|
668
|
+
/* External Input Clock break down Interrupt */
|
669
|
+
#define EXCM_vect _VECTOR(24)
|
670
|
+
#define EXCM_vect_num 24
|
671
|
+
|
672
|
+
/* EEPROM Ready Interrupt */
|
673
|
+
#define EEREADY_vect _VECTOR(25)
|
674
|
+
#define EEREADY_vect_num 25
|
675
|
+
|
676
|
+
/* Store Program Memory Ready */
|
677
|
+
#define SPM_RDY_vect _VECTOR(26)
|
678
|
+
#define SPM_RDY_vect_num 26
|
679
|
+
|
680
|
+
#define _VECTORS_SIZE 54
|
681
|
+
|
682
|
+
|
683
|
+
/* Constants */
|
684
|
+
|
685
|
+
#define SPM_PAGESIZE 64
|
686
|
+
#define FLASHSTART 0x0000
|
687
|
+
#define FLASHEND 0x1FFF
|
688
|
+
#define RAMSTART 0x0100
|
689
|
+
#define RAMSIZE 512
|
690
|
+
#define RAMEND 0x02FF
|
691
|
+
#define E2START 0
|
692
|
+
#define E2SIZE 320
|
693
|
+
#define E2PAGESIZE 4
|
694
|
+
#define E2END 0x013F
|
695
|
+
#define XRAMEND RAMEND
|
696
|
+
|
697
|
+
|
698
|
+
/* Fuses */
|
699
|
+
|
700
|
+
#define FUSE_MEMORY_SIZE 2
|
701
|
+
|
702
|
+
/* Low Fuse Byte */
|
703
|
+
#define FUSE_TSRDI (unsigned char)~_BV(0)
|
704
|
+
#define FUSE_BODEN (unsigned char)~_BV(1)
|
705
|
+
#define FUSE_FRCFS (unsigned char)~_BV(2)
|
706
|
+
#define FUSE_WDRCON (unsigned char)~_BV(3)
|
707
|
+
#define FUSE_SUT_CKSEL0 (unsigned char)~_BV(4)
|
708
|
+
#define FUSE_SUT_CKSEL1 (unsigned char)~_BV(5)
|
709
|
+
#define FUSE_CKOUT (unsigned char)~_BV(6)
|
710
|
+
#define FUSE_CKDIV8 (unsigned char)~_BV(7)
|
711
|
+
#define LFUSE_DEFAULT (FUSE_BODEN & FUSE_FRCFS & FUSE_WDRCON & FUSE_SUT_CKSEL0 & FUSE_CKDIV8)
|
712
|
+
|
713
|
+
|
714
|
+
/* High Fuse Byte */
|
715
|
+
#define FUSE_BOOTRST (unsigned char)~_BV(0)
|
716
|
+
#define FUSE_BOOTSZ0 (unsigned char)~_BV(1)
|
717
|
+
#define FUSE_BOOTSZ1 (unsigned char)~_BV(2)
|
718
|
+
#define FUSE_EESAVE (unsigned char)~_BV(3)
|
719
|
+
#define FUSE_WDTON (unsigned char)~_BV(4)
|
720
|
+
#define FUSE_SPIEN (unsigned char)~_BV(5)
|
721
|
+
#define FUSE_DWEN (unsigned char)~_BV(6)
|
722
|
+
#define FUSE_EELOCK (unsigned char)~_BV(7)
|
723
|
+
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN)
|
724
|
+
|
725
|
+
|
726
|
+
|
727
|
+
/* Lock Bits */
|
728
|
+
#define __LOCK_BITS_EXIST
|
729
|
+
#define __BOOT_LOCK_BITS_0_EXIST
|
730
|
+
#define __BOOT_LOCK_BITS_1_EXIST
|
731
|
+
|
732
|
+
|
733
|
+
/* Signature */
|
734
|
+
#define SIGNATURE_0 0x1E
|
735
|
+
#define SIGNATURE_1 0x93
|
736
|
+
#define SIGNATURE_2 0x82
|
737
|
+
|
738
|
+
|
739
|
+
#endif /* #ifdef _AVR_ATA6285_H_INCLUDED */
|
740
|
+
|