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.
Files changed (295) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +77 -1
  3. data/cpp/arduino/Arduino.cpp +17 -7
  4. data/cpp/arduino/Arduino.h +151 -5
  5. data/cpp/arduino/ArduinoDefines.h +90 -0
  6. data/cpp/arduino/AvrMath.h +18 -28
  7. data/cpp/arduino/Godmode.cpp +62 -0
  8. data/cpp/arduino/Godmode.h +74 -0
  9. data/cpp/arduino/HardwareSerial.h +81 -0
  10. data/cpp/arduino/Print.h +67 -0
  11. data/cpp/arduino/Stream.h +210 -0
  12. data/cpp/arduino/WCharacter.h +96 -0
  13. data/cpp/arduino/WString.h +164 -0
  14. data/cpp/arduino/binary.h +518 -0
  15. data/cpp/arduino/include/README.md +3 -0
  16. data/cpp/arduino/include/common.h +333 -0
  17. data/cpp/arduino/include/fuse.h +274 -0
  18. data/cpp/arduino/include/io.h +643 -0
  19. data/cpp/arduino/include/io1200.h +274 -0
  20. data/cpp/arduino/include/io2313.h +385 -0
  21. data/cpp/arduino/include/io2323.h +210 -0
  22. data/cpp/arduino/include/io2333.h +461 -0
  23. data/cpp/arduino/include/io2343.h +214 -0
  24. data/cpp/arduino/include/io43u32x.h +440 -0
  25. data/cpp/arduino/include/io43u35x.h +432 -0
  26. data/cpp/arduino/include/io4414.h +500 -0
  27. data/cpp/arduino/include/io4433.h +489 -0
  28. data/cpp/arduino/include/io4434.h +588 -0
  29. data/cpp/arduino/include/io76c711.h +499 -0
  30. data/cpp/arduino/include/io8515.h +501 -0
  31. data/cpp/arduino/include/io8534.h +217 -0
  32. data/cpp/arduino/include/io8535.h +589 -0
  33. data/cpp/arduino/include/io86r401.h +309 -0
  34. data/cpp/arduino/include/io90pwm1.h +1157 -0
  35. data/cpp/arduino/include/io90pwm161.h +918 -0
  36. data/cpp/arduino/include/io90pwm216.h +1225 -0
  37. data/cpp/arduino/include/io90pwm2b.h +1466 -0
  38. data/cpp/arduino/include/io90pwm316.h +1272 -0
  39. data/cpp/arduino/include/io90pwm3b.h +1466 -0
  40. data/cpp/arduino/include/io90pwm81.h +1036 -0
  41. data/cpp/arduino/include/io90pwmx.h +1415 -0
  42. data/cpp/arduino/include/io90scr100.h +1719 -0
  43. data/cpp/arduino/include/ioa5272.h +803 -0
  44. data/cpp/arduino/include/ioa5505.h +803 -0
  45. data/cpp/arduino/include/ioa5702m322.h +2591 -0
  46. data/cpp/arduino/include/ioa5782.h +1843 -0
  47. data/cpp/arduino/include/ioa5790.h +907 -0
  48. data/cpp/arduino/include/ioa5790n.h +922 -0
  49. data/cpp/arduino/include/ioa5791.h +923 -0
  50. data/cpp/arduino/include/ioa5795.h +756 -0
  51. data/cpp/arduino/include/ioa5831.h +1949 -0
  52. data/cpp/arduino/include/ioa6285.h +740 -0
  53. data/cpp/arduino/include/ioa6286.h +740 -0
  54. data/cpp/arduino/include/ioa6289.h +847 -0
  55. data/cpp/arduino/include/ioa6612c.h +795 -0
  56. data/cpp/arduino/include/ioa6613c.h +795 -0
  57. data/cpp/arduino/include/ioa6614q.h +798 -0
  58. data/cpp/arduino/include/ioa6616c.h +865 -0
  59. data/cpp/arduino/include/ioa6617c.h +865 -0
  60. data/cpp/arduino/include/ioa664251.h +857 -0
  61. data/cpp/arduino/include/ioa8210.h +1843 -0
  62. data/cpp/arduino/include/ioa8510.h +1949 -0
  63. data/cpp/arduino/include/ioat94k.h +565 -0
  64. data/cpp/arduino/include/iocan128.h +100 -0
  65. data/cpp/arduino/include/iocan32.h +100 -0
  66. data/cpp/arduino/include/iocan64.h +100 -0
  67. data/cpp/arduino/include/iocanxx.h +2020 -0
  68. data/cpp/arduino/include/iom103.h +735 -0
  69. data/cpp/arduino/include/iom128.h +1299 -0
  70. data/cpp/arduino/include/iom1280.h +101 -0
  71. data/cpp/arduino/include/iom1281.h +101 -0
  72. data/cpp/arduino/include/iom1284.h +1099 -0
  73. data/cpp/arduino/include/iom1284p.h +1219 -0
  74. data/cpp/arduino/include/iom1284rfr2.h +2690 -0
  75. data/cpp/arduino/include/iom128a.h +1070 -0
  76. data/cpp/arduino/include/iom128rfa1.h +5385 -0
  77. data/cpp/arduino/include/iom128rfr2.h +2706 -0
  78. data/cpp/arduino/include/iom16.h +676 -0
  79. data/cpp/arduino/include/iom161.h +726 -0
  80. data/cpp/arduino/include/iom162.h +1022 -0
  81. data/cpp/arduino/include/iom163.h +686 -0
  82. data/cpp/arduino/include/iom164.h +101 -0
  83. data/cpp/arduino/include/iom164a.h +34 -0
  84. data/cpp/arduino/include/iom164p.h +34 -0
  85. data/cpp/arduino/include/iom164pa.h +1016 -0
  86. data/cpp/arduino/include/iom165.h +887 -0
  87. data/cpp/arduino/include/iom165a.h +832 -0
  88. data/cpp/arduino/include/iom165p.h +889 -0
  89. data/cpp/arduino/include/iom165pa.h +948 -0
  90. data/cpp/arduino/include/iom168.h +97 -0
  91. data/cpp/arduino/include/iom168a.h +35 -0
  92. data/cpp/arduino/include/iom168p.h +942 -0
  93. data/cpp/arduino/include/iom168pa.h +843 -0
  94. data/cpp/arduino/include/iom168pb.h +899 -0
  95. data/cpp/arduino/include/iom169.h +1174 -0
  96. data/cpp/arduino/include/iom169a.h +44 -0
  97. data/cpp/arduino/include/iom169p.h +1097 -0
  98. data/cpp/arduino/include/iom169pa.h +1485 -0
  99. data/cpp/arduino/include/iom16a.h +923 -0
  100. data/cpp/arduino/include/iom16hva.h +80 -0
  101. data/cpp/arduino/include/iom16hva2.h +883 -0
  102. data/cpp/arduino/include/iom16hvb.h +1052 -0
  103. data/cpp/arduino/include/iom16hvbrevb.h +1052 -0
  104. data/cpp/arduino/include/iom16m1.h +1571 -0
  105. data/cpp/arduino/include/iom16u2.h +1000 -0
  106. data/cpp/arduino/include/iom16u4.h +1423 -0
  107. data/cpp/arduino/include/iom2560.h +101 -0
  108. data/cpp/arduino/include/iom2561.h +101 -0
  109. data/cpp/arduino/include/iom2564rfr2.h +2691 -0
  110. data/cpp/arduino/include/iom256rfr2.h +2707 -0
  111. data/cpp/arduino/include/iom3000.h +237 -0
  112. data/cpp/arduino/include/iom32.h +755 -0
  113. data/cpp/arduino/include/iom323.h +744 -0
  114. data/cpp/arduino/include/iom324a.h +1014 -0
  115. data/cpp/arduino/include/iom324p.h +1016 -0
  116. data/cpp/arduino/include/iom324pa.h +1372 -0
  117. data/cpp/arduino/include/iom325.h +886 -0
  118. data/cpp/arduino/include/iom3250.h +982 -0
  119. data/cpp/arduino/include/iom3250a.h +34 -0
  120. data/cpp/arduino/include/iom3250p.h +34 -0
  121. data/cpp/arduino/include/iom3250pa.h +1042 -0
  122. data/cpp/arduino/include/iom325a.h +34 -0
  123. data/cpp/arduino/include/iom325p.h +34 -0
  124. data/cpp/arduino/include/iom325pa.h +937 -0
  125. data/cpp/arduino/include/iom328.h +34 -0
  126. data/cpp/arduino/include/iom328p.h +948 -0
  127. data/cpp/arduino/include/iom329.h +1069 -0
  128. data/cpp/arduino/include/iom3290.h +1227 -0
  129. data/cpp/arduino/include/iom3290a.h +34 -0
  130. data/cpp/arduino/include/iom3290pa.h +1123 -0
  131. data/cpp/arduino/include/iom329a.h +34 -0
  132. data/cpp/arduino/include/iom329p.h +1164 -0
  133. data/cpp/arduino/include/iom329pa.h +34 -0
  134. data/cpp/arduino/include/iom32a.h +686 -0
  135. data/cpp/arduino/include/iom32c1.h +1320 -0
  136. data/cpp/arduino/include/iom32hvb.h +1052 -0
  137. data/cpp/arduino/include/iom32hvbrevb.h +953 -0
  138. data/cpp/arduino/include/iom32m1.h +1625 -0
  139. data/cpp/arduino/include/iom32u2.h +1000 -0
  140. data/cpp/arduino/include/iom32u4.h +1512 -0
  141. data/cpp/arduino/include/iom32u6.h +1431 -0
  142. data/cpp/arduino/include/iom406.h +783 -0
  143. data/cpp/arduino/include/iom48.h +93 -0
  144. data/cpp/arduino/include/iom48a.h +35 -0
  145. data/cpp/arduino/include/iom48p.h +936 -0
  146. data/cpp/arduino/include/iom48pa.h +839 -0
  147. data/cpp/arduino/include/iom48pb.h +890 -0
  148. data/cpp/arduino/include/iom64.h +1311 -0
  149. data/cpp/arduino/include/iom640.h +101 -0
  150. data/cpp/arduino/include/iom644.h +101 -0
  151. data/cpp/arduino/include/iom644a.h +34 -0
  152. data/cpp/arduino/include/iom644p.h +101 -0
  153. data/cpp/arduino/include/iom644pa.h +1387 -0
  154. data/cpp/arduino/include/iom644rfr2.h +2685 -0
  155. data/cpp/arduino/include/iom645.h +881 -0
  156. data/cpp/arduino/include/iom6450.h +978 -0
  157. data/cpp/arduino/include/iom6450a.h +34 -0
  158. data/cpp/arduino/include/iom6450p.h +34 -0
  159. data/cpp/arduino/include/iom645a.h +34 -0
  160. data/cpp/arduino/include/iom645p.h +34 -0
  161. data/cpp/arduino/include/iom649.h +1061 -0
  162. data/cpp/arduino/include/iom6490.h +1182 -0
  163. data/cpp/arduino/include/iom6490a.h +34 -0
  164. data/cpp/arduino/include/iom6490p.h +34 -0
  165. data/cpp/arduino/include/iom649a.h +34 -0
  166. data/cpp/arduino/include/iom649p.h +1490 -0
  167. data/cpp/arduino/include/iom64a.h +1084 -0
  168. data/cpp/arduino/include/iom64c1.h +1321 -0
  169. data/cpp/arduino/include/iom64hve.h +1034 -0
  170. data/cpp/arduino/include/iom64hve2.h +767 -0
  171. data/cpp/arduino/include/iom64m1.h +1572 -0
  172. data/cpp/arduino/include/iom64rfr2.h +2701 -0
  173. data/cpp/arduino/include/iom8.h +665 -0
  174. data/cpp/arduino/include/iom8515.h +687 -0
  175. data/cpp/arduino/include/iom8535.h +772 -0
  176. data/cpp/arduino/include/iom88.h +97 -0
  177. data/cpp/arduino/include/iom88a.h +35 -0
  178. data/cpp/arduino/include/iom88p.h +941 -0
  179. data/cpp/arduino/include/iom88pa.h +1185 -0
  180. data/cpp/arduino/include/iom88pb.h +899 -0
  181. data/cpp/arduino/include/iom8a.h +621 -0
  182. data/cpp/arduino/include/iom8hva.h +76 -0
  183. data/cpp/arduino/include/iom8u2.h +997 -0
  184. data/cpp/arduino/include/iomx8.h +808 -0
  185. data/cpp/arduino/include/iomxx0_1.h +1692 -0
  186. data/cpp/arduino/include/iomxx4.h +954 -0
  187. data/cpp/arduino/include/iomxxhva.h +550 -0
  188. data/cpp/arduino/include/iotn10.h +512 -0
  189. data/cpp/arduino/include/iotn11.h +255 -0
  190. data/cpp/arduino/include/iotn12.h +288 -0
  191. data/cpp/arduino/include/iotn13.h +395 -0
  192. data/cpp/arduino/include/iotn13a.h +394 -0
  193. data/cpp/arduino/include/iotn15.h +363 -0
  194. data/cpp/arduino/include/iotn1634.h +914 -0
  195. data/cpp/arduino/include/iotn167.h +883 -0
  196. data/cpp/arduino/include/iotn20.h +776 -0
  197. data/cpp/arduino/include/iotn22.h +221 -0
  198. data/cpp/arduino/include/iotn2313.h +702 -0
  199. data/cpp/arduino/include/iotn2313a.h +812 -0
  200. data/cpp/arduino/include/iotn24.h +94 -0
  201. data/cpp/arduino/include/iotn24a.h +846 -0
  202. data/cpp/arduino/include/iotn25.h +93 -0
  203. data/cpp/arduino/include/iotn26.h +422 -0
  204. data/cpp/arduino/include/iotn261.h +93 -0
  205. data/cpp/arduino/include/iotn261a.h +987 -0
  206. data/cpp/arduino/include/iotn28.h +297 -0
  207. data/cpp/arduino/include/iotn4.h +477 -0
  208. data/cpp/arduino/include/iotn40.h +767 -0
  209. data/cpp/arduino/include/iotn4313.h +813 -0
  210. data/cpp/arduino/include/iotn43u.h +604 -0
  211. data/cpp/arduino/include/iotn44.h +94 -0
  212. data/cpp/arduino/include/iotn441.h +903 -0
  213. data/cpp/arduino/include/iotn44a.h +844 -0
  214. data/cpp/arduino/include/iotn45.h +93 -0
  215. data/cpp/arduino/include/iotn461.h +94 -0
  216. data/cpp/arduino/include/iotn461a.h +987 -0
  217. data/cpp/arduino/include/iotn48.h +806 -0
  218. data/cpp/arduino/include/iotn5.h +512 -0
  219. data/cpp/arduino/include/iotn828.h +911 -0
  220. data/cpp/arduino/include/iotn84.h +94 -0
  221. data/cpp/arduino/include/iotn841.h +903 -0
  222. data/cpp/arduino/include/iotn84a.h +844 -0
  223. data/cpp/arduino/include/iotn85.h +93 -0
  224. data/cpp/arduino/include/iotn861.h +94 -0
  225. data/cpp/arduino/include/iotn861a.h +988 -0
  226. data/cpp/arduino/include/iotn87.h +859 -0
  227. data/cpp/arduino/include/iotn88.h +806 -0
  228. data/cpp/arduino/include/iotn9.h +477 -0
  229. data/cpp/arduino/include/iotnx4.h +482 -0
  230. data/cpp/arduino/include/iotnx5.h +442 -0
  231. data/cpp/arduino/include/iotnx61.h +541 -0
  232. data/cpp/arduino/include/iousb1286.h +101 -0
  233. data/cpp/arduino/include/iousb1287.h +101 -0
  234. data/cpp/arduino/include/iousb162.h +101 -0
  235. data/cpp/arduino/include/iousb646.h +102 -0
  236. data/cpp/arduino/include/iousb647.h +102 -0
  237. data/cpp/arduino/include/iousb82.h +95 -0
  238. data/cpp/arduino/include/iousbxx2.h +807 -0
  239. data/cpp/arduino/include/iousbxx6_7.h +1336 -0
  240. data/cpp/arduino/include/iox128a1.h +7236 -0
  241. data/cpp/arduino/include/iox128a1u.h +8305 -0
  242. data/cpp/arduino/include/iox128a3.h +6987 -0
  243. data/cpp/arduino/include/iox128a3u.h +7697 -0
  244. data/cpp/arduino/include/iox128a4u.h +7309 -0
  245. data/cpp/arduino/include/iox128b1.h +6872 -0
  246. data/cpp/arduino/include/iox128b3.h +6288 -0
  247. data/cpp/arduino/include/iox128c3.h +6264 -0
  248. data/cpp/arduino/include/iox128d3.h +5749 -0
  249. data/cpp/arduino/include/iox128d4.h +5562 -0
  250. data/cpp/arduino/include/iox16a4.h +6748 -0
  251. data/cpp/arduino/include/iox16a4u.h +7309 -0
  252. data/cpp/arduino/include/iox16c4.h +6078 -0
  253. data/cpp/arduino/include/iox16d4.h +5717 -0
  254. data/cpp/arduino/include/iox16e5.h +7699 -0
  255. data/cpp/arduino/include/iox192a3.h +6987 -0
  256. data/cpp/arduino/include/iox192a3u.h +7697 -0
  257. data/cpp/arduino/include/iox192c3.h +6264 -0
  258. data/cpp/arduino/include/iox192d3.h +5749 -0
  259. data/cpp/arduino/include/iox256a3.h +6987 -0
  260. data/cpp/arduino/include/iox256a3b.h +6983 -0
  261. data/cpp/arduino/include/iox256a3bu.h +7706 -0
  262. data/cpp/arduino/include/iox256a3u.h +7697 -0
  263. data/cpp/arduino/include/iox256c3.h +6264 -0
  264. data/cpp/arduino/include/iox256d3.h +5709 -0
  265. data/cpp/arduino/include/iox32a4.h +6747 -0
  266. data/cpp/arduino/include/iox32a4u.h +7309 -0
  267. data/cpp/arduino/include/iox32c3.h +6264 -0
  268. data/cpp/arduino/include/iox32c4.h +6078 -0
  269. data/cpp/arduino/include/iox32d3.h +5105 -0
  270. data/cpp/arduino/include/iox32d4.h +5685 -0
  271. data/cpp/arduino/include/iox32e5.h +7699 -0
  272. data/cpp/arduino/include/iox384c3.h +6849 -0
  273. data/cpp/arduino/include/iox384d3.h +5833 -0
  274. data/cpp/arduino/include/iox64a1.h +7236 -0
  275. data/cpp/arduino/include/iox64a1u.h +8305 -0
  276. data/cpp/arduino/include/iox64a3.h +6987 -0
  277. data/cpp/arduino/include/iox64a3u.h +7697 -0
  278. data/cpp/arduino/include/iox64a4u.h +7309 -0
  279. data/cpp/arduino/include/iox64b1.h +6454 -0
  280. data/cpp/arduino/include/iox64b3.h +6288 -0
  281. data/cpp/arduino/include/iox64c3.h +6264 -0
  282. data/cpp/arduino/include/iox64d3.h +5764 -0
  283. data/cpp/arduino/include/iox64d4.h +5555 -0
  284. data/cpp/arduino/include/iox8e5.h +7699 -0
  285. data/cpp/arduino/include/lock.h +239 -0
  286. data/cpp/arduino/include/portpins.h +549 -0
  287. data/cpp/arduino/include/version.h +90 -0
  288. data/cpp/arduino/include/xmega.h +71 -0
  289. data/cpp/unittest/Assertion.h +9 -4
  290. data/cpp/unittest/Compare.h +93 -0
  291. data/lib/arduino_ci/arduino_installation.rb +1 -1
  292. data/lib/arduino_ci/cpp_library.rb +4 -1
  293. data/lib/arduino_ci/version.rb +1 -1
  294. data/misc/default.yaml +7 -0
  295. metadata +285 -2
@@ -0,0 +1,1512 @@
1
+ /* Copyright (c) 2008 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
+
32
+ /* $Id: iom32u4.h 2225 2011-03-02 16:27:26Z arcanum $ */
33
+
34
+ /* avr/iom32u4.h - definitions for ATmega32U4. */
35
+
36
+ /* This file should only be included from <avr/io.h>, never directly. */
37
+
38
+ #ifndef _AVR_IO_H_
39
+ # error "Include <avr/io.h> instead of this file."
40
+ #endif
41
+
42
+ #ifndef _AVR_IOXXX_H_
43
+ # define _AVR_IOXXX_H_ "iom32u4.h"
44
+ #else
45
+ # error "Attempt to include more than one <avr/ioXXX.h> file."
46
+ #endif
47
+
48
+
49
+ #ifndef _AVR_IOM32U4_H_
50
+ #define _AVR_IOM32U4_H_ 1
51
+
52
+
53
+ /* Registers and associated bit numbers */
54
+
55
+ #define PINB _SFR_IO8(0x03)
56
+ #define PINB0 0
57
+ #define PINB1 1
58
+ #define PINB2 2
59
+ #define PINB3 3
60
+ #define PINB4 4
61
+ #define PINB5 5
62
+ #define PINB6 6
63
+ #define PINB7 7
64
+
65
+ #define DDRB _SFR_IO8(0x04)
66
+ #define DDB0 0
67
+ #define DDB1 1
68
+ #define DDB2 2
69
+ #define DDB3 3
70
+ #define DDB4 4
71
+ #define DDB5 5
72
+ #define DDB6 6
73
+ #define DDB7 7
74
+
75
+ #define PORTB _SFR_IO8(0x05)
76
+ #define PORTB0 0
77
+ #define PORTB1 1
78
+ #define PORTB2 2
79
+ #define PORTB3 3
80
+ #define PORTB4 4
81
+ #define PORTB5 5
82
+ #define PORTB6 6
83
+ #define PORTB7 7
84
+
85
+ #define PINC _SFR_IO8(0x06)
86
+ #define PINC6 6
87
+ #define PINC7 7
88
+
89
+ #define DDRC _SFR_IO8(0x07)
90
+ #define DDC6 6
91
+ #define DDC7 7
92
+
93
+ #define PORTC _SFR_IO8(0x08)
94
+ #define PORTC6 6
95
+ #define PORTC7 7
96
+
97
+ #define PIND _SFR_IO8(0x09)
98
+ #define PIND0 0
99
+ #define PIND1 1
100
+ #define PIND2 2
101
+ #define PIND3 3
102
+ #define PIND4 4
103
+ #define PIND5 5
104
+ #define PIND6 6
105
+ #define PIND7 7
106
+
107
+ #define DDRD _SFR_IO8(0x0A)
108
+ #define DDD0 0
109
+ #define DDD1 1
110
+ #define DDD2 2
111
+ #define DDD3 3
112
+ #define DDD4 4
113
+ #define DDD5 5
114
+ #define DDD6 6
115
+ #define DDD7 7
116
+
117
+ #define PORTD _SFR_IO8(0x0B)
118
+ #define PORTD0 0
119
+ #define PORTD1 1
120
+ #define PORTD2 2
121
+ #define PORTD3 3
122
+ #define PORTD4 4
123
+ #define PORTD5 5
124
+ #define PORTD6 6
125
+ #define PORTD7 7
126
+
127
+ #define PINE _SFR_IO8(0x0C)
128
+ #define PINE2 2
129
+ #define PINE6 6
130
+
131
+ #define DDRE _SFR_IO8(0x0D)
132
+ #define DDE2 2
133
+ #define DDE6 6
134
+
135
+ #define PORTE _SFR_IO8(0x0E)
136
+ #define PORTE2 2
137
+ #define PORTE6 6
138
+
139
+ #define PINF _SFR_IO8(0x0F)
140
+ #define PINF0 0
141
+ #define PINF1 1
142
+ #define PINF4 4
143
+ #define PINF5 5
144
+ #define PINF6 6
145
+ #define PINF7 7
146
+
147
+ #define DDRF _SFR_IO8(0x10)
148
+ #define DDF0 0
149
+ #define DDF1 1
150
+ #define DDF4 4
151
+ #define DDF5 5
152
+ #define DDF6 6
153
+ #define DDF7 7
154
+
155
+ #define PORTF _SFR_IO8(0x11)
156
+ #define PORTF0 0
157
+ #define PORTF1 1
158
+ #define PORTF4 4
159
+ #define PORTF5 5
160
+ #define PORTF6 6
161
+ #define PORTF7 7
162
+
163
+ #define TIFR0 _SFR_IO8(0x15)
164
+ #define TOV0 0
165
+ #define OCF0A 1
166
+ #define OCF0B 2
167
+
168
+ #define TIFR1 _SFR_IO8(0x16)
169
+ #define TOV1 0
170
+ #define OCF1A 1
171
+ #define OCF1B 2
172
+ #define OCF1C 3
173
+ #define ICF1 5
174
+
175
+ #define TIFR3 _SFR_IO8(0x18)
176
+ #define TOV3 0
177
+ #define OCF3A 1
178
+ #define OCF3B 2
179
+ #define OCF3C 3
180
+ #define ICF3 5
181
+
182
+ #define TIFR4 _SFR_IO8(0x19)
183
+ #define TOV4 2
184
+ #define OCF4B 5
185
+ #define OCF4A 6
186
+ #define OCF4D 7
187
+
188
+ #define TIFR5 _SFR_IO8(0x1A)
189
+
190
+ #define PCIFR _SFR_IO8(0x1B)
191
+ #define PCIF0 0
192
+
193
+ #define EIFR _SFR_IO8(0x1C)
194
+ #define INTF0 0
195
+ #define INTF1 1
196
+ #define INTF2 2
197
+ #define INTF3 3
198
+ #define INTF4 4
199
+ #define INTF5 5
200
+ #define INTF6 6
201
+ #define INTF7 7
202
+
203
+ #define EIMSK _SFR_IO8(0x1D)
204
+ #define INT0 0
205
+ #define INT1 1
206
+ #define INT2 2
207
+ #define INT3 3
208
+ #define INT4 4
209
+ #define INT5 5
210
+ #define INT6 6
211
+ #define INT7 7
212
+
213
+ #define GPIOR0 _SFR_IO8(0x1E)
214
+ #define GPIOR00 0
215
+ #define GPIOR01 1
216
+ #define GPIOR02 2
217
+ #define GPIOR03 3
218
+ #define GPIOR04 4
219
+ #define GPIOR05 5
220
+ #define GPIOR06 6
221
+ #define GPIOR07 7
222
+
223
+ #define EECR _SFR_IO8(0x1F)
224
+ #define EERE 0
225
+ #define EEPE 1
226
+ #define EEMPE 2
227
+ #define EERIE 3
228
+ #define EEPM0 4
229
+ #define EEPM1 5
230
+
231
+ #define EEDR _SFR_IO8(0x20)
232
+ #define EEDR0 0
233
+ #define EEDR1 1
234
+ #define EEDR2 2
235
+ #define EEDR3 3
236
+ #define EEDR4 4
237
+ #define EEDR5 5
238
+ #define EEDR6 6
239
+ #define EEDR7 7
240
+
241
+ #define EEAR _SFR_IO16(0x21)
242
+
243
+ #define EEARL _SFR_IO8(0x21)
244
+ #define EEAR0 0
245
+ #define EEAR1 1
246
+ #define EEAR2 2
247
+ #define EEAR3 3
248
+ #define EEAR4 4
249
+ #define EEAR5 5
250
+ #define EEAR6 6
251
+ #define EEAR7 7
252
+
253
+ #define EEARH _SFR_IO8(0x22)
254
+ #define EEAR8 0
255
+ #define EEAR9 1
256
+ #define EEAR10 2
257
+ #define EEAR11 3
258
+
259
+ #define GTCCR _SFR_IO8(0x23)
260
+ #define PSRSYNC 0
261
+ #define PSRASY 1
262
+ #define TSM 7
263
+
264
+ #define TCCR0A _SFR_IO8(0x24)
265
+ #define WGM00 0
266
+ #define WGM01 1
267
+ #define COM0B0 4
268
+ #define COM0B1 5
269
+ #define COM0A0 6
270
+ #define COM0A1 7
271
+
272
+ #define TCCR0B _SFR_IO8(0x25)
273
+ #define CS00 0
274
+ #define CS01 1
275
+ #define CS02 2
276
+ #define WGM02 3
277
+ #define FOC0B 6
278
+ #define FOC0A 7
279
+
280
+ #define TCNT0 _SFR_IO8(0x26)
281
+ #define TCNT0_0 0
282
+ #define TCNT0_1 1
283
+ #define TCNT0_2 2
284
+ #define TCNT0_3 3
285
+ #define TCNT0_4 4
286
+ #define TCNT0_5 5
287
+ #define TCNT0_6 6
288
+ #define TCNT0_7 7
289
+
290
+ #define OCR0A _SFR_IO8(0x27)
291
+ #define OCR0A_0 0
292
+ #define OCR0A_1 1
293
+ #define OCR0A_2 2
294
+ #define OCR0A_3 3
295
+ #define OCR0A_4 4
296
+ #define OCR0A_5 5
297
+ #define OCR0A_6 6
298
+ #define OCR0A_7 7
299
+
300
+ #define OCR0B _SFR_IO8(0x28)
301
+ #define OCR0B_0 0
302
+ #define OCR0B_1 1
303
+ #define OCR0B_2 2
304
+ #define OCR0B_3 3
305
+ #define OCR0B_4 4
306
+ #define OCR0B_5 5
307
+ #define OCR0B_6 6
308
+ #define OCR0B_7 7
309
+
310
+ #define PLLCSR _SFR_IO8(0x29)
311
+ #define PLOCK 0
312
+ #define PLLE 1
313
+ #define PINDIV 4
314
+
315
+ #define GPIOR1 _SFR_IO8(0x2A)
316
+ #define GPIOR10 0
317
+ #define GPIOR11 1
318
+ #define GPIOR12 2
319
+ #define GPIOR13 3
320
+ #define GPIOR14 4
321
+ #define GPIOR15 5
322
+ #define GPIOR16 6
323
+ #define GPIOR17 7
324
+
325
+ #define GPIOR2 _SFR_IO8(0x2B)
326
+ #define GPIOR20 0
327
+ #define GPIOR21 1
328
+ #define GPIOR22 2
329
+ #define GPIOR23 3
330
+ #define GPIOR24 4
331
+ #define GPIOR25 5
332
+ #define GPIOR26 6
333
+ #define GPIOR27 7
334
+
335
+ #define SPCR _SFR_IO8(0x2C)
336
+ #define SPR0 0
337
+ #define SPR1 1
338
+ #define CPHA 2
339
+ #define CPOL 3
340
+ #define MSTR 4
341
+ #define DORD 5
342
+ #define SPE 6
343
+ #define SPIE 7
344
+
345
+ #define SPSR _SFR_IO8(0x2D)
346
+ #define SPI2X 0
347
+ #define WCOL 6
348
+ #define SPIF 7
349
+
350
+ #define SPDR _SFR_IO8(0x2E)
351
+ #define SPDR0 0
352
+ #define SPDR1 1
353
+ #define SPDR2 2
354
+ #define SPDR3 3
355
+ #define SPDR4 4
356
+ #define SPDR5 5
357
+ #define SPDR6 6
358
+ #define SPDR7 7
359
+
360
+ #define ACSR _SFR_IO8(0x30)
361
+ #define ACIS0 0
362
+ #define ACIS1 1
363
+ #define ACIC 2
364
+ #define ACIE 3
365
+ #define ACI 4
366
+ #define ACO 5
367
+ #define ACBG 6
368
+ #define ACD 7
369
+
370
+ #define OCDR _SFR_IO8(0x31)
371
+ #define OCDR0 0
372
+ #define OCDR1 1
373
+ #define OCDR2 2
374
+ #define OCDR3 3
375
+ #define OCDR4 4
376
+ #define OCDR5 5
377
+ #define OCDR6 6
378
+ #define OCDR7 7
379
+
380
+ #define PLLFRQ _SFR_IO8(0x32)
381
+ #define PDIV0 0
382
+ #define PDIV1 1
383
+ #define PDIV2 2
384
+ #define PDIV3 3
385
+ #define PLLTM0 4
386
+ #define PLLTM1 5
387
+ #define PLLUSB 6
388
+ #define PINMUX 7
389
+
390
+ #define SMCR _SFR_IO8(0x33)
391
+ #define SE 0
392
+ #define SM0 1
393
+ #define SM1 2
394
+ #define SM2 3
395
+
396
+ #define MCUSR _SFR_IO8(0x34)
397
+ #define PORF 0
398
+ #define EXTRF 1
399
+ #define BORF 2
400
+ #define WDRF 3
401
+ #define JTRF 4
402
+
403
+ #define MCUCR _SFR_IO8(0x35)
404
+ #define IVCE 0
405
+ #define IVSEL 1
406
+ #define PUD 4
407
+ #define JTD 7
408
+
409
+ #define SPMCSR _SFR_IO8(0x37)
410
+ #define SPMEN 0
411
+ #define PGERS 1
412
+ #define PGWRT 2
413
+ #define BLBSET 3
414
+ #define RWWSRE 4
415
+ #define SIGRD 5
416
+ #define RWWSB 6
417
+ #define SPMIE 7
418
+
419
+ #define RAMPZ _SFR_IO8(0x3B)
420
+ #define RAMPZ0 0
421
+
422
+ #define EIND _SFR_IO8(0x3C)
423
+ #define EIND0 0
424
+
425
+ #define WDTCSR _SFR_MEM8(0x60)
426
+ #define WDP0 0
427
+ #define WDP1 1
428
+ #define WDP2 2
429
+ #define WDE 3
430
+ #define WDCE 4
431
+ #define WDP3 5
432
+ #define WDIE 6
433
+ #define WDIF 7
434
+
435
+ #define CLKPR _SFR_MEM8(0x61)
436
+ #define CLKPS0 0
437
+ #define CLKPS1 1
438
+ #define CLKPS2 2
439
+ #define CLKPS3 3
440
+ #define CLKPCE 7
441
+
442
+ /* Reserved [0x62..0x63] */
443
+
444
+ #define PRR0 _SFR_MEM8(0x64)
445
+ #define PRADC 0
446
+ #define PRUSART0 1
447
+ #define PRSPI 2
448
+ #define PRTIM1 3
449
+ #define PRTIM0 5
450
+ #define PRTIM2 6
451
+ #define PRTWI 7
452
+
453
+ #define __AVR_HAVE_PRR0 ((1<<PRADC)|(1<<PRUSART0)|(1<<PRSPI)|(1<<PRTIM1)|(1<<PRTIM0)|(1<<PRTIM2)|(1<<PRTWI))
454
+ #define __AVR_HAVE_PRR0_PRADC
455
+ #define __AVR_HAVE_PRR0_PRUSART0
456
+ #define __AVR_HAVE_PRR0_PRSPI
457
+ #define __AVR_HAVE_PRR0_PRTIM1
458
+ #define __AVR_HAVE_PRR0_PRTIM0
459
+ #define __AVR_HAVE_PRR0_PRTIM2
460
+ #define __AVR_HAVE_PRR0_PRTWI
461
+
462
+ #define PRR1 _SFR_MEM8(0x65)
463
+ #define PRUSART1 0
464
+ #define PRTIM3 3
465
+ #define PRUSB 7
466
+
467
+ #define __AVR_HAVE_PRR1 ((1<<PRUSART1)|(1<<PRTIM3)|(1<<PRUSB))
468
+ #define __AVR_HAVE_PRR1_PRUSART1
469
+ #define __AVR_HAVE_PRR1_PRTIM3
470
+ #define __AVR_HAVE_PRR1_PRUSB
471
+
472
+ #define OSCCAL _SFR_MEM8(0x66)
473
+ #define CAL0 0
474
+ #define CAL1 1
475
+ #define CAL2 2
476
+ #define CAL3 3
477
+ #define CAL4 4
478
+ #define CAL5 5
479
+ #define CAL6 6
480
+ #define CAL7 7
481
+
482
+ #define RCCTRL _SFR_MEM8(0x67)
483
+ #define RCFREQ 0
484
+
485
+ #define PCICR _SFR_MEM8(0x68)
486
+ #define PCIE0 0
487
+
488
+ #define EICRA _SFR_MEM8(0x69)
489
+ #define ISC00 0
490
+ #define ISC01 1
491
+ #define ISC10 2
492
+ #define ISC11 3
493
+ #define ISC20 4
494
+ #define ISC21 5
495
+ #define ISC30 6
496
+ #define ISC31 7
497
+
498
+ #define EICRB _SFR_MEM8(0x6A)
499
+ #define ISC40 0
500
+ #define ISC41 1
501
+ #define ISC50 2
502
+ #define ISC51 3
503
+ #define ISC60 4
504
+ #define ISC61 5
505
+ #define ISC70 6
506
+ #define ISC71 7
507
+
508
+ #define PCMSK0 _SFR_MEM8(0x6B)
509
+ #define PCINT0 0
510
+ #define PCINT1 1
511
+ #define PCINT2 2
512
+ #define PCINT3 3
513
+ #define PCINT4 4
514
+ #define PCINT5 5
515
+ #define PCINT6 6
516
+ #define PCINT7 7
517
+
518
+ /* Reserved [0x6C..0x6D] */
519
+
520
+ #define TIMSK0 _SFR_MEM8(0x6E)
521
+ #define TOIE0 0
522
+ #define OCIE0A 1
523
+ #define OCIE0B 2
524
+
525
+ #define TIMSK1 _SFR_MEM8(0x6F)
526
+ #define TOIE1 0
527
+ #define OCIE1A 1
528
+ #define OCIE1B 2
529
+ #define OCIE1C 3
530
+ #define ICIE1 5
531
+
532
+ /* Reserved [0x70] */
533
+
534
+ #define TIMSK3 _SFR_MEM8(0x71)
535
+ #define TOIE3 0
536
+ #define OCIE3A 1
537
+ #define OCIE3B 2
538
+ #define OCIE3C 3
539
+ #define ICIE3 5
540
+
541
+ #define TIMSK4 _SFR_MEM8(0x72)
542
+ #define TOIE4 2
543
+ #define OCIE4B 5
544
+ #define OCIE4A 6
545
+ #define OCIE4D 7
546
+
547
+ /* Reserved [0x73..0x77] */
548
+
549
+ #ifndef __ASSEMBLER__
550
+ #define ADC _SFR_MEM16(0x78)
551
+ #endif
552
+ #define ADCW _SFR_MEM16(0x78)
553
+
554
+ #define ADCL _SFR_MEM8(0x78)
555
+ #define ADCL0 0
556
+ #define ADCL1 1
557
+ #define ADCL2 2
558
+ #define ADCL3 3
559
+ #define ADCL4 4
560
+ #define ADCL5 5
561
+ #define ADCL6 6
562
+ #define ADCL7 7
563
+
564
+ #define ADCH _SFR_MEM8(0x79)
565
+ #define ADCH0 0
566
+ #define ADCH1 1
567
+ #define ADCH2 2
568
+ #define ADCH3 3
569
+ #define ADCH4 4
570
+ #define ADCH5 5
571
+ #define ADCH6 6
572
+ #define ADCH7 7
573
+
574
+ #define ADCSRA _SFR_MEM8(0x7A)
575
+ #define ADPS0 0
576
+ #define ADPS1 1
577
+ #define ADPS2 2
578
+ #define ADIE 3
579
+ #define ADIF 4
580
+ #define ADATE 5
581
+ #define ADSC 6
582
+ #define ADEN 7
583
+
584
+ #define ADCSRB _SFR_MEM8(0x7B)
585
+ #define ADTS0 0
586
+ #define ADTS1 1
587
+ #define ADTS2 2
588
+ #define ADTS3 3
589
+ #define MUX5 5
590
+ #define ACME 6
591
+ #define ADHSM 7
592
+
593
+ #define ADMUX _SFR_MEM8(0x7C)
594
+ #define MUX0 0
595
+ #define MUX1 1
596
+ #define MUX2 2
597
+ #define MUX3 3
598
+ #define MUX4 4
599
+ #define ADLAR 5
600
+ #define REFS0 6
601
+ #define REFS1 7
602
+
603
+ #define DIDR2 _SFR_MEM8(0x7D)
604
+ #define ADC8D 0
605
+ #define ADC9D 1
606
+ #define ADC10D 2
607
+ #define ADC11D 3
608
+ #define ADC12D 4
609
+ #define ADC13D 5
610
+
611
+ #define DIDR0 _SFR_MEM8(0x7E)
612
+ #define ADC0D 0
613
+ #define ADC1D 1
614
+ #define ADC2D 2
615
+ #define ADC3D 3
616
+ #define ADC4D 4
617
+ #define ADC5D 5
618
+ #define ADC6D 6
619
+ #define ADC7D 7
620
+
621
+ #define DIDR1 _SFR_MEM8(0x7F)
622
+ #define AIN0D 0
623
+ #define AIN1D 1
624
+
625
+ #define TCCR1A _SFR_MEM8(0x80)
626
+ #define WGM10 0
627
+ #define WGM11 1
628
+ #define COM1C0 2
629
+ #define COM1C1 3
630
+ #define COM1B0 4
631
+ #define COM1B1 5
632
+ #define COM1A0 6
633
+ #define COM1A1 7
634
+
635
+ #define TCCR1B _SFR_MEM8(0x81)
636
+ #define CS10 0
637
+ #define CS11 1
638
+ #define CS12 2
639
+ #define WGM12 3
640
+ #define WGM13 4
641
+ #define ICES1 6
642
+ #define ICNC1 7
643
+
644
+ #define TCCR1C _SFR_MEM8(0x82)
645
+ #define FOC1C 5
646
+ #define FOC1B 6
647
+ #define FOC1A 7
648
+
649
+ /* Reserved [0x83] */
650
+
651
+ #define TCNT1 _SFR_MEM16(0x84)
652
+
653
+ #define TCNT1L _SFR_MEM8(0x84)
654
+ #define TCNT1L0 0
655
+ #define TCNT1L1 1
656
+ #define TCNT1L2 2
657
+ #define TCNT1L3 3
658
+ #define TCNT1L4 4
659
+ #define TCNT1L5 5
660
+ #define TCNT1L6 6
661
+ #define TCNT1L7 7
662
+
663
+ #define TCNT1H _SFR_MEM8(0x85)
664
+ #define TCNT1H0 0
665
+ #define TCNT1H1 1
666
+ #define TCNT1H2 2
667
+ #define TCNT1H3 3
668
+ #define TCNT1H4 4
669
+ #define TCNT1H5 5
670
+ #define TCNT1H6 6
671
+ #define TCNT1H7 7
672
+
673
+ #define ICR1 _SFR_MEM16(0x86)
674
+
675
+ #define ICR1L _SFR_MEM8(0x86)
676
+ #define ICR1L0 0
677
+ #define ICR1L1 1
678
+ #define ICR1L2 2
679
+ #define ICR1L3 3
680
+ #define ICR1L4 4
681
+ #define ICR1L5 5
682
+ #define ICR1L6 6
683
+ #define ICR1L7 7
684
+
685
+ #define ICR1H _SFR_MEM8(0x87)
686
+ #define ICR1H0 0
687
+ #define ICR1H1 1
688
+ #define ICR1H2 2
689
+ #define ICR1H3 3
690
+ #define ICR1H4 4
691
+ #define ICR1H5 5
692
+ #define ICR1H6 6
693
+ #define ICR1H7 7
694
+
695
+ #define OCR1A _SFR_MEM16(0x88)
696
+
697
+ #define OCR1AL _SFR_MEM8(0x88)
698
+ #define OCR1AL0 0
699
+ #define OCR1AL1 1
700
+ #define OCR1AL2 2
701
+ #define OCR1AL3 3
702
+ #define OCR1AL4 4
703
+ #define OCR1AL5 5
704
+ #define OCR1AL6 6
705
+ #define OCR1AL7 7
706
+
707
+ #define OCR1AH _SFR_MEM8(0x89)
708
+ #define OCR1AH0 0
709
+ #define OCR1AH1 1
710
+ #define OCR1AH2 2
711
+ #define OCR1AH3 3
712
+ #define OCR1AH4 4
713
+ #define OCR1AH5 5
714
+ #define OCR1AH6 6
715
+ #define OCR1AH7 7
716
+
717
+ #define OCR1B _SFR_MEM16(0x8A)
718
+
719
+ #define OCR1BL _SFR_MEM8(0x8A)
720
+ #define OCR1BL0 0
721
+ #define OCR1BL1 1
722
+ #define OCR1BL2 2
723
+ #define OCR1BL3 3
724
+ #define OCR1BL4 4
725
+ #define OCR1BL5 5
726
+ #define OCR1BL6 6
727
+ #define OCR1BL7 7
728
+
729
+ #define OCR1BH _SFR_MEM8(0x8B)
730
+ #define OCR1BH0 0
731
+ #define OCR1BH1 1
732
+ #define OCR1BH2 2
733
+ #define OCR1BH3 3
734
+ #define OCR1BH4 4
735
+ #define OCR1BH5 5
736
+ #define OCR1BH6 6
737
+ #define OCR1BH7 7
738
+
739
+ #define OCR1C _SFR_MEM16(0x8C)
740
+
741
+ #define OCR1CL _SFR_MEM8(0x8C)
742
+ #define OCR1CL0 0
743
+ #define OCR1CL1 1
744
+ #define OCR1CL2 2
745
+ #define OCR1CL3 3
746
+ #define OCR1CL4 4
747
+ #define OCR1CL5 5
748
+ #define OCR1CL6 6
749
+ #define OCR1CL7 7
750
+
751
+ #define OCR1CH _SFR_MEM8(0x8D)
752
+ #define OCR1CH0 0
753
+ #define OCR1CH1 1
754
+ #define OCR1CH2 2
755
+ #define OCR1CH3 3
756
+ #define OCR1CH4 4
757
+ #define OCR1CH5 5
758
+ #define OCR1CH6 6
759
+ #define OCR1CH7 7
760
+
761
+ /* Reserved [0x8E..0x8F] */
762
+
763
+ #define TCCR3A _SFR_MEM8(0x90)
764
+ #define WGM30 0
765
+ #define WGM31 1
766
+ #define COM3C0 2
767
+ #define COM3C1 3
768
+ #define COM3B0 4
769
+ #define COM3B1 5
770
+ #define COM3A0 6
771
+ #define COM3A1 7
772
+
773
+ #define TCCR3B _SFR_MEM8(0x91)
774
+ #define CS30 0
775
+ #define CS31 1
776
+ #define CS32 2
777
+ #define WGM32 3
778
+ #define WGM33 4
779
+ #define ICES3 6
780
+ #define ICNC3 7
781
+
782
+ #define TCCR3C _SFR_MEM8(0x92)
783
+ #define FOC3C 5
784
+ #define FOC3B 6
785
+ #define FOC3A 7
786
+
787
+ /* Reserved [0x93] */
788
+
789
+ #define TCNT3 _SFR_MEM16(0x94)
790
+
791
+ #define TCNT3L _SFR_MEM8(0x94)
792
+ #define TCNT3L0 0
793
+ #define TCNT3L1 1
794
+ #define TCNT3L2 2
795
+ #define TCNT3L3 3
796
+ #define TCNT3L4 4
797
+ #define TCNT3L5 5
798
+ #define TCNT3L6 6
799
+ #define TCNT3L7 7
800
+
801
+ #define TCNT3H _SFR_MEM8(0x95)
802
+ #define TCNT3H0 0
803
+ #define TCNT3H1 1
804
+ #define TCNT3H2 2
805
+ #define TCNT3H3 3
806
+ #define TCNT3H4 4
807
+ #define TCNT3H5 5
808
+ #define TCNT3H6 6
809
+ #define TCNT3H7 7
810
+
811
+ #define ICR3 _SFR_MEM16(0x96)
812
+
813
+ #define ICR3L _SFR_MEM8(0x96)
814
+ #define ICR3L0 0
815
+ #define ICR3L1 1
816
+ #define ICR3L2 2
817
+ #define ICR3L3 3
818
+ #define ICR3L4 4
819
+ #define ICR3L5 5
820
+ #define ICR3L6 6
821
+ #define ICR3L7 7
822
+
823
+ #define ICR3H _SFR_MEM8(0x97)
824
+ #define ICR3H0 0
825
+ #define ICR3H1 1
826
+ #define ICR3H2 2
827
+ #define ICR3H3 3
828
+ #define ICR3H4 4
829
+ #define ICR3H5 5
830
+ #define ICR3H6 6
831
+ #define ICR3H7 7
832
+
833
+ #define OCR3A _SFR_MEM16(0x98)
834
+
835
+ #define OCR3AL _SFR_MEM8(0x98)
836
+ #define OCR3AL0 0
837
+ #define OCR3AL1 1
838
+ #define OCR3AL2 2
839
+ #define OCR3AL3 3
840
+ #define OCR3AL4 4
841
+ #define OCR3AL5 5
842
+ #define OCR3AL6 6
843
+ #define OCR3AL7 7
844
+
845
+ #define OCR3AH _SFR_MEM8(0x99)
846
+ #define OCR3AH0 0
847
+ #define OCR3AH1 1
848
+ #define OCR3AH2 2
849
+ #define OCR3AH3 3
850
+ #define OCR3AH4 4
851
+ #define OCR3AH5 5
852
+ #define OCR3AH6 6
853
+ #define OCR3AH7 7
854
+
855
+ #define OCR3B _SFR_MEM16(0x9A)
856
+
857
+ #define OCR3BL _SFR_MEM8(0x9A)
858
+ #define OCR3BL0 0
859
+ #define OCR3BL1 1
860
+ #define OCR3BL2 2
861
+ #define OCR3BL3 3
862
+ #define OCR3BL4 4
863
+ #define OCR3BL5 5
864
+ #define OCR3BL6 6
865
+ #define OCR3BL7 7
866
+
867
+ #define OCR3BH _SFR_MEM8(0x9B)
868
+ #define OCR3BH0 0
869
+ #define OCR3BH1 1
870
+ #define OCR3BH2 2
871
+ #define OCR3BH3 3
872
+ #define OCR3BH4 4
873
+ #define OCR3BH5 5
874
+ #define OCR3BH6 6
875
+ #define OCR3BH7 7
876
+
877
+ #define OCR3C _SFR_MEM16(0x9C)
878
+
879
+ #define OCR3CL _SFR_MEM8(0x9C)
880
+ #define OCR3CL0 0
881
+ #define OCR3CL1 1
882
+ #define OCR3CL2 2
883
+ #define OCR3CL3 3
884
+ #define OCR3CL4 4
885
+ #define OCR3CL5 5
886
+ #define OCR3CL6 6
887
+ #define OCR3CL7 7
888
+
889
+ #define OCR3CH _SFR_MEM8(0x9D)
890
+ #define OCR3CH0 0
891
+ #define OCR3CH1 1
892
+ #define OCR3CH2 2
893
+ #define OCR3CH3 3
894
+ #define OCR3CH4 4
895
+ #define OCR3CH5 5
896
+ #define OCR3CH6 6
897
+ #define OCR3CH7 7
898
+
899
+ /* Reserved [0x9E..0xB7] */
900
+
901
+ #define TWBR _SFR_MEM8(0xB8)
902
+ #define TWBR0 0
903
+ #define TWBR1 1
904
+ #define TWBR2 2
905
+ #define TWBR3 3
906
+ #define TWBR4 4
907
+ #define TWBR5 5
908
+ #define TWBR6 6
909
+ #define TWBR7 7
910
+
911
+ #define TWSR _SFR_MEM8(0xB9)
912
+ #define TWPS0 0
913
+ #define TWPS1 1
914
+ #define TWS3 3
915
+ #define TWS4 4
916
+ #define TWS5 5
917
+ #define TWS6 6
918
+ #define TWS7 7
919
+
920
+ #define TWAR _SFR_MEM8(0xBA)
921
+ #define TWGCE 0
922
+ #define TWA0 1
923
+ #define TWA1 2
924
+ #define TWA2 3
925
+ #define TWA3 4
926
+ #define TWA4 5
927
+ #define TWA5 6
928
+ #define TWA6 7
929
+
930
+ #define TWDR _SFR_MEM8(0xBB)
931
+ #define TWD0 0
932
+ #define TWD1 1
933
+ #define TWD2 2
934
+ #define TWD3 3
935
+ #define TWD4 4
936
+ #define TWD5 5
937
+ #define TWD6 6
938
+ #define TWD7 7
939
+
940
+ #define TWCR _SFR_MEM8(0xBC)
941
+ #define TWIE 0
942
+ #define TWEN 2
943
+ #define TWWC 3
944
+ #define TWSTO 4
945
+ #define TWSTA 5
946
+ #define TWEA 6
947
+ #define TWINT 7
948
+
949
+ #define TWAMR _SFR_MEM8(0xBD)
950
+ #define TWAM0 1
951
+ #define TWAM1 2
952
+ #define TWAM2 3
953
+ #define TWAM3 4
954
+ #define TWAM4 5
955
+ #define TWAM5 6
956
+ #define TWAM6 7
957
+
958
+ #define TCNT4 _SFR_MEM16(0xBE)
959
+
960
+ #define TCNT4L _SFR_MEM8(0xBE)
961
+ #define TC40 0
962
+ #define TC41 1
963
+ #define TC42 2
964
+ #define TC43 3
965
+ #define TC44 4
966
+ #define TC45 5
967
+ #define TC46 6
968
+ #define TC47 7
969
+
970
+ #define TCNT4H _SFR_MEM8(0xBF) /* Alias for naming consistency. */
971
+ #define TC4H _SFR_MEM8(0xBF) /* Per XML device file. */
972
+ #define TC48 0
973
+ #define TC49 1
974
+ #define TC410 2
975
+
976
+ #define TCCR4A _SFR_MEM8(0xC0)
977
+ #define PWM4B 0
978
+ #define PWM4A 1
979
+ #define FOC4B 2
980
+ #define FOC4A 3
981
+ #define COM4B0 4
982
+ #define COM4B1 5
983
+ #define COM4A0 6
984
+ #define COM4A1 7
985
+
986
+ #define TCCR4B _SFR_MEM8(0xC1)
987
+ #define CS40 0
988
+ #define CS41 1
989
+ #define CS42 2
990
+ #define CS43 3
991
+ #define DTPS40 4
992
+ #define DTPS41 5
993
+ #define PSR4 6
994
+ #define PWM4X 7
995
+
996
+ #define TCCR4C _SFR_MEM8(0xC2)
997
+ #define PWM4D 0
998
+ #define FOC4D 1
999
+ #define COM4D0 2
1000
+ #define COM4D1 3
1001
+ #define COM4B0S 4
1002
+ #define COM4B1S 5
1003
+ #define COM4A0S 6
1004
+ #define COM4A1S 7
1005
+
1006
+ #define TCCR4D _SFR_MEM8(0xC3)
1007
+ #define WGM40 0
1008
+ #define WGM41 1
1009
+ #define FPF4 2
1010
+ #define FPAC4 3
1011
+ #define FPES4 4
1012
+ #define FPNC4 5
1013
+ #define FPEN4 6
1014
+ #define FPIE4 7
1015
+
1016
+ #define TCCR4E _SFR_MEM8(0xC4)
1017
+ #define OC4OE0 0
1018
+ #define OC4OE1 1
1019
+ #define OC4OE2 2
1020
+ #define OC4OE3 3
1021
+ #define OC4OE4 4
1022
+ #define OC4OE5 5
1023
+ #define ENHC4 6
1024
+ #define TLOCK4 7
1025
+
1026
+ #define CLKSEL0 _SFR_MEM8(0xC5)
1027
+ #define CLKS 0
1028
+ #define EXTE 2
1029
+ #define RCE 3
1030
+ #define EXSUT0 4
1031
+ #define EXSUT1 5
1032
+ #define RCSUT0 6
1033
+ #define RCSUT1 7
1034
+
1035
+ #define CLKSEL1 _SFR_MEM8(0xC6)
1036
+ #define EXCKSEL0 0
1037
+ #define EXCKSEL1 1
1038
+ #define EXCKSEL2 2
1039
+ #define EXCKSEL3 3
1040
+ #define RCCKSEL0 4
1041
+ #define RCCKSEL1 5
1042
+ #define RCCKSEL2 6
1043
+ #define RCCKSEL3 7
1044
+
1045
+ #define CLKSTA _SFR_MEM8(0xC7)
1046
+ #define EXTON 0
1047
+ #define RCON 1
1048
+
1049
+ #define UCSR1A _SFR_MEM8(0xC8)
1050
+ #define MPCM1 0
1051
+ #define U2X1 1
1052
+ #define UPE1 2
1053
+ #define DOR1 3
1054
+ #define FE1 4
1055
+ #define UDRE1 5
1056
+ #define TXC1 6
1057
+ #define RXC1 7
1058
+
1059
+ #define UCSR1B _SFR_MEM8(0xC9)
1060
+ #define TXB81 0
1061
+ #define RXB81 1
1062
+ #define UCSZ12 2
1063
+ #define TXEN1 3
1064
+ #define RXEN1 4
1065
+ #define UDRIE1 5
1066
+ #define TXCIE1 6
1067
+ #define RXCIE1 7
1068
+
1069
+ #define UCSR1C _SFR_MEM8(0xCA)
1070
+ #define UCPOL1 0
1071
+ #define UCSZ10 1
1072
+ #define UCSZ11 2
1073
+ #define USBS1 3
1074
+ #define UPM10 4
1075
+ #define UPM11 5
1076
+ #define UMSEL10 6
1077
+ #define UMSEL11 7
1078
+
1079
+ #define UCSR1D _SFR_MEM8(0xCB)
1080
+ #define RTSEN 0
1081
+ #define CTSEN 1
1082
+
1083
+ #define UBRR1 _SFR_MEM16(0xCC)
1084
+
1085
+ #define UBRR1L _SFR_MEM8(0xCC)
1086
+
1087
+ #define UBRR1H _SFR_MEM8(0xCD)
1088
+
1089
+ #define UDR1 _SFR_MEM8(0xCE)
1090
+ #define UDR1_0 0
1091
+ #define UDR1_1 1
1092
+ #define UDR1_2 2
1093
+ #define UDR1_3 3
1094
+ #define UDR1_4 4
1095
+ #define UDR1_5 5
1096
+ #define UDR1_6 6
1097
+ #define UDR1_7 7
1098
+
1099
+ #define OCR4A _SFR_MEM8(0xCF)
1100
+ #define OCR4A0 0
1101
+ #define OCR4A1 1
1102
+ #define OCR4A2 2
1103
+ #define OCR4A3 3
1104
+ #define OCR4A4 4
1105
+ #define OCR4A5 5
1106
+ #define OCR4A6 6
1107
+ #define OCR4A7 7
1108
+
1109
+ #define OCR4B _SFR_MEM8(0xD0)
1110
+ #define OCR4B0 0
1111
+ #define OCR4B1 1
1112
+ #define OCR4B2 2
1113
+ #define OCR4B3 3
1114
+ #define OCR4B4 4
1115
+ #define OCR4B5 5
1116
+ #define OCR4B6 6
1117
+ #define OCR4B7 7
1118
+
1119
+ #define OCR4C _SFR_MEM8(0xD1)
1120
+ #define OCR4C0 0
1121
+ #define OCR4C1 1
1122
+ #define OCR4C2 2
1123
+ #define OCR4C3 3
1124
+ #define OCR4C4 4
1125
+ #define OCR4C5 5
1126
+ #define OCR4C6 6
1127
+ #define OCR4C7 7
1128
+
1129
+ #define OCR4D _SFR_MEM8(0xD2)
1130
+ #define OCR4D0 0
1131
+ #define OCR4D1 1
1132
+ #define OCR4D2 2
1133
+ #define OCR4D3 3
1134
+ #define OCR4D4 4
1135
+ #define OCR4D5 5
1136
+ #define OCR4D6 6
1137
+ #define OCR4D7 7
1138
+
1139
+ /* Reserved [0xD3] */
1140
+
1141
+ #define DT4 _SFR_MEM8(0xD4)
1142
+ #define DT4L0 0
1143
+ #define DT4L1 1
1144
+ #define DT4L2 2
1145
+ #define DT4L3 3
1146
+ #define DT4L4 4
1147
+ #define DT4L5 5
1148
+ #define DT4L6 6
1149
+ #define DT4L7 7
1150
+
1151
+ /* Reserved [0xD5..0xD6] */
1152
+
1153
+ #define UHWCON _SFR_MEM8(0xD7)
1154
+ #define UVREGE 0
1155
+
1156
+ #define USBCON _SFR_MEM8(0xD8)
1157
+ #define VBUSTE 0
1158
+ #define OTGPADE 4
1159
+ #define FRZCLK 5
1160
+ #define USBE 7
1161
+
1162
+ #define USBSTA _SFR_MEM8(0xD9)
1163
+ #define VBUS 0
1164
+ #define SPEED 3
1165
+
1166
+ #define USBINT _SFR_MEM8(0xDA)
1167
+ #define VBUSTI 0
1168
+
1169
+ /* Reserved [0xDB..0xDF] */
1170
+
1171
+ #define UDCON _SFR_MEM8(0xE0)
1172
+ #define DETACH 0
1173
+ #define RMWKUP 1
1174
+ #define LSM 2
1175
+ #define RSTCPU 3
1176
+
1177
+ #define UDINT _SFR_MEM8(0xE1)
1178
+ #define SUSPI 0
1179
+ #define SOFI 2
1180
+ #define EORSTI 3
1181
+ #define WAKEUPI 4
1182
+ #define EORSMI 5
1183
+ #define UPRSMI 6
1184
+
1185
+ #define UDIEN _SFR_MEM8(0xE2)
1186
+ #define SUSPE 0
1187
+ #define SOFE 2
1188
+ #define EORSTE 3
1189
+ #define WAKEUPE 4
1190
+ #define EORSME 5
1191
+ #define UPRSME 6
1192
+
1193
+ #define UDADDR _SFR_MEM8(0xE3)
1194
+ #define UADD0 0
1195
+ #define UADD1 1
1196
+ #define UADD2 2
1197
+ #define UADD3 3
1198
+ #define UADD4 4
1199
+ #define UADD5 5
1200
+ #define UADD6 6
1201
+ #define ADDEN 7
1202
+
1203
+ #define UDFNUM _SFR_MEM16(0xE4)
1204
+
1205
+ #define UDFNUML _SFR_MEM8(0xE4)
1206
+ #define FNUM0 0
1207
+ #define FNUM1 1
1208
+ #define FNUM2 2
1209
+ #define FNUM3 3
1210
+ #define FNUM4 4
1211
+ #define FNUM5 5
1212
+ #define FNUM6 6
1213
+ #define FNUM7 7
1214
+
1215
+ #define UDFNUMH _SFR_MEM8(0xE5)
1216
+ #define FNUM8 0
1217
+ #define FNUM9 1
1218
+ #define FNUM10 2
1219
+
1220
+ #define UDMFN _SFR_MEM8(0xE6)
1221
+ #define FNCERR 4
1222
+
1223
+ /* Reserved [0xE7] */
1224
+
1225
+ #define UEINTX _SFR_MEM8(0xE8)
1226
+ #define TXINI 0
1227
+ #define STALLEDI 1
1228
+ #define RXOUTI 2
1229
+ #define RXSTPI 3
1230
+ #define NAKOUTI 4
1231
+ #define RWAL 5
1232
+ #define NAKINI 6
1233
+ #define FIFOCON 7
1234
+
1235
+ #define UENUM _SFR_MEM8(0xE9)
1236
+ #define UENUM_0 0
1237
+ #define UENUM_1 1
1238
+ #define UENUM_2 2
1239
+
1240
+ #define UERST _SFR_MEM8(0xEA)
1241
+ #define EPRST0 0
1242
+ #define EPRST1 1
1243
+ #define EPRST2 2
1244
+ #define EPRST3 3
1245
+ #define EPRST4 4
1246
+ #define EPRST5 5
1247
+ #define EPRST6 6
1248
+
1249
+ #define UECONX _SFR_MEM8(0xEB)
1250
+ #define EPEN 0
1251
+ #define RSTDT 3
1252
+ #define STALLRQC 4
1253
+ #define STALLRQ 5
1254
+
1255
+ #define UECFG0X _SFR_MEM8(0xEC)
1256
+ #define EPDIR 0
1257
+ #define EPTYPE0 6
1258
+ #define EPTYPE1 7
1259
+
1260
+ #define UECFG1X _SFR_MEM8(0xED)
1261
+ #define ALLOC 1
1262
+ #define EPBK0 2
1263
+ #define EPBK1 3
1264
+ #define EPSIZE0 4
1265
+ #define EPSIZE1 5
1266
+ #define EPSIZE2 6
1267
+
1268
+ #define UESTA0X _SFR_MEM8(0xEE)
1269
+ #define NBUSYBK0 0
1270
+ #define NBUSYBK1 1
1271
+ #define DTSEQ0 2
1272
+ #define DTSEQ1 3
1273
+ #define UNDERFI 5
1274
+ #define OVERFI 6
1275
+ #define CFGOK 7
1276
+
1277
+ #define UESTA1X _SFR_MEM8(0xEF)
1278
+ #define CURRBK0 0
1279
+ #define CURRBK1 1
1280
+ #define CTRLDIR 2
1281
+
1282
+ #define UEIENX _SFR_MEM8(0xF0)
1283
+ #define TXINE 0
1284
+ #define STALLEDE 1
1285
+ #define RXOUTE 2
1286
+ #define RXSTPE 3
1287
+ #define NAKOUTE 4
1288
+ #define NAKINE 6
1289
+ #define FLERRE 7
1290
+
1291
+ #define UEDATX _SFR_MEM8(0xF1)
1292
+ #define DAT0 0
1293
+ #define DAT1 1
1294
+ #define DAT2 2
1295
+ #define DAT3 3
1296
+ #define DAT4 4
1297
+ #define DAT5 5
1298
+ #define DAT6 6
1299
+ #define DAT7 7
1300
+
1301
+ #define UEBCX _SFR_MEM16(0xF2)
1302
+
1303
+ #define UEBCLX _SFR_MEM8(0xF2)
1304
+ #define BYCT0 0
1305
+ #define BYCT1 1
1306
+ #define BYCT2 2
1307
+ #define BYCT3 3
1308
+ #define BYCT4 4
1309
+ #define BYCT5 5
1310
+ #define BYCT6 6
1311
+ #define BYCT7 7
1312
+
1313
+ #define UEBCHX _SFR_MEM8(0xF3)
1314
+
1315
+ #define UEINT _SFR_MEM8(0xF4)
1316
+ #define EPINT0 0
1317
+ #define EPINT1 1
1318
+ #define EPINT2 2
1319
+ #define EPINT3 3
1320
+ #define EPINT4 4
1321
+ #define EPINT5 5
1322
+ #define EPINT6 6
1323
+
1324
+
1325
+
1326
+
1327
+ /* Interrupt Vectors */
1328
+ /* Interrupt Vector 0 is the reset vector. */
1329
+
1330
+ #define INT0_vect_num 1
1331
+ #define INT0_vect _VECTOR(1) /* External Interrupt Request 0 */
1332
+
1333
+ #define INT1_vect_num 2
1334
+ #define INT1_vect _VECTOR(2) /* External Interrupt Request 1 */
1335
+
1336
+ #define INT2_vect_num 3
1337
+ #define INT2_vect _VECTOR(3) /* External Interrupt Request 2 */
1338
+
1339
+ #define INT3_vect_num 4
1340
+ #define INT3_vect _VECTOR(4) /* External Interrupt Request 3 */
1341
+
1342
+ #define INT6_vect_num 7
1343
+ #define INT6_vect _VECTOR(7) /* External Interrupt Request 6 */
1344
+
1345
+ #define PCINT0_vect_num 9
1346
+ #define PCINT0_vect _VECTOR(9) /* Pin Change Interrupt Request 0 */
1347
+
1348
+ #define USB_GEN_vect_num 10
1349
+ #define USB_GEN_vect _VECTOR(10) /* USB General Interrupt Request */
1350
+
1351
+ #define USB_COM_vect_num 11
1352
+ #define USB_COM_vect _VECTOR(11) /* USB Endpoint/Pipe Interrupt Communication Request */
1353
+
1354
+ #define WDT_vect_num 12
1355
+ #define WDT_vect _VECTOR(12) /* Watchdog Time-out Interrupt */
1356
+
1357
+ #define TIMER1_CAPT_vect_num 16
1358
+ #define TIMER1_CAPT_vect _VECTOR(16) /* Timer/Counter1 Capture Event */
1359
+
1360
+ #define TIMER1_COMPA_vect_num 17
1361
+ #define TIMER1_COMPA_vect _VECTOR(17) /* Timer/Counter1 Compare Match A */
1362
+
1363
+ #define TIMER1_COMPB_vect_num 18
1364
+ #define TIMER1_COMPB_vect _VECTOR(18) /* Timer/Counter1 Compare Match B */
1365
+
1366
+ #define TIMER1_COMPC_vect_num 19
1367
+ #define TIMER1_COMPC_vect _VECTOR(19) /* Timer/Counter1 Compare Match C */
1368
+
1369
+ #define TIMER1_OVF_vect_num 20
1370
+ #define TIMER1_OVF_vect _VECTOR(20) /* Timer/Counter1 Overflow */
1371
+
1372
+ #define TIMER0_COMPA_vect_num 21
1373
+ #define TIMER0_COMPA_vect _VECTOR(21) /* Timer/Counter0 Compare Match A */
1374
+
1375
+ #define TIMER0_COMPB_vect_num 22
1376
+ #define TIMER0_COMPB_vect _VECTOR(22) /* Timer/Counter0 Compare Match B */
1377
+
1378
+ #define TIMER0_OVF_vect_num 23
1379
+ #define TIMER0_OVF_vect _VECTOR(23) /* Timer/Counter0 Overflow */
1380
+
1381
+ #define SPI_STC_vect_num 24
1382
+ #define SPI_STC_vect _VECTOR(24) /* SPI Serial Transfer Complete */
1383
+
1384
+ #define USART1_RX_vect_num 25
1385
+ #define USART1_RX_vect _VECTOR(25) /* USART1, Rx Complete */
1386
+
1387
+ #define USART1_UDRE_vect_num 26
1388
+ #define USART1_UDRE_vect _VECTOR(26) /* USART1 Data register Empty */
1389
+
1390
+ #define USART1_TX_vect_num 27
1391
+ #define USART1_TX_vect _VECTOR(27) /* USART1, Tx Complete */
1392
+
1393
+ #define ANALOG_COMP_vect_num 28
1394
+ #define ANALOG_COMP_vect _VECTOR(28) /* Analog Comparator */
1395
+
1396
+ #define ADC_vect_num 29
1397
+ #define ADC_vect _VECTOR(29) /* ADC Conversion Complete */
1398
+
1399
+ #define EE_READY_vect_num 30
1400
+ #define EE_READY_vect _VECTOR(30) /* EEPROM Ready */
1401
+
1402
+ #define TIMER3_CAPT_vect_num 31
1403
+ #define TIMER3_CAPT_vect _VECTOR(31) /* Timer/Counter3 Capture Event */
1404
+
1405
+ #define TIMER3_COMPA_vect_num 32
1406
+ #define TIMER3_COMPA_vect _VECTOR(32) /* Timer/Counter3 Compare Match A */
1407
+
1408
+ #define TIMER3_COMPB_vect_num 33
1409
+ #define TIMER3_COMPB_vect _VECTOR(33) /* Timer/Counter3 Compare Match B */
1410
+
1411
+ #define TIMER3_COMPC_vect_num 34
1412
+ #define TIMER3_COMPC_vect _VECTOR(34) /* Timer/Counter3 Compare Match C */
1413
+
1414
+ #define TIMER3_OVF_vect_num 35
1415
+ #define TIMER3_OVF_vect _VECTOR(35) /* Timer/Counter3 Overflow */
1416
+
1417
+ #define TWI_vect_num 36
1418
+ #define TWI_vect _VECTOR(36) /* 2-wire Serial Interface */
1419
+
1420
+ #define SPM_READY_vect_num 37
1421
+ #define SPM_READY_vect _VECTOR(37) /* Store Program Memory Read */
1422
+
1423
+ #define TIMER4_COMPA_vect_num 38
1424
+ #define TIMER4_COMPA_vect _VECTOR(38) /* Timer/Counter4 Compare Match A */
1425
+
1426
+ #define TIMER4_COMPB_vect_num 39
1427
+ #define TIMER4_COMPB_vect _VECTOR(39) /* Timer/Counter4 Compare Match B */
1428
+
1429
+ #define TIMER4_COMPD_vect_num 40
1430
+ #define TIMER4_COMPD_vect _VECTOR(40) /* Timer/Counter4 Compare Match D */
1431
+
1432
+ #define TIMER4_OVF_vect_num 41
1433
+ #define TIMER4_OVF_vect _VECTOR(41) /* Timer/Counter4 Overflow */
1434
+
1435
+ #define TIMER4_FPF_vect_num 42
1436
+ #define TIMER4_FPF_vect _VECTOR(42) /* Timer/Counter4 Fault Protection Interrupt */
1437
+
1438
+ #define _VECTORS_SIZE (43 * 4)
1439
+
1440
+
1441
+
1442
+ /* Constants */
1443
+ #define SPM_PAGESIZE (128)
1444
+ #define RAMSTART (0x100)
1445
+ #define RAMSIZE (0xA00)
1446
+ #define RAMEND (RAMSTART + RAMSIZE - 1) /* Last On-Chip SRAM Location */
1447
+ #define XRAMSTART (0x2200)
1448
+ #define XRAMSIZE (0x10000)
1449
+ #define XRAMEND (XRAMSIZE - 1)
1450
+ #define E2END (0x3FF)
1451
+ #define E2PAGESIZE (4)
1452
+ #define FLASHEND (0x7FFF)
1453
+
1454
+
1455
+
1456
+ /* Fuses */
1457
+ #define FUSE_MEMORY_SIZE 3
1458
+
1459
+ /* Low Fuse Byte */
1460
+ #define FUSE_CKSEL0 (unsigned char)~_BV(0) /* Select Clock Source */
1461
+ #define FUSE_CKSEL1 (unsigned char)~_BV(1) /* Select Clock Source */
1462
+ #define FUSE_CKSEL2 (unsigned char)~_BV(2) /* Select Clock Source */
1463
+ #define FUSE_CKSEL3 (unsigned char)~_BV(3) /* Select Clock Source */
1464
+ #define FUSE_SUT0 (unsigned char)~_BV(4) /* Select start-up time */
1465
+ #define FUSE_SUT1 (unsigned char)~_BV(5) /* Select start-up time */
1466
+ #define FUSE_CKOUT (unsigned char)~_BV(6) /* Oscillator options */
1467
+ #define FUSE_CKDIV8 (unsigned char)~_BV(7) /* Divide clock by 8 */
1468
+ #define LFUSE_DEFAULT (FUSE_CKSEL1 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT1 & FUSE_CKDIV8)
1469
+
1470
+ /* High Fuse Byte */
1471
+ #define FUSE_BOOTRST (unsigned char)~_BV(0) /* Select Reset Vector */
1472
+ #define FUSE_BOOTSZ0 (unsigned char)~_BV(1) /* Select Boot Size */
1473
+ #define FUSE_BOOTSZ1 (unsigned char)~_BV(2) /* Select Boot Size */
1474
+ #define FUSE_EESAVE (unsigned char)~_BV(3) /* EEPROM memory is preserved through chip erase */
1475
+ #define FUSE_WDTON (unsigned char)~_BV(4) /* Watchdog timer always on */
1476
+ #define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming and Data Downloading */
1477
+ #define FUSE_JTAGEN (unsigned char)~_BV(6) /* Enable JTAG */
1478
+ #define FUSE_OCDEN (unsigned char)~_BV(7) /* Enable OCD */
1479
+ #define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_SPIEN)
1480
+
1481
+ /* Extended Fuse Byte */
1482
+ #define FUSE_BODLEVEL0 (unsigned char)~_BV(0) /* Brown-out Detector trigger level */
1483
+ #define FUSE_BODLEVEL1 (unsigned char)~_BV(1) /* Brown-out Detector trigger level */
1484
+ #define FUSE_BODLEVEL2 (unsigned char)~_BV(2) /* Brown-out Detector trigger level */
1485
+ #define FUSE_HWBE (unsigned char)~_BV(3) /* Hardware Boot Enable */
1486
+ #define EFUSE_DEFAULT (0xFF)
1487
+
1488
+
1489
+
1490
+ /* Lock Bits */
1491
+ #define __LOCK_BITS_EXIST
1492
+ #define __BOOT_LOCK_BITS_0_EXIST
1493
+ #define __BOOT_LOCK_BITS_1_EXIST
1494
+
1495
+
1496
+
1497
+ /* Signature */
1498
+ #define SIGNATURE_0 0x1E
1499
+ #define SIGNATURE_1 0x95
1500
+ #define SIGNATURE_2 0x87
1501
+
1502
+
1503
+
1504
+ #define SLEEP_MODE_IDLE (0x00<<1)
1505
+ #define SLEEP_MODE_ADC (0x01<<1)
1506
+ #define SLEEP_MODE_PWR_DOWN (0x02<<1)
1507
+ #define SLEEP_MODE_PWR_SAVE (0x03<<1)
1508
+ #define SLEEP_MODE_STANDBY (0x06<<1)
1509
+ #define SLEEP_MODE_EXT_STANDBY (0x07<<1)
1510
+
1511
+
1512
+ #endif /* _AVR_IOM32U4_H_ */