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,1625 @@
|
|
1
|
+
/* Copyright (c) 2008-2009 Atmel Corporation
|
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: iom32m1.h 2235 2011-03-17 04:13:14Z arcanum $ */
|
32
|
+
|
33
|
+
/* avr/iom32m1.h - definitions for ATmega32M1 */
|
34
|
+
|
35
|
+
/* This file should only be included from <avr/io.h>, never directly. */
|
36
|
+
|
37
|
+
#ifndef _AVR_IO_H_
|
38
|
+
# error "Include <avr/io.h> instead of this file."
|
39
|
+
#endif
|
40
|
+
|
41
|
+
#ifndef _AVR_IOXXX_H_
|
42
|
+
# define _AVR_IOXXX_H_ "iom32m1.h"
|
43
|
+
#else
|
44
|
+
# error "Attempt to include more than one <avr/ioXXX.h> file."
|
45
|
+
#endif
|
46
|
+
|
47
|
+
|
48
|
+
#ifndef _AVR_ATmega32M1_H_
|
49
|
+
#define _AVR_ATmega32M1_H_ 1
|
50
|
+
|
51
|
+
|
52
|
+
/* Registers and associated bit numbers. */
|
53
|
+
|
54
|
+
#define PINB _SFR_IO8(0x03)
|
55
|
+
#define PINB0 0
|
56
|
+
#define PINB1 1
|
57
|
+
#define PINB2 2
|
58
|
+
#define PINB3 3
|
59
|
+
#define PINB4 4
|
60
|
+
#define PINB5 5
|
61
|
+
#define PINB6 6
|
62
|
+
#define PINB7 7
|
63
|
+
|
64
|
+
#define DDRB _SFR_IO8(0x04)
|
65
|
+
#define DDB0 0
|
66
|
+
#define DDB1 1
|
67
|
+
#define DDB2 2
|
68
|
+
#define DDB3 3
|
69
|
+
#define DDB4 4
|
70
|
+
#define DDB5 5
|
71
|
+
#define DDB6 6
|
72
|
+
#define DDB7 7
|
73
|
+
|
74
|
+
#define PORTB _SFR_IO8(0x05)
|
75
|
+
#define PORTB0 0
|
76
|
+
#define PORTB1 1
|
77
|
+
#define PORTB2 2
|
78
|
+
#define PORTB3 3
|
79
|
+
#define PORTB4 4
|
80
|
+
#define PORTB5 5
|
81
|
+
#define PORTB6 6
|
82
|
+
#define PORTB7 7
|
83
|
+
|
84
|
+
#define PINC _SFR_IO8(0x06)
|
85
|
+
#define PINC0 0
|
86
|
+
#define PINC1 1
|
87
|
+
#define PINC2 2
|
88
|
+
#define PINC3 3
|
89
|
+
#define PINC4 4
|
90
|
+
#define PINC5 5
|
91
|
+
#define PINC6 6
|
92
|
+
#define PINC7 7
|
93
|
+
|
94
|
+
#define DDRC _SFR_IO8(0x07)
|
95
|
+
#define DDC0 0
|
96
|
+
#define DDC1 1
|
97
|
+
#define DDC2 2
|
98
|
+
#define DDC3 3
|
99
|
+
#define DDC4 4
|
100
|
+
#define DDC5 5
|
101
|
+
#define DDC6 6
|
102
|
+
#define DDC7 7
|
103
|
+
|
104
|
+
#define PORTC _SFR_IO8(0x08)
|
105
|
+
#define PORTC0 0
|
106
|
+
#define PORTC1 1
|
107
|
+
#define PORTC2 2
|
108
|
+
#define PORTC3 3
|
109
|
+
#define PORTC4 4
|
110
|
+
#define PORTC5 5
|
111
|
+
#define PORTC6 6
|
112
|
+
#define PORTC7 7
|
113
|
+
|
114
|
+
#define PIND _SFR_IO8(0x09)
|
115
|
+
#define PIND0 0
|
116
|
+
#define PIND1 1
|
117
|
+
#define PIND2 2
|
118
|
+
#define PIND3 3
|
119
|
+
#define PIND4 4
|
120
|
+
#define PIND5 5
|
121
|
+
#define PIND6 6
|
122
|
+
#define PIND7 7
|
123
|
+
|
124
|
+
#define DDRD _SFR_IO8(0x0A)
|
125
|
+
#define DDD0 0
|
126
|
+
#define DDD1 1
|
127
|
+
#define DDD2 2
|
128
|
+
#define DDD3 3
|
129
|
+
#define DDD4 4
|
130
|
+
#define DDD5 5
|
131
|
+
#define DDD6 6
|
132
|
+
#define DDD7 7
|
133
|
+
|
134
|
+
#define PORTD _SFR_IO8(0x0B)
|
135
|
+
#define PORTD0 0
|
136
|
+
#define PORTD1 1
|
137
|
+
#define PORTD2 2
|
138
|
+
#define PORTD3 3
|
139
|
+
#define PORTD4 4
|
140
|
+
#define PORTD5 5
|
141
|
+
#define PORTD6 6
|
142
|
+
#define PORTD7 7
|
143
|
+
|
144
|
+
#define PINE _SFR_IO8(0x0C)
|
145
|
+
#define PINE0 0
|
146
|
+
#define PINE1 1
|
147
|
+
#define PINE2 2
|
148
|
+
|
149
|
+
#define DDRE _SFR_IO8(0x0D)
|
150
|
+
#define DDE0 0
|
151
|
+
#define DDE1 1
|
152
|
+
#define DDE2 2
|
153
|
+
|
154
|
+
#define PORTE _SFR_IO8(0x0E)
|
155
|
+
#define PORTE0 0
|
156
|
+
#define PORTE1 1
|
157
|
+
#define PORTE2 2
|
158
|
+
|
159
|
+
#define TIFR0 _SFR_IO8(0x15)
|
160
|
+
#define TOV0 0
|
161
|
+
#define OCF0A 1
|
162
|
+
#define OCF0B 2
|
163
|
+
|
164
|
+
#define TIFR1 _SFR_IO8(0x16)
|
165
|
+
#define TOV1 0
|
166
|
+
#define OCF1A 1
|
167
|
+
#define OCF1B 2
|
168
|
+
#define ICF1 5
|
169
|
+
|
170
|
+
#define GPIOR1 _SFR_IO8(0x19)
|
171
|
+
#define GPIOR10 0
|
172
|
+
#define GPIOR11 1
|
173
|
+
#define GPIOR12 2
|
174
|
+
#define GPIOR13 3
|
175
|
+
#define GPIOR14 4
|
176
|
+
#define GPIOR15 5
|
177
|
+
#define GPIOR16 6
|
178
|
+
#define GPIOR17 7
|
179
|
+
|
180
|
+
#define GPIOR2 _SFR_IO8(0x1A)
|
181
|
+
#define GPIOR20 0
|
182
|
+
#define GPIOR21 1
|
183
|
+
#define GPIOR22 2
|
184
|
+
#define GPIOR23 3
|
185
|
+
#define GPIOR24 4
|
186
|
+
#define GPIOR25 5
|
187
|
+
#define GPIOR26 6
|
188
|
+
#define GPIOR27 7
|
189
|
+
|
190
|
+
#define PCIFR _SFR_IO8(0x1B)
|
191
|
+
#define PCIF0 0
|
192
|
+
#define PCIF1 1
|
193
|
+
#define PCIF2 2
|
194
|
+
#define PCIF3 3
|
195
|
+
|
196
|
+
#define EIFR _SFR_IO8(0x1C)
|
197
|
+
#define INTF0 0
|
198
|
+
#define INTF1 1
|
199
|
+
#define INTF2 2
|
200
|
+
#define INTF3 3
|
201
|
+
|
202
|
+
#define EIMSK _SFR_IO8(0x1D)
|
203
|
+
#define INT0 0
|
204
|
+
#define INT1 1
|
205
|
+
#define INT2 2
|
206
|
+
#define INT3 3
|
207
|
+
|
208
|
+
#define GPIOR0 _SFR_IO8(0x1E)
|
209
|
+
#define GPIOR00 0
|
210
|
+
#define GPIOR01 1
|
211
|
+
#define GPIOR02 2
|
212
|
+
#define GPIOR03 3
|
213
|
+
#define GPIOR04 4
|
214
|
+
#define GPIOR05 5
|
215
|
+
#define GPIOR06 6
|
216
|
+
#define GPIOR07 7
|
217
|
+
|
218
|
+
#define EECR _SFR_IO8(0x1F)
|
219
|
+
#define EERE 0
|
220
|
+
#define EEWE 1
|
221
|
+
#define EEMWE 2
|
222
|
+
#define EERIE 3
|
223
|
+
#define EEPM0 4
|
224
|
+
#define EEPM1 5
|
225
|
+
|
226
|
+
#define EEDR _SFR_IO8(0x20)
|
227
|
+
#define EEDR0 0
|
228
|
+
#define EEDR1 1
|
229
|
+
#define EEDR2 2
|
230
|
+
#define EEDR3 3
|
231
|
+
#define EEDR4 4
|
232
|
+
#define EEDR5 5
|
233
|
+
#define EEDR6 6
|
234
|
+
#define EEDR7 7
|
235
|
+
|
236
|
+
#define EEAR _SFR_IO16(0x21)
|
237
|
+
|
238
|
+
#define EEARL _SFR_IO8(0x21)
|
239
|
+
#define EEAR0 0
|
240
|
+
#define EEAR1 1
|
241
|
+
#define EEAR2 2
|
242
|
+
#define EEAR3 3
|
243
|
+
#define EEAR4 4
|
244
|
+
#define EEAR5 5
|
245
|
+
#define EEAR6 6
|
246
|
+
#define EEAR7 7
|
247
|
+
|
248
|
+
#define EEARH _SFR_IO8(0x22)
|
249
|
+
#define EEAR8 0
|
250
|
+
#define EEAR9 1
|
251
|
+
|
252
|
+
#define GTCCR _SFR_IO8(0x23)
|
253
|
+
#define PSR10 0
|
254
|
+
#define PSRSYNC 0
|
255
|
+
#define ICPSEL1 6
|
256
|
+
#define TSM 7
|
257
|
+
|
258
|
+
#define TCCR0A _SFR_IO8(0x24)
|
259
|
+
#define WGM00 0
|
260
|
+
#define WGM01 1
|
261
|
+
#define COM0B0 4
|
262
|
+
#define COM0B1 5
|
263
|
+
#define COM0A0 6
|
264
|
+
#define COM0A1 7
|
265
|
+
|
266
|
+
#define TCCR0B _SFR_IO8(0x25)
|
267
|
+
#define CS00 0
|
268
|
+
#define CS01 1
|
269
|
+
#define CS02 2
|
270
|
+
#define WGM02 3
|
271
|
+
#define FOC0B 6
|
272
|
+
#define FOC0A 7
|
273
|
+
|
274
|
+
#define TCNT0 _SFR_IO8(0x26)
|
275
|
+
#define TCNT0_0 0
|
276
|
+
#define TCNT0_1 1
|
277
|
+
#define TCNT0_2 2
|
278
|
+
#define TCNT0_3 3
|
279
|
+
#define TCNT0_4 4
|
280
|
+
#define TCNT0_5 5
|
281
|
+
#define TCNT0_6 6
|
282
|
+
#define TCNT0_7 7
|
283
|
+
|
284
|
+
#define OCR0A _SFR_IO8(0x27)
|
285
|
+
#define OCR0A_0 0
|
286
|
+
#define OCR0A_1 1
|
287
|
+
#define OCR0A_2 2
|
288
|
+
#define OCR0A_3 3
|
289
|
+
#define OCR0A_4 4
|
290
|
+
#define OCR0A_5 5
|
291
|
+
#define OCR0A_6 6
|
292
|
+
#define OCR0A_7 7
|
293
|
+
|
294
|
+
#define OCR0B _SFR_IO8(0x28)
|
295
|
+
#define OCR0B_0 0
|
296
|
+
#define OCR0B_1 1
|
297
|
+
#define OCR0B_2 2
|
298
|
+
#define OCR0B_3 3
|
299
|
+
#define OCR0B_4 4
|
300
|
+
#define OCR0B_5 5
|
301
|
+
#define OCR0B_6 6
|
302
|
+
#define OCR0B_7 7
|
303
|
+
|
304
|
+
#define PLLCSR _SFR_IO8(0x29)
|
305
|
+
#define PLOCK 0
|
306
|
+
#define PLLE 1
|
307
|
+
#define PLLF 2
|
308
|
+
|
309
|
+
#define SPCR _SFR_IO8(0x2C)
|
310
|
+
#define SPR0 0
|
311
|
+
#define SPR1 1
|
312
|
+
#define CPHA 2
|
313
|
+
#define CPOL 3
|
314
|
+
#define MSTR 4
|
315
|
+
#define DORD 5
|
316
|
+
#define SPE 6
|
317
|
+
#define SPIE 7
|
318
|
+
|
319
|
+
#define SPSR _SFR_IO8(0x2D)
|
320
|
+
#define SPI2X 0
|
321
|
+
#define WCOL 6
|
322
|
+
#define SPIF 7
|
323
|
+
|
324
|
+
#define SPDR _SFR_IO8(0x2E)
|
325
|
+
#define SPDR0 0
|
326
|
+
#define SPDR1 1
|
327
|
+
#define SPDR2 2
|
328
|
+
#define SPDR3 3
|
329
|
+
#define SPDR4 4
|
330
|
+
#define SPDR5 5
|
331
|
+
#define SPDR6 6
|
332
|
+
#define SPDR7 7
|
333
|
+
|
334
|
+
#define ACSR _SFR_IO8(0x30)
|
335
|
+
#define AC0O 0
|
336
|
+
#define AC1O 1
|
337
|
+
#define AC2O 2
|
338
|
+
#define AC3O 3
|
339
|
+
#define AC0IF 4
|
340
|
+
#define AC1IF 5
|
341
|
+
#define AC2IF 6
|
342
|
+
#define AC3IF 7
|
343
|
+
|
344
|
+
#define DWDR _SFR_IO8(0x31)
|
345
|
+
|
346
|
+
#define SMCR _SFR_IO8(0x33)
|
347
|
+
#define SE 0
|
348
|
+
#define SM0 1
|
349
|
+
#define SM1 2
|
350
|
+
#define SM2 3
|
351
|
+
|
352
|
+
#define MCUSR _SFR_IO8(0x34)
|
353
|
+
#define PORF 0
|
354
|
+
#define EXTRF 1
|
355
|
+
#define BORF 2
|
356
|
+
#define WDRF 3
|
357
|
+
|
358
|
+
#define MCUCR _SFR_IO8(0x35)
|
359
|
+
#define IVCE 0
|
360
|
+
#define IVSEL 1
|
361
|
+
#define PUD 4
|
362
|
+
#define SPIPS 7
|
363
|
+
|
364
|
+
#define SPMCSR _SFR_IO8(0x37)
|
365
|
+
#define SPMEN 0
|
366
|
+
#define PGERS 1
|
367
|
+
#define PGWRT 2
|
368
|
+
#define BLBSET 3
|
369
|
+
#define RWWSRE 4
|
370
|
+
#define SIGRD 5
|
371
|
+
#define RWWSB 6
|
372
|
+
#define SPMIE 7
|
373
|
+
|
374
|
+
#define WDTCSR _SFR_MEM8(0x60)
|
375
|
+
#define WDP0 0
|
376
|
+
#define WDP1 1
|
377
|
+
#define WDP2 2
|
378
|
+
#define WDE 3
|
379
|
+
#define WDCE 4
|
380
|
+
#define WDP3 5
|
381
|
+
#define WDIE 6
|
382
|
+
#define WDIF 7
|
383
|
+
|
384
|
+
#define CLKPR _SFR_MEM8(0x61)
|
385
|
+
#define CLKPS0 0
|
386
|
+
#define CLKPS1 1
|
387
|
+
#define CLKPS2 2
|
388
|
+
#define CLKPS3 3
|
389
|
+
#define CLKPCE 7
|
390
|
+
|
391
|
+
#define PRR _SFR_MEM8(0x64)
|
392
|
+
#define PRADC 0
|
393
|
+
#define PRLIN 1
|
394
|
+
#define PRSPI 2
|
395
|
+
#define PRTIM0 3
|
396
|
+
#define PRTIM1 4
|
397
|
+
#define PRPSC 5
|
398
|
+
#define PRCAN 6
|
399
|
+
|
400
|
+
#define __AVR_HAVE_PRR ((1<<PRADC)|(1<<PRLIN)|(1<<PRSPI)|(1<<PRTIM0)|(1<<PRTIM1)|(1<<PRPSC)|(1<<PRCAN))
|
401
|
+
#define __AVR_HAVE_PRR_PRADC
|
402
|
+
#define __AVR_HAVE_PRR_PRLIN
|
403
|
+
#define __AVR_HAVE_PRR_PRSPI
|
404
|
+
#define __AVR_HAVE_PRR_PRTIM0
|
405
|
+
#define __AVR_HAVE_PRR_PRTIM1
|
406
|
+
#define __AVR_HAVE_PRR_PRPSC
|
407
|
+
#define __AVR_HAVE_PRR_PRCAN
|
408
|
+
|
409
|
+
#define OSCCAL _SFR_MEM8(0x66)
|
410
|
+
#define CAL0 0
|
411
|
+
#define CAL1 1
|
412
|
+
#define CAL2 2
|
413
|
+
#define CAL3 3
|
414
|
+
#define CAL4 4
|
415
|
+
#define CAL5 5
|
416
|
+
#define CAL6 6
|
417
|
+
|
418
|
+
#define PCICR _SFR_MEM8(0x68)
|
419
|
+
#define PCIE0 0
|
420
|
+
#define PCIE1 1
|
421
|
+
#define PCIE2 2
|
422
|
+
#define PCIE3 3
|
423
|
+
|
424
|
+
#define EICRA _SFR_MEM8(0x69)
|
425
|
+
#define ISC00 0
|
426
|
+
#define ISC01 1
|
427
|
+
#define ISC10 2
|
428
|
+
#define ISC11 3
|
429
|
+
#define ISC20 4
|
430
|
+
#define ISC21 5
|
431
|
+
#define ISC30 6
|
432
|
+
#define ISC31 7
|
433
|
+
|
434
|
+
#define PCMSK0 _SFR_MEM8(0x6A)
|
435
|
+
#define PCINT0 0
|
436
|
+
#define PCINT1 1
|
437
|
+
#define PCINT2 2
|
438
|
+
#define PCINT3 3
|
439
|
+
#define PCINT4 4
|
440
|
+
#define PCINT5 5
|
441
|
+
#define PCINT6 6
|
442
|
+
#define PCINT7 7
|
443
|
+
|
444
|
+
#define PCMSK1 _SFR_MEM8(0x6B)
|
445
|
+
#define PCINT8 0
|
446
|
+
#define PCINT9 1
|
447
|
+
#define PCINT10 2
|
448
|
+
#define PCINT11 3
|
449
|
+
#define PCINT12 4
|
450
|
+
#define PCINT13 5
|
451
|
+
#define PCINT14 6
|
452
|
+
#define PCINT15 7
|
453
|
+
|
454
|
+
#define PCMSK2 _SFR_MEM8(0x6C)
|
455
|
+
#define PCINT16 0
|
456
|
+
#define PCINT17 1
|
457
|
+
#define PCINT18 2
|
458
|
+
#define PCINT19 3
|
459
|
+
#define PCINT20 4
|
460
|
+
#define PCINT21 5
|
461
|
+
#define PCINT22 6
|
462
|
+
#define PCINT23 7
|
463
|
+
|
464
|
+
#define PCMSK3 _SFR_MEM8(0x6D)
|
465
|
+
#define PCINT24 0
|
466
|
+
#define PCINT25 1
|
467
|
+
#define PCINT26 2
|
468
|
+
|
469
|
+
#define TIMSK0 _SFR_MEM8(0x6E)
|
470
|
+
#define TOIE0 0
|
471
|
+
#define OCIE0A 1
|
472
|
+
#define OCIE0B 2
|
473
|
+
|
474
|
+
#define TIMSK1 _SFR_MEM8(0x6F)
|
475
|
+
#define TOIE1 0
|
476
|
+
#define OCIE1A 1
|
477
|
+
#define OCIE1B 2
|
478
|
+
#define ICIE1 5
|
479
|
+
|
480
|
+
#define AMP0CSR _SFR_MEM8(0x75)
|
481
|
+
#define AMP0TS0 0
|
482
|
+
#define AMP0TS1 1
|
483
|
+
#define AMP0TS2 2
|
484
|
+
#define AMPCMP0 3
|
485
|
+
#define AMP0G0 4
|
486
|
+
#define AMP0G1 5
|
487
|
+
#define AMP0IS 6
|
488
|
+
#define AMP0EN 7
|
489
|
+
|
490
|
+
#define AMP1CSR _SFR_MEM8(0x76)
|
491
|
+
#define AMP1TS0 0
|
492
|
+
#define AMP1TS1 1
|
493
|
+
#define AMP1TS2 2
|
494
|
+
#define AMPCMP1 3
|
495
|
+
#define AMP1G0 4
|
496
|
+
#define AMP1G1 5
|
497
|
+
#define AMP1IS 6
|
498
|
+
#define AMP1EN 7
|
499
|
+
|
500
|
+
#define AMP2CSR _SFR_MEM8(0x77)
|
501
|
+
#define AMP2TS0 0
|
502
|
+
#define AMP2TS1 1
|
503
|
+
#define AMP2TS2 2
|
504
|
+
#define AMPCMP2 3
|
505
|
+
#define AMP2G0 4
|
506
|
+
#define AMP2G1 5
|
507
|
+
#define AMP2IS 6
|
508
|
+
#define AMP2EN 7
|
509
|
+
|
510
|
+
#ifndef __ASSEMBLER__
|
511
|
+
#define ADC _SFR_MEM16(0x78)
|
512
|
+
#endif
|
513
|
+
#define ADCW _SFR_MEM16(0x78)
|
514
|
+
|
515
|
+
#define ADCL _SFR_MEM8(0x78)
|
516
|
+
#define ADCL0 0
|
517
|
+
#define ADCL1 1
|
518
|
+
#define ADCL2 2
|
519
|
+
#define ADCL3 3
|
520
|
+
#define ADCL4 4
|
521
|
+
#define ADCL5 5
|
522
|
+
#define ADCL6 6
|
523
|
+
#define ADCL7 7
|
524
|
+
|
525
|
+
#define ADCH _SFR_MEM8(0x79)
|
526
|
+
#define ADCH0 0
|
527
|
+
#define ADCH1 1
|
528
|
+
#define ADCH2 2
|
529
|
+
#define ADCH3 3
|
530
|
+
#define ADCH4 4
|
531
|
+
#define ADCH5 5
|
532
|
+
#define ADCH6 6
|
533
|
+
#define ADCH7 7
|
534
|
+
|
535
|
+
#define ADCSRA _SFR_MEM8(0x7A)
|
536
|
+
#define ADPS0 0
|
537
|
+
#define ADPS1 1
|
538
|
+
#define ADPS2 2
|
539
|
+
#define ADIE 3
|
540
|
+
#define ADIF 4
|
541
|
+
#define ADATE 5
|
542
|
+
#define ADSC 6
|
543
|
+
#define ADEN 7
|
544
|
+
|
545
|
+
#define ADCSRB _SFR_MEM8(0x7B)
|
546
|
+
#define ADTS0 0
|
547
|
+
#define ADTS1 1
|
548
|
+
#define ADTS2 2
|
549
|
+
#define ADTS3 3
|
550
|
+
#define AREFEN 5
|
551
|
+
#define ISRCEN 6
|
552
|
+
#define ADHSM 7
|
553
|
+
|
554
|
+
#define ADMUX _SFR_MEM8(0x7C)
|
555
|
+
#define MUX0 0
|
556
|
+
#define MUX1 1
|
557
|
+
#define MUX2 2
|
558
|
+
#define MUX3 3
|
559
|
+
#define MUX4 4
|
560
|
+
#define ADLAR 5
|
561
|
+
#define REFS0 6
|
562
|
+
#define REFS1 7
|
563
|
+
|
564
|
+
#define DIDR0 _SFR_MEM8(0x7E)
|
565
|
+
#define ADC0D 0
|
566
|
+
#define ADC1D 1
|
567
|
+
#define ADC2D 2
|
568
|
+
#define ADC3D 3
|
569
|
+
#define ADC4D 4
|
570
|
+
#define ADC5D 5
|
571
|
+
#define ADC6D 6
|
572
|
+
#define ADC7D 7
|
573
|
+
|
574
|
+
#define DIDR1 _SFR_MEM8(0x7F)
|
575
|
+
#define ADC8D 0
|
576
|
+
#define ADC9D 1
|
577
|
+
#define ADC10D 2
|
578
|
+
#define AMP0ND 3
|
579
|
+
#define AMP0PD 4
|
580
|
+
#define ACMP0D 5
|
581
|
+
#define AMP2PD 6
|
582
|
+
|
583
|
+
#define TCCR1A _SFR_MEM8(0x80)
|
584
|
+
#define WGM10 0
|
585
|
+
#define WGM11 1
|
586
|
+
#define COM1B0 4
|
587
|
+
#define COM1B1 5
|
588
|
+
#define COM1A0 6
|
589
|
+
#define COM1A1 7
|
590
|
+
|
591
|
+
#define TCCR1B _SFR_MEM8(0x81)
|
592
|
+
#define CS10 0
|
593
|
+
#define CS11 1
|
594
|
+
#define CS12 2
|
595
|
+
#define WGM12 3
|
596
|
+
#define WGM13 4
|
597
|
+
#define ICES1 6
|
598
|
+
#define ICNC1 7
|
599
|
+
|
600
|
+
#define TCCR1C _SFR_MEM8(0x82)
|
601
|
+
#define FOC1B 6
|
602
|
+
#define FOC1A 7
|
603
|
+
|
604
|
+
#define TCNT1 _SFR_MEM16(0x84)
|
605
|
+
|
606
|
+
#define TCNT1L _SFR_MEM8(0x84)
|
607
|
+
#define TCNT1L0 0
|
608
|
+
#define TCNT1L1 1
|
609
|
+
#define TCNT1L2 2
|
610
|
+
#define TCNT1L3 3
|
611
|
+
#define TCNT1L4 4
|
612
|
+
#define TCNT1L5 5
|
613
|
+
#define TCNT1L6 6
|
614
|
+
#define TCNT1L7 7
|
615
|
+
|
616
|
+
#define TCNT1H _SFR_MEM8(0x85)
|
617
|
+
#define TCNT1H0 0
|
618
|
+
#define TCNT1H1 1
|
619
|
+
#define TCNT1H2 2
|
620
|
+
#define TCNT1H3 3
|
621
|
+
#define TCNT1H4 4
|
622
|
+
#define TCNT1H5 5
|
623
|
+
#define TCNT1H6 6
|
624
|
+
#define TCNT1H7 7
|
625
|
+
|
626
|
+
#define ICR1 _SFR_MEM16(0x86)
|
627
|
+
|
628
|
+
#define ICR1L _SFR_MEM8(0x86)
|
629
|
+
#define ICR1L0 0
|
630
|
+
#define ICR1L1 1
|
631
|
+
#define ICR1L2 2
|
632
|
+
#define ICR1L3 3
|
633
|
+
#define ICR1L4 4
|
634
|
+
#define ICR1L5 5
|
635
|
+
#define ICR1L6 6
|
636
|
+
#define ICR1L7 7
|
637
|
+
|
638
|
+
#define ICR1H _SFR_MEM8(0x87)
|
639
|
+
#define ICR1H0 0
|
640
|
+
#define ICR1H1 1
|
641
|
+
#define ICR1H2 2
|
642
|
+
#define ICR1H3 3
|
643
|
+
#define ICR1H4 4
|
644
|
+
#define ICR1H5 5
|
645
|
+
#define ICR1H6 6
|
646
|
+
#define ICR1H7 7
|
647
|
+
|
648
|
+
#define OCR1A _SFR_MEM16(0x88)
|
649
|
+
|
650
|
+
#define OCR1AL _SFR_MEM8(0x88)
|
651
|
+
#define OCR1AL0 0
|
652
|
+
#define OCR1AL1 1
|
653
|
+
#define OCR1AL2 2
|
654
|
+
#define OCR1AL3 3
|
655
|
+
#define OCR1AL4 4
|
656
|
+
#define OCR1AL5 5
|
657
|
+
#define OCR1AL6 6
|
658
|
+
#define OCR1AL7 7
|
659
|
+
|
660
|
+
#define OCR1AH _SFR_MEM8(0x89)
|
661
|
+
#define OCR1AH0 0
|
662
|
+
#define OCR1AH1 1
|
663
|
+
#define OCR1AH2 2
|
664
|
+
#define OCR1AH3 3
|
665
|
+
#define OCR1AH4 4
|
666
|
+
#define OCR1AH5 5
|
667
|
+
#define OCR1AH6 6
|
668
|
+
#define OCR1AH7 7
|
669
|
+
|
670
|
+
#define OCR1B _SFR_MEM16(0x8A)
|
671
|
+
|
672
|
+
#define OCR1BL _SFR_MEM8(0x8A)
|
673
|
+
#define OCR1BL0 0
|
674
|
+
#define OCR1BL1 1
|
675
|
+
#define OCR1BL2 2
|
676
|
+
#define OCR1BL3 3
|
677
|
+
#define OCR1BL4 4
|
678
|
+
#define OCR1BL5 5
|
679
|
+
#define OCR1BL6 6
|
680
|
+
#define OCR1BL7 7
|
681
|
+
|
682
|
+
#define OCR1BH _SFR_MEM8(0x8B)
|
683
|
+
#define OCR1BH0 0
|
684
|
+
#define OCR1BH1 1
|
685
|
+
#define OCR1BH2 2
|
686
|
+
#define OCR1BH3 3
|
687
|
+
#define OCR1BH4 4
|
688
|
+
#define OCR1BH5 5
|
689
|
+
#define OCR1BH6 6
|
690
|
+
#define OCR1BH7 7
|
691
|
+
|
692
|
+
#define DACON _SFR_MEM8(0x90)
|
693
|
+
#define DAEN 0
|
694
|
+
#define DAOE 1
|
695
|
+
#define DALA 2
|
696
|
+
#define DATS0 4
|
697
|
+
#define DATS1 5
|
698
|
+
#define DATS2 6
|
699
|
+
#define DAATE 7
|
700
|
+
|
701
|
+
#define DAC _SFR_MEM16(0x91)
|
702
|
+
|
703
|
+
#define DACL _SFR_MEM8(0x91)
|
704
|
+
#define DACL0 0
|
705
|
+
#define DACL1 1
|
706
|
+
#define DACL2 2
|
707
|
+
#define DACL3 3
|
708
|
+
#define DACL4 4
|
709
|
+
#define DACL5 5
|
710
|
+
#define DACL6 6
|
711
|
+
#define DACL7 7
|
712
|
+
|
713
|
+
#define DACH _SFR_MEM8(0x92)
|
714
|
+
#define DACH0 0
|
715
|
+
#define DACH1 1
|
716
|
+
#define DACH2 2
|
717
|
+
#define DACH3 3
|
718
|
+
#define DACH4 4
|
719
|
+
#define DACH5 5
|
720
|
+
#define DACH6 6
|
721
|
+
#define DACH7 7
|
722
|
+
|
723
|
+
#define AC0CON _SFR_MEM8(0x94)
|
724
|
+
#define AC0M0 0
|
725
|
+
#define AC0M1 1
|
726
|
+
#define AC0M2 2
|
727
|
+
#define ACCKSEL 3
|
728
|
+
#define AC0IS0 4
|
729
|
+
#define AC0IS1 5
|
730
|
+
#define AC0IE 6
|
731
|
+
#define AC0EN 7
|
732
|
+
|
733
|
+
#define AC1CON _SFR_MEM8(0x95)
|
734
|
+
#define AC1M0 0
|
735
|
+
#define AC1M1 1
|
736
|
+
#define AC1M2 2
|
737
|
+
#define AC1ICE 3
|
738
|
+
#define AC1IS0 4
|
739
|
+
#define AC1IS1 5
|
740
|
+
#define AC1IE 6
|
741
|
+
#define AC1EN 7
|
742
|
+
|
743
|
+
#define AC2CON _SFR_MEM8(0x96)
|
744
|
+
#define AC2M0 0
|
745
|
+
#define AC2M1 1
|
746
|
+
#define AC2M2 2
|
747
|
+
#define AC2IS0 4
|
748
|
+
#define AC2IS1 5
|
749
|
+
#define AC2IE 6
|
750
|
+
#define AC2EN 7
|
751
|
+
|
752
|
+
#define AC3CON _SFR_MEM8(0x97)
|
753
|
+
#define AC3M0 0
|
754
|
+
#define AC3M1 1
|
755
|
+
#define AC3M2 2
|
756
|
+
#define AC3IS0 4
|
757
|
+
#define AC3IS1 5
|
758
|
+
#define AC3IE 6
|
759
|
+
#define AC3EN 7
|
760
|
+
|
761
|
+
#define POCR0SA _SFR_MEM16(0xA0)
|
762
|
+
|
763
|
+
#define POCR0SAL _SFR_MEM8(0xA0)
|
764
|
+
#define POCR0SA_0 0
|
765
|
+
#define POCR0SA_1 1
|
766
|
+
#define POCR0SA_2 2
|
767
|
+
#define POCR0SA_3 3
|
768
|
+
#define POCR0SA_4 4
|
769
|
+
#define POCR0SA_5 5
|
770
|
+
#define POCR0SA_6 6
|
771
|
+
#define POCR0SA_7 7
|
772
|
+
|
773
|
+
#define POCR0SAH _SFR_MEM8(0xA1)
|
774
|
+
#define POCR0SA_8 0
|
775
|
+
#define POCR0SA_9 1
|
776
|
+
#define POCR0SA_10 2
|
777
|
+
#define POCR0SA_11 3
|
778
|
+
#define POCR0SA_00 2 /* Deprecated */
|
779
|
+
#define POCR0SA_01 3 /* Deprecated */
|
780
|
+
|
781
|
+
#define POCR0RA _SFR_MEM16(0xA2)
|
782
|
+
|
783
|
+
#define POCR0RAL _SFR_MEM8(0xA2)
|
784
|
+
#define POCR0RA_0 0
|
785
|
+
#define POCR0RA_1 1
|
786
|
+
#define POCR0RA_2 2
|
787
|
+
#define POCR0RA_3 3
|
788
|
+
#define POCR0RA_4 4
|
789
|
+
#define POCR0RA_5 5
|
790
|
+
#define POCR0RA_6 6
|
791
|
+
#define POCR0RA_7 7
|
792
|
+
|
793
|
+
#define POCR0RAH _SFR_MEM8(0xA3)
|
794
|
+
#define POCR0RA_8 0
|
795
|
+
#define POCR0RA_9 1
|
796
|
+
#define POCR0RA_10 2
|
797
|
+
#define POCR0RA_11 3
|
798
|
+
#define POCR0RA_00 2 /* Deprecated */
|
799
|
+
#define POCR0RA_01 3 /* Deprecated */
|
800
|
+
|
801
|
+
#define POCR0SB _SFR_MEM16(0xA4)
|
802
|
+
|
803
|
+
#define POCR0SBL _SFR_MEM8(0xA4)
|
804
|
+
#define POCR0SB_0 0
|
805
|
+
#define POCR0SB_1 1
|
806
|
+
#define POCR0SB_2 2
|
807
|
+
#define POCR0SB_3 3
|
808
|
+
#define POCR0SB_4 4
|
809
|
+
#define POCR0SB_5 5
|
810
|
+
#define POCR0SB_6 6
|
811
|
+
#define POCR0SB_7 7
|
812
|
+
|
813
|
+
#define POCR0SBH _SFR_MEM8(0xA5)
|
814
|
+
#define POCR0SB_8 0
|
815
|
+
#define POCR0SB_9 1
|
816
|
+
#define POCR0SB_10 2
|
817
|
+
#define POCR0SB_11 3
|
818
|
+
#define POCR0SB_00 2 /* Deprecated */
|
819
|
+
#define POCR0SB_01 3 /* Deprecated */
|
820
|
+
|
821
|
+
#define POCR1SA _SFR_MEM16(0xA6)
|
822
|
+
|
823
|
+
#define POCR1SAL _SFR_MEM8(0xA6)
|
824
|
+
#define POCR1SA_0 0
|
825
|
+
#define POCR1SA_1 1
|
826
|
+
#define POCR1SA_2 2
|
827
|
+
#define POCR1SA_3 3
|
828
|
+
#define POCR1SA_4 4
|
829
|
+
#define POCR1SA_5 5
|
830
|
+
#define POCR1SA_6 6
|
831
|
+
#define POCR1SA_7 7
|
832
|
+
|
833
|
+
#define POCR1SAH _SFR_MEM8(0xA7)
|
834
|
+
#define POCR1SA_8 0
|
835
|
+
#define POCR1SA_9 1
|
836
|
+
#define POCR1SA_10 2
|
837
|
+
#define POCR1SA_11 3
|
838
|
+
#define POCR1SA_00 2 /* Deprecated */
|
839
|
+
#define POCR1SA_01 3 /* Deprecated */
|
840
|
+
|
841
|
+
#define POCR1RA _SFR_MEM16(0xA8)
|
842
|
+
|
843
|
+
#define POCR1RAL _SFR_MEM8(0xA8)
|
844
|
+
#define POCR1RA_0 0
|
845
|
+
#define POCR1RA_1 1
|
846
|
+
#define POCR1RA_2 2
|
847
|
+
#define POCR1RA_3 3
|
848
|
+
#define POCR1RA_4 4
|
849
|
+
#define POCR1RA_5 5
|
850
|
+
#define POCR1RA_6 6
|
851
|
+
#define POCR1RA_7 7
|
852
|
+
|
853
|
+
#define POCR1RAH _SFR_MEM8(0xA9)
|
854
|
+
#define POCR1RA_8 0
|
855
|
+
#define POCR1RA_9 1
|
856
|
+
#define POCR1RA_10 2
|
857
|
+
#define POCR1RA_11 3
|
858
|
+
#define POCR1RA_00 2 /* Deprecated */
|
859
|
+
|
860
|
+
#define POCR1SB _SFR_MEM16(0xAA)
|
861
|
+
|
862
|
+
#define POCR1SBL _SFR_MEM8(0xAA)
|
863
|
+
#define POCR1SB_0 0
|
864
|
+
#define POCR1SB_1 1
|
865
|
+
#define POCR1SB_2 2
|
866
|
+
#define POCR1SB_3 3
|
867
|
+
#define POCR1SB_4 4
|
868
|
+
#define POCR1SB_5 5
|
869
|
+
#define POCR1SB_6 6
|
870
|
+
#define POCR1SB_7 7
|
871
|
+
|
872
|
+
#define POCR1SBH _SFR_MEM8(0xAB)
|
873
|
+
#define POCR1SB_8 0
|
874
|
+
#define POCR1SB_9 1
|
875
|
+
#define POCR1SB_10 2
|
876
|
+
#define POCR1SB_11 3
|
877
|
+
#define POCR1SB_00 2 /* Deprecated */
|
878
|
+
#define POCR1SB_01 3 /* Deprecated */
|
879
|
+
|
880
|
+
#define POCR2SA _SFR_MEM16(0xAC)
|
881
|
+
|
882
|
+
#define POCR2SAL _SFR_MEM8(0xAC)
|
883
|
+
#define POCR2SA_0 0
|
884
|
+
#define POCR2SA_1 1
|
885
|
+
#define POCR2SA_2 2
|
886
|
+
#define POCR2SA_3 3
|
887
|
+
#define POCR2SA_4 4
|
888
|
+
#define POCR2SA_5 5
|
889
|
+
#define POCR2SA_6 6
|
890
|
+
#define POCR2SA_7 7
|
891
|
+
|
892
|
+
#define POCR2SAH _SFR_MEM8(0xAD)
|
893
|
+
#define POCR2SA_8 0
|
894
|
+
#define POCR2SA_9 1
|
895
|
+
#define POCR2SA_10 2
|
896
|
+
#define POCR2SA_11 3
|
897
|
+
#define POCR2SA_00 2 /* Deprecated */
|
898
|
+
#define POCR2SA_01 3 /* Deprecated */
|
899
|
+
|
900
|
+
#define POCR2RA _SFR_MEM16(0xAE)
|
901
|
+
|
902
|
+
#define POCR2RAL _SFR_MEM8(0xAE)
|
903
|
+
#define POCR2RA_0 0
|
904
|
+
#define POCR2RA_1 1
|
905
|
+
#define POCR2RA_2 2
|
906
|
+
#define POCR2RA_3 3
|
907
|
+
#define POCR2RA_4 4
|
908
|
+
#define POCR2RA_5 5
|
909
|
+
#define POCR2RA_6 6
|
910
|
+
#define POCR2RA_7 7
|
911
|
+
|
912
|
+
#define POCR2RAH _SFR_MEM8(0xAF)
|
913
|
+
#define POCR2RA_8 0
|
914
|
+
#define POCR2RA_9 1
|
915
|
+
#define POCR2RA_10 2
|
916
|
+
#define POCR2RA_11 3
|
917
|
+
#define POCR2RA_00 2 /* Deprecated */
|
918
|
+
#define POCR2RA_01 3 /* Deprecated */
|
919
|
+
|
920
|
+
#define POCR2SB _SFR_MEM16(0xB0)
|
921
|
+
|
922
|
+
#define POCR2SBL _SFR_MEM8(0xB0)
|
923
|
+
#define POCR2SB_0 0
|
924
|
+
#define POCR2SB_1 1
|
925
|
+
#define POCR2SB_2 2
|
926
|
+
#define POCR2SB_3 3
|
927
|
+
#define POCR2SB_4 4
|
928
|
+
#define POCR2SB_5 5
|
929
|
+
#define POCR2SB_6 6
|
930
|
+
#define POCR2SB_7 7
|
931
|
+
|
932
|
+
#define POCR2SBH _SFR_MEM8(0xB1)
|
933
|
+
#define POCR2SB_8 0
|
934
|
+
#define POCR2SB_9 1
|
935
|
+
#define POCR2SB_10 2
|
936
|
+
#define POCR2SB_11 3
|
937
|
+
#define POCR2SB_00 2 /* Deprecated */
|
938
|
+
#define POCR2SB_01 3 /* Deprecated */
|
939
|
+
|
940
|
+
|
941
|
+
#define POCRxRB _SFR_MEM16(0xB2) /* Deprecated */
|
942
|
+
#define POCR_RB _SFR_MEM16(0xB2)
|
943
|
+
|
944
|
+
#define POCRxRBL _SFR_MEM8(0xB2) /* Deprecated */
|
945
|
+
#define POCR_RBL _SFR_MEM8(0xB2)
|
946
|
+
#define POCR_RB_0 0
|
947
|
+
#define POCR_RB_1 1
|
948
|
+
#define POCR_RB_2 2
|
949
|
+
#define POCR_RB_3 3
|
950
|
+
#define POCR_RB_4 4
|
951
|
+
#define POCR_RB_5 5
|
952
|
+
#define POCR_RB_6 6
|
953
|
+
#define POCR_RB_7 7
|
954
|
+
|
955
|
+
#define POCRxRBH _SFR_MEM8(0xB3) /* Deprecated */
|
956
|
+
#define POCR_RBH _SFR_MEM8(0xB3)
|
957
|
+
#define POCR_RB_8 0
|
958
|
+
#define POCR_RB_9 1
|
959
|
+
#define POCR_RB_10 2
|
960
|
+
#define POCR_RB_11 3
|
961
|
+
#define POCR_RB_00 2 /* Deprecated */
|
962
|
+
#define POCR_RB_01 3 /* Deprecated */
|
963
|
+
|
964
|
+
#define PSYNC _SFR_MEM8(0xB4)
|
965
|
+
#define PSYNC00 0
|
966
|
+
#define PSYNC01 1
|
967
|
+
#define PSYNC10 2
|
968
|
+
#define PSYNC11 3
|
969
|
+
#define PSYNC20 4
|
970
|
+
#define PSYNC21 5
|
971
|
+
|
972
|
+
#define PCNF _SFR_MEM8(0xB5)
|
973
|
+
#define POPA 2
|
974
|
+
#define POPB 3
|
975
|
+
#define PMODE 4
|
976
|
+
#define PULOCK 5
|
977
|
+
|
978
|
+
#define POC _SFR_MEM8(0xB6)
|
979
|
+
#define POEN0A 0
|
980
|
+
#define POEN0B 1
|
981
|
+
#define POEN1A 2
|
982
|
+
#define POEN1B 3
|
983
|
+
#define POEN2A 4
|
984
|
+
#define POEN2B 5
|
985
|
+
|
986
|
+
#define PCTL _SFR_MEM8(0xB7)
|
987
|
+
#define PRUN 0
|
988
|
+
#define PCCYC 1
|
989
|
+
#define PCLKSEL 5
|
990
|
+
#define PPRE0 6
|
991
|
+
#define PPRE1 7
|
992
|
+
|
993
|
+
#define PMIC0 _SFR_MEM8(0xB8)
|
994
|
+
#define PRFM00 0
|
995
|
+
#define PRFM01 1
|
996
|
+
#define PRFM02 2
|
997
|
+
#define PAOC0 3
|
998
|
+
#define PFLTE0 4
|
999
|
+
#define PELEV0 5
|
1000
|
+
#define PISEL0 6
|
1001
|
+
#define POVEN0 7
|
1002
|
+
|
1003
|
+
#define PMIC1 _SFR_MEM8(0xB9)
|
1004
|
+
#define PRFM10 0
|
1005
|
+
#define PRFM11 1
|
1006
|
+
#define PRFM12 2
|
1007
|
+
#define PAOC1 3
|
1008
|
+
#define PFLTE1 4
|
1009
|
+
#define PELEV1 5
|
1010
|
+
#define PISEL1 6
|
1011
|
+
#define POVEN1 7
|
1012
|
+
|
1013
|
+
#define PMIC2 _SFR_MEM8(0xBA)
|
1014
|
+
#define PRFM20 0
|
1015
|
+
#define PRFM21 1
|
1016
|
+
#define PRFM22 2
|
1017
|
+
#define PAOC2 3
|
1018
|
+
#define PFLTE2 4
|
1019
|
+
#define PELEV2 5
|
1020
|
+
#define PISEL2 6
|
1021
|
+
#define POVEN2 7
|
1022
|
+
|
1023
|
+
#define PIM _SFR_MEM8(0xBB)
|
1024
|
+
#define PEOPE 0
|
1025
|
+
#define PEVE0 1
|
1026
|
+
#define PEVE1 2
|
1027
|
+
#define PEVE2 3
|
1028
|
+
|
1029
|
+
#define PIFR _SFR_MEM8(0xBC)
|
1030
|
+
#define PEOP 0
|
1031
|
+
#define PEV0 1
|
1032
|
+
#define PEV1 2
|
1033
|
+
#define PEV2 3
|
1034
|
+
|
1035
|
+
#define LINCR _SFR_MEM8(0xC8)
|
1036
|
+
#define LCMD0 0
|
1037
|
+
#define LCMD1 1
|
1038
|
+
#define LCMD2 2
|
1039
|
+
#define LENA 3
|
1040
|
+
#define LCONF0 4
|
1041
|
+
#define LCONF1 5
|
1042
|
+
#define LIN13 6
|
1043
|
+
#define LSWRES 7
|
1044
|
+
|
1045
|
+
#define LINSIR _SFR_MEM8(0xC9)
|
1046
|
+
#define LRXOK 0
|
1047
|
+
#define LTXOK 1
|
1048
|
+
#define LIDOK 2
|
1049
|
+
#define LERR 3
|
1050
|
+
#define LBUSY 4
|
1051
|
+
#define LIDST0 5
|
1052
|
+
#define LIDST1 6
|
1053
|
+
#define LIDST2 7
|
1054
|
+
|
1055
|
+
#define LINENIR _SFR_MEM8(0xCA)
|
1056
|
+
#define LENRXOK 0
|
1057
|
+
#define LENTXOK 1
|
1058
|
+
#define LENIDOK 2
|
1059
|
+
#define LENERR 3
|
1060
|
+
|
1061
|
+
#define LINERR _SFR_MEM8(0xCB)
|
1062
|
+
#define LBERR 0
|
1063
|
+
#define LCERR 1
|
1064
|
+
#define LPERR 2
|
1065
|
+
#define LSERR 3
|
1066
|
+
#define LFERR 4
|
1067
|
+
#define LOVERR 5
|
1068
|
+
#define LTOERR 6
|
1069
|
+
#define LABORT 7
|
1070
|
+
|
1071
|
+
#define LINBTR _SFR_MEM8(0xCC)
|
1072
|
+
#define LBT0 0
|
1073
|
+
#define LBT1 1
|
1074
|
+
#define LBT2 2
|
1075
|
+
#define LBT3 3
|
1076
|
+
#define LBT4 4
|
1077
|
+
#define LBT5 5
|
1078
|
+
#define LDISR 7
|
1079
|
+
|
1080
|
+
#define LINBRR _SFR_MEM16(0xCD)
|
1081
|
+
|
1082
|
+
#define LINBRRL _SFR_MEM8(0xCD)
|
1083
|
+
#define LDIV0 0
|
1084
|
+
#define LDIV1 1
|
1085
|
+
#define LDIV2 2
|
1086
|
+
#define LDIV3 3
|
1087
|
+
#define LDIV4 4
|
1088
|
+
#define LDIV5 5
|
1089
|
+
#define LDIV6 6
|
1090
|
+
#define LDIV7 7
|
1091
|
+
|
1092
|
+
#define LINBRRH _SFR_MEM8(0xCE)
|
1093
|
+
#define LDIV8 0
|
1094
|
+
#define LDIV9 1
|
1095
|
+
#define LDIV10 2
|
1096
|
+
#define LDIV11 3
|
1097
|
+
|
1098
|
+
#define LINDLR _SFR_MEM8(0xCF)
|
1099
|
+
#define LRXDL0 0
|
1100
|
+
#define LRXDL1 1
|
1101
|
+
#define LRXDL2 2
|
1102
|
+
#define LRXDL3 3
|
1103
|
+
#define LTXDL0 4
|
1104
|
+
#define LTXDL1 5
|
1105
|
+
#define LTXDL2 6
|
1106
|
+
#define LTXDL3 7
|
1107
|
+
|
1108
|
+
#define LINIDR _SFR_MEM8(0xD0)
|
1109
|
+
#define LID0 0
|
1110
|
+
#define LID1 1
|
1111
|
+
#define LID2 2
|
1112
|
+
#define LID3 3
|
1113
|
+
#define LID4 4
|
1114
|
+
#define LID5 5
|
1115
|
+
#define LP0 6
|
1116
|
+
#define LP1 7
|
1117
|
+
|
1118
|
+
#define LINSEL _SFR_MEM8(0xD1)
|
1119
|
+
#define LINDX0 0
|
1120
|
+
#define LINDX1 1
|
1121
|
+
#define LINDX2 2
|
1122
|
+
#define LAINC 3
|
1123
|
+
|
1124
|
+
#define LINDAT _SFR_MEM8(0xD2)
|
1125
|
+
#define LDATA0 0
|
1126
|
+
#define LDATA1 1
|
1127
|
+
#define LDATA2 2
|
1128
|
+
#define LDATA3 3
|
1129
|
+
#define LDATA4 4
|
1130
|
+
#define LDATA5 5
|
1131
|
+
#define LDATA6 6
|
1132
|
+
#define LDATA7 7
|
1133
|
+
|
1134
|
+
#define CANGCON _SFR_MEM8(0xD8)
|
1135
|
+
#define SWRES 0
|
1136
|
+
#define ENASTB 1
|
1137
|
+
#define TEST 2
|
1138
|
+
#define LISTEN 3
|
1139
|
+
#define SYNTTC 4
|
1140
|
+
#define TTC 5
|
1141
|
+
#define OVRQ 6
|
1142
|
+
#define ABRQ 7
|
1143
|
+
|
1144
|
+
#define CANGSTA _SFR_MEM8(0xD9)
|
1145
|
+
#define ERRP 0
|
1146
|
+
#define BOFF 1
|
1147
|
+
#define ENFG 2
|
1148
|
+
#define RXBSY 3
|
1149
|
+
#define TXBSY 4
|
1150
|
+
#define OVFG 6
|
1151
|
+
|
1152
|
+
#define CANGIT _SFR_MEM8(0xDA)
|
1153
|
+
#define AERG 0
|
1154
|
+
#define FERG 1
|
1155
|
+
#define CERG 2
|
1156
|
+
#define SERG 3
|
1157
|
+
#define BXOK 4
|
1158
|
+
#define OVRTIM 5
|
1159
|
+
#define BOFFIT 6
|
1160
|
+
#define CANIT 7
|
1161
|
+
|
1162
|
+
#define CANGIE _SFR_MEM8(0xDB)
|
1163
|
+
#define ENOVRT 0
|
1164
|
+
#define ENERG 1
|
1165
|
+
#define ENBX 2
|
1166
|
+
#define ENERR 3
|
1167
|
+
#define ENTX 4
|
1168
|
+
#define ENRX 5
|
1169
|
+
#define ENBOFF 6
|
1170
|
+
#define ENIT 7
|
1171
|
+
|
1172
|
+
#define CANEN2 _SFR_MEM8(0xDC)
|
1173
|
+
#define ENMOB0 0
|
1174
|
+
#define ENMOB1 1
|
1175
|
+
#define ENMOB2 2
|
1176
|
+
#define ENMOB3 3
|
1177
|
+
#define ENMOB4 4
|
1178
|
+
#define ENMOB5 5
|
1179
|
+
|
1180
|
+
#define CANEN1 _SFR_MEM8(0xDD)
|
1181
|
+
|
1182
|
+
#define CANIE2 _SFR_MEM8(0xDE)
|
1183
|
+
#define IEMOB0 0
|
1184
|
+
#define IEMOB1 1
|
1185
|
+
#define IEMOB2 2
|
1186
|
+
#define IEMOB3 3
|
1187
|
+
#define IEMOB4 4
|
1188
|
+
#define IEMOB5 5
|
1189
|
+
|
1190
|
+
#define CANIE1 _SFR_MEM8(0xDF)
|
1191
|
+
|
1192
|
+
/* RegDef: CAN Status Interrupt MOb Register*/
|
1193
|
+
#define CANSIT _SFR_MEM16(0xE0)
|
1194
|
+
|
1195
|
+
#define CANSIT2 _SFR_MEM8(0xE0)
|
1196
|
+
#define SIT0 0
|
1197
|
+
#define SIT1 1
|
1198
|
+
#define SIT2 2
|
1199
|
+
#define SIT3 3
|
1200
|
+
#define SIT4 4
|
1201
|
+
#define SIT5 5
|
1202
|
+
|
1203
|
+
#define CANSIT1 _SFR_MEM8(0xE1)
|
1204
|
+
|
1205
|
+
#define CANBT1 _SFR_MEM8(0xE2)
|
1206
|
+
#define BRP0 1
|
1207
|
+
#define BRP1 2
|
1208
|
+
#define BRP2 3
|
1209
|
+
#define BRP3 4
|
1210
|
+
#define BRP4 5
|
1211
|
+
#define BRP5 6
|
1212
|
+
|
1213
|
+
#define CANBT2 _SFR_MEM8(0xE3)
|
1214
|
+
#define PRS0 1
|
1215
|
+
#define PRS1 2
|
1216
|
+
#define PRS2 3
|
1217
|
+
#define SJW0 5
|
1218
|
+
#define SJW1 6
|
1219
|
+
|
1220
|
+
#define CANBT3 _SFR_MEM8(0xE4)
|
1221
|
+
#define SMP 0
|
1222
|
+
#define PHS10 1
|
1223
|
+
#define PHS11 2
|
1224
|
+
#define PHS12 3
|
1225
|
+
#define PHS20 4
|
1226
|
+
#define PHS21 5
|
1227
|
+
#define PHS22 6
|
1228
|
+
|
1229
|
+
#define CANTCON _SFR_MEM8(0xE5)
|
1230
|
+
#define TPRSC0 0
|
1231
|
+
#define TPRSC1 1
|
1232
|
+
#define TPRSC2 2
|
1233
|
+
#define TPRSC3 3
|
1234
|
+
#define TPRSC4 4
|
1235
|
+
#define TPRSC5 5
|
1236
|
+
#define TPRSC6 6
|
1237
|
+
#define TPRSC7 7
|
1238
|
+
|
1239
|
+
#define CANTIM _SFR_MEM16(0xE6)
|
1240
|
+
|
1241
|
+
#define CANTIML _SFR_MEM8(0xE6)
|
1242
|
+
#define CANTIM0 0
|
1243
|
+
#define CANTIM1 1
|
1244
|
+
#define CANTIM2 2
|
1245
|
+
#define CANTIM3 3
|
1246
|
+
#define CANTIM4 4
|
1247
|
+
#define CANTIM5 5
|
1248
|
+
#define CANTIM6 6
|
1249
|
+
#define CANTIM7 7
|
1250
|
+
|
1251
|
+
#define CANTIMH _SFR_MEM8(0xE7)
|
1252
|
+
#define CANTIM8 0
|
1253
|
+
#define CANTIM9 1
|
1254
|
+
#define CANTIM10 2
|
1255
|
+
#define CANTIM11 3
|
1256
|
+
#define CANTIM12 4
|
1257
|
+
#define CANTIM13 5
|
1258
|
+
#define CANTIM14 6
|
1259
|
+
#define CANTIM15 7
|
1260
|
+
|
1261
|
+
#define CANTTC _SFR_MEM16(0xE8)
|
1262
|
+
|
1263
|
+
#define CANTTCL _SFR_MEM8(0xE8)
|
1264
|
+
#define TIMTCC0 0
|
1265
|
+
#define TIMTCC1 1
|
1266
|
+
#define TIMTCC2 2
|
1267
|
+
#define TIMTCC3 3
|
1268
|
+
#define TIMTCC4 4
|
1269
|
+
#define TIMTCC5 5
|
1270
|
+
#define TIMTCC6 6
|
1271
|
+
#define TIMTCC7 7
|
1272
|
+
|
1273
|
+
#define CANTTCH _SFR_MEM8(0xE9)
|
1274
|
+
#define TIMTCC8 0
|
1275
|
+
#define TIMTCC9 1
|
1276
|
+
#define TIMTCC10 2
|
1277
|
+
#define TIMTCC11 3
|
1278
|
+
#define TIMTCC12 4
|
1279
|
+
#define TIMTCC13 5
|
1280
|
+
#define TIMTCC14 6
|
1281
|
+
#define TIMTCC15 7
|
1282
|
+
|
1283
|
+
#define CANTEC _SFR_MEM8(0xEA)
|
1284
|
+
#define TEC0 0
|
1285
|
+
#define TEC1 1
|
1286
|
+
#define TEC2 2
|
1287
|
+
#define TEC3 3
|
1288
|
+
#define TEC4 4
|
1289
|
+
#define TEC5 5
|
1290
|
+
#define TEC6 6
|
1291
|
+
#define TEC7 7
|
1292
|
+
|
1293
|
+
#define CANREC _SFR_MEM8(0xEB)
|
1294
|
+
#define REC0 0
|
1295
|
+
#define REC1 1
|
1296
|
+
#define REC2 2
|
1297
|
+
#define REC3 3
|
1298
|
+
#define REC4 4
|
1299
|
+
#define REC5 5
|
1300
|
+
#define REC6 6
|
1301
|
+
#define REC7 7
|
1302
|
+
|
1303
|
+
#define CANHPMOB _SFR_MEM8(0xEC)
|
1304
|
+
#define CGP0 0
|
1305
|
+
#define CGP1 1
|
1306
|
+
#define CGP2 2
|
1307
|
+
#define CGP3 3
|
1308
|
+
#define HPMOB0 4
|
1309
|
+
#define HPMOB1 5
|
1310
|
+
#define HPMOB2 6
|
1311
|
+
#define HPMOB3 7
|
1312
|
+
|
1313
|
+
#define CANPAGE _SFR_MEM8(0xED)
|
1314
|
+
#define INDX0 0
|
1315
|
+
#define INDX1 1
|
1316
|
+
#define INDX2 2
|
1317
|
+
#define AINC 3
|
1318
|
+
#define MOBNB0 4
|
1319
|
+
#define MOBNB1 5
|
1320
|
+
#define MOBNB2 6
|
1321
|
+
#define MOBNB3 7
|
1322
|
+
|
1323
|
+
#define CANSTMOB _SFR_MEM8(0xEE)
|
1324
|
+
#define AERR 0
|
1325
|
+
#define FERR 1
|
1326
|
+
#define CERR 2
|
1327
|
+
#define SERR 3
|
1328
|
+
#define BERR 4
|
1329
|
+
#define RXOK 5
|
1330
|
+
#define TXOK 6
|
1331
|
+
#define DLCW 7
|
1332
|
+
|
1333
|
+
#define CANCDMOB _SFR_MEM8(0xEF)
|
1334
|
+
#define DLC0 0
|
1335
|
+
#define DLC1 1
|
1336
|
+
#define DLC2 2
|
1337
|
+
#define DLC3 3
|
1338
|
+
#define IDE 4
|
1339
|
+
#define RPLV 5
|
1340
|
+
#define CONMOB0 6
|
1341
|
+
#define CONMOB1 7
|
1342
|
+
|
1343
|
+
/* RegDef: CAN Identifier Tag Registers*/
|
1344
|
+
#define CANIDT _SFR_MEM32(0xF0)
|
1345
|
+
|
1346
|
+
#define CANIDT4 _SFR_MEM8(0xF0)
|
1347
|
+
#define RB0TAG 0
|
1348
|
+
#define RB1TAG 1
|
1349
|
+
#define RTRTAG 2
|
1350
|
+
#define IDT0 3
|
1351
|
+
#define IDT1 4
|
1352
|
+
#define IDT2 5
|
1353
|
+
#define IDT3 6
|
1354
|
+
#define IDT4 7
|
1355
|
+
|
1356
|
+
#define CANIDT3 _SFR_MEM8(0xF1)
|
1357
|
+
#define IDT5 0
|
1358
|
+
#define IDT6 1
|
1359
|
+
#define IDT7 2
|
1360
|
+
#define IDT8 3
|
1361
|
+
#define IDT9 4
|
1362
|
+
#define IDT10 5
|
1363
|
+
#define IDT11 6
|
1364
|
+
#define IDT12 7
|
1365
|
+
|
1366
|
+
#define CANIDT2 _SFR_MEM8(0xF2)
|
1367
|
+
#define IDT13 0
|
1368
|
+
#define IDT14 1
|
1369
|
+
#define IDT15 2
|
1370
|
+
#define IDT16 3
|
1371
|
+
#define IDT17 4
|
1372
|
+
#define IDT18 5
|
1373
|
+
#define IDT19 6
|
1374
|
+
#define IDT20 7
|
1375
|
+
|
1376
|
+
#define CANIDT1 _SFR_MEM8(0xF3)
|
1377
|
+
#define IDT21 0
|
1378
|
+
#define IDT22 1
|
1379
|
+
#define IDT23 2
|
1380
|
+
#define IDT24 3
|
1381
|
+
#define IDT25 4
|
1382
|
+
#define IDT26 5
|
1383
|
+
#define IDT27 6
|
1384
|
+
#define IDT28 7
|
1385
|
+
|
1386
|
+
/* RegDef: CAN Identifier Mask Registers */
|
1387
|
+
#define CANIDM _SFR_MEM32(0xF4)
|
1388
|
+
|
1389
|
+
#define CANIDM4 _SFR_MEM8(0xF4)
|
1390
|
+
#define IDEMSK 0
|
1391
|
+
#define RTRMSK 2
|
1392
|
+
#define IDMSK0 3
|
1393
|
+
#define IDMSK1 4
|
1394
|
+
#define IDMSK2 5
|
1395
|
+
#define IDMSK3 6
|
1396
|
+
#define IDMSK4 7
|
1397
|
+
|
1398
|
+
#define CANIDM3 _SFR_MEM8(0xF5)
|
1399
|
+
#define IDMSK5 0
|
1400
|
+
#define IDMSK6 1
|
1401
|
+
#define IDMSK7 2
|
1402
|
+
#define IDMSK8 3
|
1403
|
+
#define IDMSK9 4
|
1404
|
+
#define IDMSK10 5
|
1405
|
+
#define IDMSK11 6
|
1406
|
+
#define IDMSK12 7
|
1407
|
+
|
1408
|
+
#define CANIDM2 _SFR_MEM8(0xF6)
|
1409
|
+
#define IDMSK13 0
|
1410
|
+
#define IDMSK14 1
|
1411
|
+
#define IDMSK15 2
|
1412
|
+
#define IDMSK16 3
|
1413
|
+
#define IDMSK17 4
|
1414
|
+
#define IDMSK18 5
|
1415
|
+
#define IDMSK19 6
|
1416
|
+
#define IDMSK20 7
|
1417
|
+
|
1418
|
+
#define CANIDM1 _SFR_MEM8(0xF7)
|
1419
|
+
#define IDMSK21 0
|
1420
|
+
#define IDMSK22 1
|
1421
|
+
#define IDMSK23 2
|
1422
|
+
#define IDMSK24 3
|
1423
|
+
#define IDMSK25 4
|
1424
|
+
#define IDMSK26 5
|
1425
|
+
#define IDMSK27 6
|
1426
|
+
#define IDMSK28 7
|
1427
|
+
|
1428
|
+
#define CANSTM _SFR_MEM16(0xF8)
|
1429
|
+
|
1430
|
+
#define CANSTML _SFR_MEM8(0xF8)
|
1431
|
+
#define TIMSTM0 0
|
1432
|
+
#define TIMSTM1 1
|
1433
|
+
#define TIMSTM2 2
|
1434
|
+
#define TIMSTM3 3
|
1435
|
+
#define TIMSTM4 4
|
1436
|
+
#define TIMSTM5 5
|
1437
|
+
#define TIMSTM6 6
|
1438
|
+
#define TIMSTM7 7
|
1439
|
+
|
1440
|
+
#define CANSTMH _SFR_MEM8(0xF9)
|
1441
|
+
#define TIMSTM8 0
|
1442
|
+
#define TIMSTM9 1
|
1443
|
+
#define TIMSTM10 2
|
1444
|
+
#define TIMSTM11 3
|
1445
|
+
#define TIMSTM12 4
|
1446
|
+
#define TIMSTM13 5
|
1447
|
+
#define TIMSTM14 6
|
1448
|
+
#define TIMSTM15 7
|
1449
|
+
|
1450
|
+
#define CANMSG _SFR_MEM8(0xFA)
|
1451
|
+
#define MSG0 0
|
1452
|
+
#define MSG1 1
|
1453
|
+
#define MSG2 2
|
1454
|
+
#define MSG3 3
|
1455
|
+
#define MSG4 4
|
1456
|
+
#define MSG5 5
|
1457
|
+
#define MSG6 6
|
1458
|
+
#define MSG7 7
|
1459
|
+
|
1460
|
+
|
1461
|
+
/* Interrupt vectors */
|
1462
|
+
/* Vector 0 is the reset vector */
|
1463
|
+
#define ANACOMP0_vect_num 1
|
1464
|
+
#define ANACOMP0_vect _VECTOR(1) /* Analog Comparator 0 */
|
1465
|
+
#define ANACOMP1_vect_num 2
|
1466
|
+
#define ANACOMP1_vect _VECTOR(2) /* Analog Comparator 1 */
|
1467
|
+
#define ANACOMP2_vect_num 3
|
1468
|
+
#define ANACOMP2_vect _VECTOR(3) /* Analog Comparator 2 */
|
1469
|
+
#define ANACOMP3_vect_num 4
|
1470
|
+
#define ANACOMP3_vect _VECTOR(4) /* Analog Comparator 3 */
|
1471
|
+
#define PSC_FAULT_vect_num 5
|
1472
|
+
#define PSC_FAULT_vect _VECTOR(5) /* PSC Fault */
|
1473
|
+
#define PSC_EC_vect_num 6
|
1474
|
+
#define PSC_EC_vect _VECTOR(6) /* PSC End of Cycle */
|
1475
|
+
#define INT0_vect_num 7
|
1476
|
+
#define INT0_vect _VECTOR(7) /* External Interrupt Request 0 */
|
1477
|
+
#define INT1_vect_num 8
|
1478
|
+
#define INT1_vect _VECTOR(8) /* External Interrupt Request 1 */
|
1479
|
+
#define INT2_vect_num 9
|
1480
|
+
#define INT2_vect _VECTOR(9) /* External Interrupt Request 2 */
|
1481
|
+
#define INT3_vect_num 10
|
1482
|
+
#define INT3_vect _VECTOR(10) /* External Interrupt Request 3 */
|
1483
|
+
#define TIMER1_CAPT_vect_num 11
|
1484
|
+
#define TIMER1_CAPT_vect _VECTOR(11) /* Timer/Counter1 Capture Event */
|
1485
|
+
#define TIMER1_COMPA_vect_num 12
|
1486
|
+
#define TIMER1_COMPA_vect _VECTOR(12) /* Timer/Counter1 Compare Match A */
|
1487
|
+
#define TIMER1_COMPB_vect_num 13
|
1488
|
+
#define TIMER1_COMPB_vect _VECTOR(13) /* Timer/Counter1 Compare Match B */
|
1489
|
+
#define TIMER1_OVF_vect_num 14
|
1490
|
+
#define TIMER1_OVF_vect _VECTOR(14) /* Timer1/Counter1 Overflow */
|
1491
|
+
#define TIMER0_COMPA_vect_num 15
|
1492
|
+
#define TIMER0_COMPA_vect _VECTOR(15) /* Timer/Counter0 Compare Match A */
|
1493
|
+
#define TIMER0_COMPB_vect_num 16
|
1494
|
+
#define TIMER0_COMPB_vect _VECTOR(16) /* Timer/Counter0 Compare Match B */
|
1495
|
+
#define TIMER0_OVF_vect_num 17
|
1496
|
+
#define TIMER0_OVF_vect _VECTOR(17) /* Timer/Counter0 Overflow */
|
1497
|
+
#define CAN_INT_vect_num 18
|
1498
|
+
#define CAN_INT_vect _VECTOR(18) /* CAN MOB, Burst, General Errors */
|
1499
|
+
#define CAN_TOVF_vect_num 19
|
1500
|
+
#define CAN_TOVF_vect _VECTOR(19) /* CAN Timer Overflow */
|
1501
|
+
#define LIN_TC_vect_num 20
|
1502
|
+
#define LIN_TC_vect _VECTOR(20) /* LIN Transfer Complete */
|
1503
|
+
#define LIN_ERR_vect_num 21
|
1504
|
+
#define LIN_ERR_vect _VECTOR(21) /* LIN Error */
|
1505
|
+
#define PCINT0_vect_num 22
|
1506
|
+
#define PCINT0_vect _VECTOR(22) /* Pin Change Interrupt Request 0 */
|
1507
|
+
#define PCINT1_vect_num 23
|
1508
|
+
#define PCINT1_vect _VECTOR(23) /* Pin Change Interrupt Request 1 */
|
1509
|
+
#define PCINT2_vect_num 24
|
1510
|
+
#define PCINT2_vect _VECTOR(24) /* Pin Change Interrupt Request 2 */
|
1511
|
+
#define PCINT3_vect_num 25
|
1512
|
+
#define PCINT3_vect _VECTOR(25) /* Pin Change Interrupt Request 3 */
|
1513
|
+
#define SPI_STC_vect_num 26
|
1514
|
+
#define SPI_STC_vect _VECTOR(26) /* SPI Serial Transfer Complete */
|
1515
|
+
#define ADC_vect_num 27
|
1516
|
+
#define ADC_vect _VECTOR(27) /* ADC Conversion Complete */
|
1517
|
+
#define WDT_vect_num 28
|
1518
|
+
#define WDT_vect _VECTOR(28) /* Watchdog Time-Out Interrupt */
|
1519
|
+
#define EE_READY_vect_num 29
|
1520
|
+
#define EE_READY_vect _VECTOR(29) /* EEPROM Ready */
|
1521
|
+
#define SPM_READY_vect_num 30
|
1522
|
+
#define SPM_READY_vect _VECTOR(30) /* Store Program Memory Read */
|
1523
|
+
|
1524
|
+
#define _VECTOR_SIZE 4 /* Size of individual vector. */
|
1525
|
+
#define _VECTORS_SIZE (31 * _VECTOR_SIZE)
|
1526
|
+
|
1527
|
+
|
1528
|
+
/* Constants */
|
1529
|
+
#define SPM_PAGESIZE (128)
|
1530
|
+
#define RAMSTART (0x0100)
|
1531
|
+
#define RAMSIZE (2048)
|
1532
|
+
#define RAMEND (RAMSTART + RAMSIZE - 1)
|
1533
|
+
#define XRAMSTART (0x0)
|
1534
|
+
#define XRAMSIZE (0)
|
1535
|
+
#define XRAMEND (RAMEND)
|
1536
|
+
#define E2END (0x3FF)
|
1537
|
+
#define E2PAGESIZE (4)
|
1538
|
+
#define FLASHEND (0x7FFF)
|
1539
|
+
|
1540
|
+
|
1541
|
+
/* Fuses */
|
1542
|
+
#define FUSE_MEMORY_SIZE 3
|
1543
|
+
|
1544
|
+
/* Low Fuse Byte */
|
1545
|
+
#define FUSE_CKSEL0 (unsigned char)~_BV(0) /* Select Clock Source */
|
1546
|
+
#define FUSE_CKSEL1 (unsigned char)~_BV(1) /* Select Clock Source */
|
1547
|
+
#define FUSE_CKSEL2 (unsigned char)~_BV(2) /* Select Clock Source */
|
1548
|
+
#define FUSE_CKSEL3 (unsigned char)~_BV(3) /* Select Clock Source */
|
1549
|
+
#define FUSE_SUT0 (unsigned char)~_BV(4) /* Select start-up time */
|
1550
|
+
#define FUSE_SUT1 (unsigned char)~_BV(5) /* Select start-up time */
|
1551
|
+
#define FUSE_CKOUT (unsigned char)~_BV(6) /* Oscillator output option */
|
1552
|
+
#define FUSE_CKDIV8 (unsigned char)~_BV(7) /* Divide clock by 8 */
|
1553
|
+
#define LFUSE_DEFAULT (FUSE_CKDIV8 & FUSE_SUT1 & FUSE_SUT0 & FUSE_CKSEL3 & FUSE_CKSEL2 & FUSE_CKSEL1)
|
1554
|
+
|
1555
|
+
/* High Fuse Byte */
|
1556
|
+
#define FUSE_BOOTRST (unsigned char)~_BV(0) /* Select Reset Vector */
|
1557
|
+
#define FUSE_BOOTSZ0 (unsigned char)~_BV(1) /* Select Boot Size */
|
1558
|
+
#define FUSE_BOOTSZ1 (unsigned char)~_BV(2) /* Select Boot Size */
|
1559
|
+
#define FUSE_EESAVE (unsigned char)~_BV(3) /* EEPROM memory is preserved through chip erase */
|
1560
|
+
#define FUSE_WDTON (unsigned char)~_BV(4) /* Watchdog timer always on */
|
1561
|
+
#define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming and Data Downloading */
|
1562
|
+
#define FUSE_DWEN (unsigned char)~_BV(6) /* DebugWIRE Enable */
|
1563
|
+
#define FUSE_RSTDISBL (unsigned char)~_BV(7) /* External Reset Disable */
|
1564
|
+
#define HFUSE_DEFAULT (FUSE_SPIEN & FUSE_BOOTSZ1 & FUSE_BOOTSZ0)
|
1565
|
+
|
1566
|
+
/* Extended Fuse Byte */
|
1567
|
+
#define FUSE_BODLEVEL0 (unsigned char)~_BV(0) /* Brown-out Detector Trigger Level */
|
1568
|
+
#define FUSE_BODLEVEL1 (unsigned char)~_BV(1) /* Brown-out Detector Trigger Level */
|
1569
|
+
#define FUSE_BODLEVEL2 (unsigned char)~_BV(2) /* Brown-out Detector Trigger Level */
|
1570
|
+
#define FUSE_PSCRVB (unsigned char)~_BV(3) /* PSC Outputs xB Reset Value */
|
1571
|
+
#define FUSE_PSCRVA (unsigned char)~_BV(4) /* PSC Outputs xA Reset Value */
|
1572
|
+
#define FUSE_PSCRB (unsigned char)~_BV(5) /* PSC Reset Behavior */
|
1573
|
+
#define EFUSE_DEFAULT (FUSE_BODLEVEL2 & FUSE_BODLEVEL1)
|
1574
|
+
|
1575
|
+
|
1576
|
+
/* Lock Bits */
|
1577
|
+
#define __LOCK_BITS_EXIST
|
1578
|
+
#define __BOOT_LOCK_BITS_0_EXIST
|
1579
|
+
#define __BOOT_LOCK_BITS_1_EXIST
|
1580
|
+
|
1581
|
+
|
1582
|
+
/* Signature */
|
1583
|
+
#define SIGNATURE_0 0x1E
|
1584
|
+
#define SIGNATURE_1 0x95
|
1585
|
+
#define SIGNATURE_2 0x84
|
1586
|
+
|
1587
|
+
|
1588
|
+
/* Deprecated items */
|
1589
|
+
#if !defined(__AVR_LIBC_DEPRECATED_ENABLE__)
|
1590
|
+
|
1591
|
+
#pragma GCC system_header
|
1592
|
+
|
1593
|
+
#pragma GCC poison POCR0SA_00
|
1594
|
+
#pragma GCC poison POCR0SA_01
|
1595
|
+
#pragma GCC poison POCR0RA_00
|
1596
|
+
#pragma GCC poison POCR0RA_01
|
1597
|
+
#pragma GCC poison POCR0SB_00
|
1598
|
+
#pragma GCC poison POCR0SB_01
|
1599
|
+
#pragma GCC poison POCR1SA_00
|
1600
|
+
#pragma GCC poison POCR1SA_01
|
1601
|
+
#pragma GCC poison POCR1RA_00
|
1602
|
+
#pragma GCC poison POCR1SB_00
|
1603
|
+
#pragma GCC poison POCR1SB_01
|
1604
|
+
#pragma GCC poison POCR2SA_00
|
1605
|
+
#pragma GCC poison POCR2SA_01
|
1606
|
+
#pragma GCC poison POCR2RA_00
|
1607
|
+
#pragma GCC poison POCR2RA_01
|
1608
|
+
#pragma GCC poison POCR2SB_00
|
1609
|
+
#pragma GCC poison POCR2SB_01
|
1610
|
+
#pragma GCC poison POCRxRB
|
1611
|
+
#pragma GCC poison POCRxRBL
|
1612
|
+
#pragma GCC poison POCRxRBH
|
1613
|
+
#pragma GCC poison POCR_RB_00
|
1614
|
+
#pragma GCC poison POCR_RB_01
|
1615
|
+
|
1616
|
+
#endif /* !defined(__AVR_LIBC_DEPRECATED_ENABLE__) */
|
1617
|
+
|
1618
|
+
|
1619
|
+
#define SLEEP_MODE_IDLE (0x00<<1)
|
1620
|
+
#define SLEEP_MODE_ADC (0x01<<1)
|
1621
|
+
#define SLEEP_MODE_PWR_DOWN (0x02<<1)
|
1622
|
+
#define SLEEP_MODE_STANDBY (0x06<<1)
|
1623
|
+
|
1624
|
+
#endif /* _AVR_ATmega32M1_H_ */
|
1625
|
+
|