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,1431 @@
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
+ /* $Id: iom32u6.h 1873 2009-02-11 17:53:39Z arcanum $ */
32
+
33
+ /* avr/iom32u6.h - definitions for ATmega32U6 */
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_ "iom32u6.h"
43
+ #else
44
+ # error "Attempt to include more than one <avr/ioXXX.h> file."
45
+ #endif
46
+
47
+
48
+ #ifndef _AVR_ATmega32U6_H_
49
+ #define _AVR_ATmega32U6_H_ 1
50
+
51
+
52
+ /* Registers and associated bit numbers. */
53
+
54
+ #define PINA _SFR_IO8(0x00)
55
+ #define PINA0 0
56
+ #define PINA1 1
57
+ #define PINA2 2
58
+ #define PINA3 3
59
+ #define PINA4 4
60
+ #define PINA5 5
61
+ #define PINA6 6
62
+ #define PINA7 7
63
+
64
+ #define DDRA _SFR_IO8(0x01)
65
+ #define DDA0 0
66
+ #define DDA1 1
67
+ #define DDA2 2
68
+ #define DDA3 3
69
+ #define DDA4 4
70
+ #define DDA5 5
71
+ #define DDA6 6
72
+ #define DDA7 7
73
+
74
+ #define PORTA _SFR_IO8(0x02)
75
+ #define PORTA0 0
76
+ #define PORTA1 1
77
+ #define PORTA2 2
78
+ #define PORTA3 3
79
+ #define PORTA4 4
80
+ #define PORTA5 5
81
+ #define PORTA6 6
82
+ #define PORTA7 7
83
+
84
+ #define PINB _SFR_IO8(0x03)
85
+ #define PINB0 0
86
+ #define PINB1 1
87
+ #define PINB2 2
88
+ #define PINB3 3
89
+ #define PINB4 4
90
+ #define PINB5 5
91
+ #define PINB6 6
92
+ #define PINB7 7
93
+
94
+ #define DDRB _SFR_IO8(0x04)
95
+ #define DDB0 0
96
+ #define DDB1 1
97
+ #define DDB2 2
98
+ #define DDB3 3
99
+ #define DDB4 4
100
+ #define DDB5 5
101
+ #define DDB6 6
102
+ #define DDB7 7
103
+
104
+ #define PORTB _SFR_IO8(0x05)
105
+ #define PORTB0 0
106
+ #define PORTB1 1
107
+ #define PORTB2 2
108
+ #define PORTB3 3
109
+ #define PORTB4 4
110
+ #define PORTB5 5
111
+ #define PORTB6 6
112
+ #define PORTB7 7
113
+
114
+ #define PINC _SFR_IO8(0x06)
115
+ #define PINC0 0
116
+ #define PINC1 1
117
+ #define PINC2 2
118
+ #define PINC3 3
119
+ #define PINC4 4
120
+ #define PINC5 5
121
+ #define PINC6 6
122
+ #define PINC7 7
123
+
124
+ #define DDRC _SFR_IO8(0x07)
125
+ #define DDC0 0
126
+ #define DDC1 1
127
+ #define DDC2 2
128
+ #define DDC3 3
129
+ #define DDC4 4
130
+ #define DDC5 5
131
+ #define DDC6 6
132
+ #define DDC7 7
133
+
134
+ #define PORTC _SFR_IO8(0x08)
135
+ #define PORTC0 0
136
+ #define PORTC1 1
137
+ #define PORTC2 2
138
+ #define PORTC3 3
139
+ #define PORTC4 4
140
+ #define PORTC5 5
141
+ #define PORTC6 6
142
+ #define PORTC7 7
143
+
144
+ #define PIND _SFR_IO8(0x09)
145
+ #define PIND0 0
146
+ #define PIND1 1
147
+ #define PIND2 2
148
+ #define PIND3 3
149
+ #define PIND4 4
150
+ #define PIND5 5
151
+ #define PIND6 6
152
+ #define PIND7 7
153
+
154
+ #define DDRD _SFR_IO8(0x0A)
155
+ #define DDD0 0
156
+ #define DDD1 1
157
+ #define DDD2 2
158
+ #define DDD3 3
159
+ #define DDD4 4
160
+ #define DDD5 5
161
+ #define DDD6 6
162
+ #define DDD7 7
163
+
164
+ #define PORTD _SFR_IO8(0x0B)
165
+ #define PORTD0 0
166
+ #define PORTD1 1
167
+ #define PORTD2 2
168
+ #define PORTD3 3
169
+ #define PORTD4 4
170
+ #define PORTD5 5
171
+ #define PORTD6 6
172
+ #define PORTD7 7
173
+
174
+ #define PINE _SFR_IO8(0x0C)
175
+ #define PINE0 0
176
+ #define PINE1 1
177
+ #define PINE2 2
178
+ #define PINE3 3
179
+ #define PINE4 4
180
+ #define PINE5 5
181
+ #define PINE6 6
182
+ #define PINE7 7
183
+
184
+ #define DDRE _SFR_IO8(0x0D)
185
+ #define DDE0 0
186
+ #define DDE1 1
187
+ #define DDE2 2
188
+ #define DDE3 3
189
+ #define DDE4 4
190
+ #define DDE5 5
191
+ #define DDE6 6
192
+ #define DDE7 7
193
+
194
+ #define PORTE _SFR_IO8(0x0E)
195
+ #define PORTE0 0
196
+ #define PORTE1 1
197
+ #define PORTE2 2
198
+ #define PORTE3 3
199
+ #define PORTE4 4
200
+ #define PORTE5 5
201
+ #define PORTE6 6
202
+ #define PORTE7 7
203
+
204
+ #define PINF _SFR_IO8(0x0F)
205
+ #define PINF0 0
206
+ #define PINF1 1
207
+ #define PINF2 2
208
+ #define PINF3 3
209
+ #define PINF4 4
210
+ #define PINF5 5
211
+ #define PINF6 6
212
+ #define PINF7 7
213
+
214
+ #define DDRF _SFR_IO8(0x10)
215
+ #define DDF0 0
216
+ #define DDF1 1
217
+ #define DDF2 2
218
+ #define DDF3 3
219
+ #define DDF4 4
220
+ #define DDF5 5
221
+ #define DDF6 6
222
+ #define DDF7 7
223
+
224
+ #define PORTF _SFR_IO8(0x11)
225
+ #define PORTF0 0
226
+ #define PORTF1 1
227
+ #define PORTF2 2
228
+ #define PORTF3 3
229
+ #define PORTF4 4
230
+ #define PORTF5 5
231
+ #define PORTF6 6
232
+ #define PORTF7 7
233
+
234
+ #define TIFR0 _SFR_IO8(0x15)
235
+ #define TOV0 0
236
+ #define OCF0A 1
237
+ #define OCF0B 2
238
+
239
+ #define TIFR1 _SFR_IO8(0x16)
240
+ #define TOV1 0
241
+ #define OCF1A 1
242
+ #define OCF1B 2
243
+ #define OCF1C 3
244
+ #define ICF1 5
245
+
246
+ #define TIFR2 _SFR_IO8(0x17)
247
+ #define TOV2 0
248
+ #define OCF2A 1
249
+ #define OCF2B 2
250
+
251
+ #define TIFR3 _SFR_IO8(0x18)
252
+ #define TOV3 0
253
+ #define OCF3A 1
254
+ #define OCF3B 2
255
+ #define OCF3C 3
256
+ #define ICF3 5
257
+
258
+ #define PCIFR _SFR_IO8(0x1B)
259
+ #define PCIF0 0
260
+
261
+ #define EIFR _SFR_IO8(0x1C)
262
+ #define INTF0 0
263
+ #define INTF1 1
264
+ #define INTF2 2
265
+ #define INTF3 3
266
+ #define INTF4 4
267
+ #define INTF5 5
268
+ #define INTF6 6
269
+ #define INTF7 7
270
+
271
+ #define EIMSK _SFR_IO8(0x1D)
272
+ #define INT0 0
273
+ #define INT1 1
274
+ #define INT2 2
275
+ #define INT3 3
276
+ #define INT4 4
277
+ #define INT5 5
278
+ #define INT6 6
279
+ #define INT7 7
280
+
281
+ #define GPIOR0 _SFR_IO8(0x1E)
282
+ #define GPIOR00 0
283
+ #define GPIOR01 1
284
+ #define GPIOR02 2
285
+ #define GPIOR03 3
286
+ #define GPIOR04 4
287
+ #define GPIOR05 5
288
+ #define GPIOR06 6
289
+ #define GPIOR07 7
290
+
291
+ #define EECR _SFR_IO8(0x1F)
292
+ #define EERE 0
293
+ #define EEPE 1
294
+ #define EEMPE 2
295
+ #define EERIE 3
296
+ #define EEPM0 4
297
+ #define EEPM1 5
298
+
299
+ #define EEDR _SFR_IO8(0x20)
300
+ #define EEDR0 0
301
+ #define EEDR1 1
302
+ #define EEDR2 2
303
+ #define EEDR3 3
304
+ #define EEDR4 4
305
+ #define EEDR5 5
306
+ #define EEDR6 6
307
+ #define EEDR7 7
308
+
309
+ #define EEAR _SFR_IO16(0x21)
310
+
311
+ #define EEARL _SFR_IO8(0x21)
312
+ #define EEAR0 0
313
+ #define EEAR1 1
314
+ #define EEAR2 2
315
+ #define EEAR3 3
316
+ #define EEAR4 4
317
+ #define EEAR5 5
318
+ #define EEAR6 6
319
+ #define EEAR7 7
320
+
321
+ #define EEARH _SFR_IO8(0x22)
322
+ #define EEAR8 0
323
+ #define EEAR9 1
324
+ #define EEAR10 2
325
+ #define EEAR11 3
326
+
327
+ #define GTCCR _SFR_IO8(0x23)
328
+ #define PSRSYNC 0
329
+ #define PSRASY 1
330
+ #define TSM 7
331
+
332
+ #define TCCR0A _SFR_IO8(0x24)
333
+ #define WGM00 0
334
+ #define WGM01 1
335
+ #define COM0B0 4
336
+ #define COM0B1 5
337
+ #define COM0A0 6
338
+ #define COM0A1 7
339
+
340
+ #define TCCR0B _SFR_IO8(0x25)
341
+ #define CS00 0
342
+ #define CS01 1
343
+ #define CS02 2
344
+ #define WGM02 3
345
+ #define FOC0B 6
346
+ #define FOC0A 7
347
+
348
+ #define TCNT0 _SFR_IO8(0x26)
349
+ #define TCNT0_0 0
350
+ #define TCNT0_1 1
351
+ #define TCNT0_2 2
352
+ #define TCNT0_3 3
353
+ #define TCNT0_4 4
354
+ #define TCNT0_5 5
355
+ #define TCNT0_6 6
356
+ #define TCNT0_7 7
357
+
358
+ #define OCR0A _SFR_IO8(0x27)
359
+ #define OCR0A_0 0
360
+ #define OCR0A_1 1
361
+ #define OCR0A_2 2
362
+ #define OCR0A_3 3
363
+ #define OCR0A_4 4
364
+ #define OCR0A_5 5
365
+ #define OCR0A_6 6
366
+ #define OCR0A_7 7
367
+
368
+ #define OCR0B _SFR_IO8(0x28)
369
+ #define OCR0B_0 0
370
+ #define OCR0B_1 1
371
+ #define OCR0B_2 2
372
+ #define OCR0B_3 3
373
+ #define OCR0B_4 4
374
+ #define OCR0B_5 5
375
+ #define OCR0B_6 6
376
+ #define OCR0B_7 7
377
+
378
+ #define PLLCSR _SFR_IO8(0x29)
379
+ #define PLOCK 0
380
+ #define PLLE 1
381
+ #define PLLP0 2
382
+ #define PLLP1 3
383
+ #define PLLP2 4
384
+
385
+ #define GPIOR1 _SFR_IO8(0x2A)
386
+ #define GPIOR10 0
387
+ #define GPIOR11 1
388
+ #define GPIOR12 2
389
+ #define GPIOR13 3
390
+ #define GPIOR14 4
391
+ #define GPIOR15 5
392
+ #define GPIOR16 6
393
+ #define GPIOR17 7
394
+
395
+ #define GPIOR2 _SFR_IO8(0x2B)
396
+ #define GPIOR20 0
397
+ #define GPIOR21 1
398
+ #define GPIOR22 2
399
+ #define GPIOR23 3
400
+ #define GPIOR24 4
401
+ #define GPIOR25 5
402
+ #define GPIOR26 6
403
+ #define GPIOR27 7
404
+
405
+ #define SPCR _SFR_IO8(0x2C)
406
+ #define SPR0 0
407
+ #define SPR1 1
408
+ #define CPHA 2
409
+ #define CPOL 3
410
+ #define MSTR 4
411
+ #define DORD 5
412
+ #define SPE 6
413
+ #define SPIE 7
414
+
415
+ #define SPSR _SFR_IO8(0x2D)
416
+ #define SPI2X 0
417
+ #define WCOL 6
418
+ #define SPIF 7
419
+
420
+ #define SPDR _SFR_IO8(0x2E)
421
+ #define SPDR0 0
422
+ #define SPDR1 1
423
+ #define SPDR2 2
424
+ #define SPDR3 3
425
+ #define SPDR4 4
426
+ #define SPDR5 5
427
+ #define SPDR6 6
428
+ #define SPDR7 7
429
+
430
+ #define ACSR _SFR_IO8(0x30)
431
+ #define ACIS0 0
432
+ #define ACIS1 1
433
+ #define ACIC 2
434
+ #define ACIE 3
435
+ #define ACI 4
436
+ #define ACO 5
437
+ #define ACBG 6
438
+ #define ACD 7
439
+
440
+ #define OCDR _SFR_IO8(0x31)
441
+ #define OCDR0 0
442
+ #define OCDR1 1
443
+ #define OCDR2 2
444
+ #define OCDR3 3
445
+ #define OCDR4 4
446
+ #define OCDR5 5
447
+ #define OCDR6 6
448
+ #define OCDR7 7
449
+
450
+ #define SMCR _SFR_IO8(0x33)
451
+ #define SE 0
452
+ #define SM0 1
453
+ #define SM1 2
454
+ #define SM2 3
455
+
456
+ #define MCUSR _SFR_IO8(0x34)
457
+ #define PORF 0
458
+ #define EXTRF 1
459
+ #define BORF 2
460
+ #define WDRF 3
461
+ #define JTRF 4
462
+
463
+ #define MCUCR _SFR_IO8(0x35)
464
+ #define IVCE 0
465
+ #define IVSEL 1
466
+ #define PUD 4
467
+ #define JTD 7
468
+
469
+ #define SPMCSR _SFR_IO8(0x37)
470
+ #define SPMEN 0
471
+ #define PGERS 1
472
+ #define PGWRT 2
473
+ #define BLBSET 3
474
+ #define RWWSRE 4
475
+ #define SIGRD 5
476
+ #define RWWSB 6
477
+ #define SPMIE 7
478
+
479
+ #define WDTCSR _SFR_MEM8(0x60)
480
+ #define WDP0 0
481
+ #define WDP1 1
482
+ #define WDP2 2
483
+ #define WDE 3
484
+ #define WDCE 4
485
+ #define WDP3 5
486
+ #define WDIE 6
487
+ #define WDIF 7
488
+
489
+ #define CLKPR _SFR_MEM8(0x61)
490
+ #define CLKPS0 0
491
+ #define CLKPS1 1
492
+ #define CLKPS2 2
493
+ #define CLKPS3 3
494
+ #define CLKPCE 7
495
+
496
+ #define PRR0 _SFR_MEM8(0x64)
497
+ #define PRADC 0
498
+ #define PRSPI 2
499
+ #define PRTIM1 3
500
+ #define PRTIM0 5
501
+ #define PRTIM2 6
502
+ #define PRTWI 7
503
+
504
+ #define __AVR_HAVE_PRR0 ((1<<PRADC)|(1<<PRSPI)|(1<<PRTIM1)|(1<<PRTIM0)|(1<<PRTIM2)|(1<<PRTWI))
505
+ #define __AVR_HAVE_PRR0_PRADC
506
+ #define __AVR_HAVE_PRR0_PRSPI
507
+ #define __AVR_HAVE_PRR0_PRTIM1
508
+ #define __AVR_HAVE_PRR0_PRTIM0
509
+ #define __AVR_HAVE_PRR0_PRTIM2
510
+ #define __AVR_HAVE_PRR0_PRTWI
511
+
512
+ #define PRR1 _SFR_MEM8(0x65)
513
+ #define PRUSART1 0
514
+ #define PRTIM3 3
515
+ #define PRUSB 7
516
+
517
+ #define __AVR_HAVE_PRR1 ((1<<PRUSART1)|(1<<PRTIM3)|(1<<PRUSB))
518
+ #define __AVR_HAVE_PRR1_PRUSART1
519
+ #define __AVR_HAVE_PRR1_PRTIM3
520
+ #define __AVR_HAVE_PRR1_PRUSB
521
+
522
+ #define OSCCAL _SFR_MEM8(0x66)
523
+ #define CAL0 0
524
+ #define CAL1 1
525
+ #define CAL2 2
526
+ #define CAL3 3
527
+ #define CAL4 4
528
+ #define CAL5 5
529
+ #define CAL6 6
530
+ #define CAL7 7
531
+
532
+ #define PCICR _SFR_MEM8(0x68)
533
+ #define PCIE0 0
534
+
535
+ #define EICRA _SFR_MEM8(0x69)
536
+ #define ISC00 0
537
+ #define ISC01 1
538
+ #define ISC10 2
539
+ #define ISC11 3
540
+ #define ISC20 4
541
+ #define ISC21 5
542
+ #define ISC30 6
543
+ #define ISC31 7
544
+
545
+ #define EICRB _SFR_MEM8(0x6A)
546
+ #define ISC40 0
547
+ #define ISC41 1
548
+ #define ISC50 2
549
+ #define ISC51 3
550
+ #define ISC60 4
551
+ #define ISC61 5
552
+ #define ISC70 6
553
+ #define ISC71 7
554
+
555
+ #define PCMSK0 _SFR_MEM8(0x6B)
556
+ #define PCINT0 0
557
+ #define PCINT1 1
558
+ #define PCINT2 2
559
+ #define PCINT3 3
560
+ #define PCINT4 4
561
+ #define PCINT5 5
562
+ #define PCINT6 6
563
+ #define PCINT7 7
564
+
565
+ #define TIMSK0 _SFR_MEM8(0x6E)
566
+ #define TOIE0 0
567
+ #define OCIE0A 1
568
+ #define OCIE0B 2
569
+
570
+ #define TIMSK1 _SFR_MEM8(0x6F)
571
+ #define TOIE1 0
572
+ #define OCIE1A 1
573
+ #define OCIE1B 2
574
+ #define OCIE1C 3
575
+ #define ICIE1 5
576
+
577
+ #define TIMSK2 _SFR_MEM8(0x70)
578
+ #define TOIE2 0
579
+ #define OCIE2A 1
580
+ #define OCIE2B 2
581
+
582
+ #define TIMSK3 _SFR_MEM8(0x71)
583
+ #define TOIE3 0
584
+ #define OCIE3A 1
585
+ #define OCIE3B 2
586
+ #define OCIE3C 3
587
+ #define ICIE3 5
588
+
589
+ #define XMCRA _SFR_MEM8(0x74)
590
+ #define SRW00 0
591
+ #define SRW01 1
592
+ #define SRW10 2
593
+ #define SRW11 3
594
+ #define SRL0 4
595
+ #define SRL1 5
596
+ #define SRL2 6
597
+ #define SRE 7
598
+
599
+ #define XMCRB _SFR_MEM8(0x75)
600
+ #define XMM0 0
601
+ #define XMM1 1
602
+ #define XMM2 2
603
+ #define XMBK 7
604
+
605
+ #ifndef __ASSEMBLER__
606
+ #define ADC _SFR_MEM16(0x78)
607
+ #endif
608
+ #define ADCW _SFR_MEM16(0x78)
609
+
610
+ #define ADCL _SFR_MEM8(0x78)
611
+ #define ADCL0 0
612
+ #define ADCL1 1
613
+ #define ADCL2 2
614
+ #define ADCL3 3
615
+ #define ADCL4 4
616
+ #define ADCL5 5
617
+ #define ADCL6 6
618
+ #define ADCL7 7
619
+
620
+ #define ADCH _SFR_MEM8(0x79)
621
+ #define ADCH0 0
622
+ #define ADCH1 1
623
+ #define ADCH2 2
624
+ #define ADCH3 3
625
+ #define ADCH4 4
626
+ #define ADCH5 5
627
+ #define ADCH6 6
628
+ #define ADCH7 7
629
+
630
+ #define ADCSRA _SFR_MEM8(0x7A)
631
+ #define ADPS0 0
632
+ #define ADPS1 1
633
+ #define ADPS2 2
634
+ #define ADIE 3
635
+ #define ADIF 4
636
+ #define ADATE 5
637
+ #define ADSC 6
638
+ #define ADEN 7
639
+
640
+ #define ADCSRB _SFR_MEM8(0x7B)
641
+ #define ADTS0 0
642
+ #define ADTS1 1
643
+ #define ADTS2 2
644
+ #define ACME 6
645
+ #define ADHSM 7
646
+
647
+ #define ADMUX _SFR_MEM8(0x7C)
648
+ #define MUX0 0
649
+ #define MUX1 1
650
+ #define MUX2 2
651
+ #define MUX3 3
652
+ #define MUX4 4
653
+ #define ADLAR 5
654
+ #define REFS0 6
655
+ #define REFS1 7
656
+
657
+ #define DIDR0 _SFR_MEM8(0x7E)
658
+ #define ADC0D 0
659
+ #define ADC1D 1
660
+ #define ADC2D 2
661
+ #define ADC3D 3
662
+ #define ADC4D 4
663
+ #define ADC5D 5
664
+ #define ADC6D 6
665
+ #define ADC7D 7
666
+
667
+ #define DIDR1 _SFR_MEM8(0x7F)
668
+ #define AIN0D 0
669
+ #define AIN1D 1
670
+
671
+ #define TCCR1A _SFR_MEM8(0x80)
672
+ #define WGM10 0
673
+ #define WGM11 1
674
+ #define COM1C0 2
675
+ #define COM1C1 3
676
+ #define COM1B0 4
677
+ #define COM1B1 5
678
+ #define COM1A0 6
679
+ #define COM1A1 7
680
+
681
+ #define TCCR1B _SFR_MEM8(0x81)
682
+ #define CS10 0
683
+ #define CS11 1
684
+ #define CS12 2
685
+ #define WGM12 3
686
+ #define WGM13 4
687
+ #define ICES1 6
688
+ #define ICNC1 7
689
+
690
+ #define TCCR1C _SFR_MEM8(0x82)
691
+ #define FOC1C 5
692
+ #define FOC1B 6
693
+ #define FOC1A 7
694
+
695
+ #define TCNT1 _SFR_MEM16(0x84)
696
+
697
+ #define TCNT1L _SFR_MEM8(0x84)
698
+ #define TCNT1L0 0
699
+ #define TCNT1L1 1
700
+ #define TCNT1L2 2
701
+ #define TCNT1L3 3
702
+ #define TCNT1L4 4
703
+ #define TCNT1L5 5
704
+ #define TCNT1L6 6
705
+ #define TCNT1L7 7
706
+
707
+ #define TCNT1H _SFR_MEM8(0x85)
708
+ #define TCNT1H0 0
709
+ #define TCNT1H1 1
710
+ #define TCNT1H2 2
711
+ #define TCNT1H3 3
712
+ #define TCNT1H4 4
713
+ #define TCNT1H5 5
714
+ #define TCNT1H6 6
715
+ #define TCNT1H7 7
716
+
717
+ #define ICR1 _SFR_MEM16(0x86)
718
+
719
+ #define ICR1L _SFR_MEM8(0x86)
720
+ #define ICR1L0 0
721
+ #define ICR1L1 1
722
+ #define ICR1L2 2
723
+ #define ICR1L3 3
724
+ #define ICR1L4 4
725
+ #define ICR1L5 5
726
+ #define ICR1L6 6
727
+ #define ICR1L7 7
728
+
729
+ #define ICR1H _SFR_MEM8(0x87)
730
+ #define ICR1H0 0
731
+ #define ICR1H1 1
732
+ #define ICR1H2 2
733
+ #define ICR1H3 3
734
+ #define ICR1H4 4
735
+ #define ICR1H5 5
736
+ #define ICR1H6 6
737
+ #define ICR1H7 7
738
+
739
+ #define OCR1A _SFR_MEM16(0x88)
740
+
741
+ #define OCR1AL _SFR_MEM8(0x88)
742
+ #define OCR1AL0 0
743
+ #define OCR1AL1 1
744
+ #define OCR1AL2 2
745
+ #define OCR1AL3 3
746
+ #define OCR1AL4 4
747
+ #define OCR1AL5 5
748
+ #define OCR1AL6 6
749
+ #define OCR1AL7 7
750
+
751
+ #define OCR1AH _SFR_MEM8(0x89)
752
+ #define OCR1AH0 0
753
+ #define OCR1AH1 1
754
+ #define OCR1AH2 2
755
+ #define OCR1AH3 3
756
+ #define OCR1AH4 4
757
+ #define OCR1AH5 5
758
+ #define OCR1AH6 6
759
+ #define OCR1AH7 7
760
+
761
+ #define OCR1B _SFR_MEM16(0x8A)
762
+
763
+ #define OCR1BL _SFR_MEM8(0x8A)
764
+ #define OCR1BL0 0
765
+ #define OCR1BL1 1
766
+ #define OCR1BL2 2
767
+ #define OCR1BL3 3
768
+ #define OCR1BL4 4
769
+ #define OCR1BL5 5
770
+ #define OCR1BL6 6
771
+ #define OCR1BL7 7
772
+
773
+ #define OCR1BH _SFR_MEM8(0x8B)
774
+ #define OCR1BH0 0
775
+ #define OCR1BH1 1
776
+ #define OCR1BH2 2
777
+ #define OCR1BH3 3
778
+ #define OCR1BH4 4
779
+ #define OCR1BH5 5
780
+ #define OCR1BH6 6
781
+ #define OCR1BH7 7
782
+
783
+ #define OCR1C _SFR_MEM16(0x8C)
784
+
785
+ #define OCR1CL _SFR_MEM8(0x8C)
786
+ #define OCR1CL0 0
787
+ #define OCR1CL1 1
788
+ #define OCR1CL2 2
789
+ #define OCR1CL3 3
790
+ #define OCR1CL4 4
791
+ #define OCR1CL5 5
792
+ #define OCR1CL6 6
793
+ #define OCR1CL7 7
794
+
795
+ #define OCR1CH _SFR_MEM8(0x8D)
796
+ #define OCR1CH0 0
797
+ #define OCR1CH1 1
798
+ #define OCR1CH2 2
799
+ #define OCR1CH3 3
800
+ #define OCR1CH4 4
801
+ #define OCR1CH5 5
802
+ #define OCR1CH6 6
803
+ #define OCR1CH7 7
804
+
805
+ #define TCCR3A _SFR_MEM8(0x90)
806
+ #define WGM30 0
807
+ #define WGM31 1
808
+ #define COM3C0 2
809
+ #define COM3C1 3
810
+ #define COM3B0 4
811
+ #define COM3B1 5
812
+ #define COM3A0 6
813
+ #define COM3A1 7
814
+
815
+ #define TCCR3B _SFR_MEM8(0x91)
816
+ #define CS30 0
817
+ #define CS31 1
818
+ #define CS32 2
819
+ #define WGM32 3
820
+ #define WGM33 4
821
+ #define ICES3 6
822
+ #define ICNC3 7
823
+
824
+ #define TCCR3C _SFR_MEM8(0x92)
825
+ #define FOC3C 5
826
+ #define FOC3B 6
827
+ #define FOC3A 7
828
+
829
+ #define TCNT3 _SFR_MEM16(0x94)
830
+
831
+ #define TCNT3L _SFR_MEM8(0x94)
832
+ #define TCNT3L0 0
833
+ #define TCNT3L1 1
834
+ #define TCNT3L2 2
835
+ #define TCNT3L3 3
836
+ #define TCNT3L4 4
837
+ #define TCNT3L5 5
838
+ #define TCNT3L6 6
839
+ #define TCNT3L7 7
840
+
841
+ #define TCNT3H _SFR_MEM8(0x95)
842
+ #define TCNT3H0 0
843
+ #define TCNT3H1 1
844
+ #define TCNT3H2 2
845
+ #define TCNT3H3 3
846
+ #define TCNT3H4 4
847
+ #define TCNT3H5 5
848
+ #define TCNT3H6 6
849
+ #define TCNT3H7 7
850
+
851
+ #define ICR3 _SFR_MEM16(0x96)
852
+
853
+ #define ICR3L _SFR_MEM8(0x96)
854
+ #define ICR3L0 0
855
+ #define ICR3L1 1
856
+ #define ICR3L2 2
857
+ #define ICR3L3 3
858
+ #define ICR3L4 4
859
+ #define ICR3L5 5
860
+ #define ICR3L6 6
861
+ #define ICR3L7 7
862
+
863
+ #define ICR3H _SFR_MEM8(0x97)
864
+ #define ICR3H0 0
865
+ #define ICR3H1 1
866
+ #define ICR3H2 2
867
+ #define ICR3H3 3
868
+ #define ICR3H4 4
869
+ #define ICR3H5 5
870
+ #define ICR3H6 6
871
+ #define ICR3H7 7
872
+
873
+ #define OCR3A _SFR_MEM16(0x98)
874
+
875
+ #define OCR3AL _SFR_MEM8(0x98)
876
+ #define OCR3AL0 0
877
+ #define OCR3AL1 1
878
+ #define OCR3AL2 2
879
+ #define OCR3AL3 3
880
+ #define OCR3AL4 4
881
+ #define OCR3AL5 5
882
+ #define OCR3AL6 6
883
+ #define OCR3AL7 7
884
+
885
+ #define OCR3AH _SFR_MEM8(0x99)
886
+ #define OCR3AH0 0
887
+ #define OCR3AH1 1
888
+ #define OCR3AH2 2
889
+ #define OCR3AH3 3
890
+ #define OCR3AH4 4
891
+ #define OCR3AH5 5
892
+ #define OCR3AH6 6
893
+ #define OCR3AH7 7
894
+
895
+ #define OCR3B _SFR_MEM16(0x9A)
896
+
897
+ #define OCR3BL _SFR_MEM8(0x9A)
898
+ #define OCR3BL0 0
899
+ #define OCR3BL1 1
900
+ #define OCR3BL2 2
901
+ #define OCR3BL3 3
902
+ #define OCR3BL4 4
903
+ #define OCR3BL5 5
904
+ #define OCR3BL6 6
905
+ #define OCR3BL7 7
906
+
907
+ #define OCR3BH _SFR_MEM8(0x9B)
908
+ #define OCR3BH0 0
909
+ #define OCR3BH1 1
910
+ #define OCR3BH2 2
911
+ #define OCR3BH3 3
912
+ #define OCR3BH4 4
913
+ #define OCR3BH5 5
914
+ #define OCR3BH6 6
915
+ #define OCR3BH7 7
916
+
917
+ #define OCR3C _SFR_MEM16(0x9C)
918
+
919
+ #define OCR3CL _SFR_MEM8(0x9C)
920
+ #define OCR3CL0 0
921
+ #define OCR3CL1 1
922
+ #define OCR3CL2 2
923
+ #define OCR3CL3 3
924
+ #define OCR3CL4 4
925
+ #define OCR3CL5 5
926
+ #define OCR3CL6 6
927
+ #define OCR3CL7 7
928
+
929
+ #define OCR3CH _SFR_MEM8(0x9D)
930
+ #define OCR3CH0 0
931
+ #define OCR3CH1 1
932
+ #define OCR3CH2 2
933
+ #define OCR3CH3 3
934
+ #define OCR3CH4 4
935
+ #define OCR3CH5 5
936
+ #define OCR3CH6 6
937
+ #define OCR3CH7 7
938
+
939
+ #define TCCR2A _SFR_MEM8(0xB0)
940
+ #define WGM20 0
941
+ #define WGM21 1
942
+ #define COM2B0 4
943
+ #define COM2B1 5
944
+ #define COM2A0 6
945
+ #define COM2A1 7
946
+
947
+ #define TCCR2B _SFR_MEM8(0xB1)
948
+ #define CS20 0
949
+ #define CS21 1
950
+ #define CS22 2
951
+ #define WGM22 3
952
+ #define FOC2B 6
953
+ #define FOC2A 7
954
+
955
+ #define TCNT2 _SFR_MEM8(0xB2)
956
+ #define TCNT2_0 0
957
+ #define TCNT2_1 1
958
+ #define TCNT2_2 2
959
+ #define TCNT2_3 3
960
+ #define TCNT2_4 4
961
+ #define TCNT2_5 5
962
+ #define TCNT2_6 6
963
+ #define TCNT2_7 7
964
+
965
+ #define OCR2A _SFR_MEM8(0xB3)
966
+ #define OCR2A_0 0
967
+ #define OCR2A_1 1
968
+ #define OCR2A_2 2
969
+ #define OCR2A_3 3
970
+ #define OCR2A_4 4
971
+ #define OCR2A_5 5
972
+ #define OCR2A_6 6
973
+ #define OCR2A_7 7
974
+
975
+ #define OCR2B _SFR_MEM8(0xB4)
976
+ #define OCR2B_0 0
977
+ #define OCR2B_1 1
978
+ #define OCR2B_2 2
979
+ #define OCR2B_3 3
980
+ #define OCR2B_4 4
981
+ #define OCR2B_5 5
982
+ #define OCR2B_6 6
983
+ #define OCR2B_7 7
984
+
985
+ #define ASSR _SFR_MEM8(0xB6)
986
+ #define TCR2BUB 0
987
+ #define TCR2AUB 1
988
+ #define OCR2BUB 2
989
+ #define OCR2AUB 3
990
+ #define TCN2UB 4
991
+ #define AS2 5
992
+ #define EXCLK 6
993
+
994
+ #define TWBR _SFR_MEM8(0xB8)
995
+ #define TWBR0 0
996
+ #define TWBR1 1
997
+ #define TWBR2 2
998
+ #define TWBR3 3
999
+ #define TWBR4 4
1000
+ #define TWBR5 5
1001
+ #define TWBR6 6
1002
+ #define TWBR7 7
1003
+
1004
+ #define TWSR _SFR_MEM8(0xB9)
1005
+ #define TWPS0 0
1006
+ #define TWPS1 1
1007
+ #define TWS3 3
1008
+ #define TWS4 4
1009
+ #define TWS5 5
1010
+ #define TWS6 6
1011
+ #define TWS7 7
1012
+
1013
+ #define TWAR _SFR_MEM8(0xBA)
1014
+ #define TWGCE 0
1015
+ #define TWA0 1
1016
+ #define TWA1 2
1017
+ #define TWA2 3
1018
+ #define TWA3 4
1019
+ #define TWA4 5
1020
+ #define TWA5 6
1021
+ #define TWA6 7
1022
+
1023
+ #define TWDR _SFR_MEM8(0xBB)
1024
+ #define TWD0 0
1025
+ #define TWD1 1
1026
+ #define TWD2 2
1027
+ #define TWD3 3
1028
+ #define TWD4 4
1029
+ #define TWD5 5
1030
+ #define TWD6 6
1031
+ #define TWD7 7
1032
+
1033
+ #define TWCR _SFR_MEM8(0xBC)
1034
+ #define TWIE 0
1035
+ #define TWEN 2
1036
+ #define TWWC 3
1037
+ #define TWSTO 4
1038
+ #define TWSTA 5
1039
+ #define TWEA 6
1040
+ #define TWINT 7
1041
+
1042
+ #define TWAMR _SFR_MEM8(0xBD)
1043
+ #define TWAM0 1
1044
+ #define TWAM1 2
1045
+ #define TWAM2 3
1046
+ #define TWAM3 4
1047
+ #define TWAM4 5
1048
+ #define TWAM5 6
1049
+ #define TWAM6 7
1050
+
1051
+ #define UCSR1A _SFR_MEM8(0xC8)
1052
+ #define MPCM1 0
1053
+ #define U2X1 1
1054
+ #define UPE1 2
1055
+ #define DOR1 3
1056
+ #define FE1 4
1057
+ #define UDRE1 5
1058
+ #define TXC1 6
1059
+ #define RXC1 7
1060
+
1061
+ #define UCSR1B _SFR_MEM8(0xC9)
1062
+ #define TXB81 0
1063
+ #define RXB81 1
1064
+ #define UCSZ12 2
1065
+ #define TXEN1 3
1066
+ #define RXEN1 4
1067
+ #define UDRIE1 5
1068
+ #define TXCIE1 6
1069
+ #define RXCIE1 7
1070
+
1071
+ #define UCSR1C _SFR_MEM8(0xCA)
1072
+ #define UCPOL1 0
1073
+ #define UCSZ10 1
1074
+ #define UCSZ11 2
1075
+ #define USBS1 3
1076
+ #define UPM10 4
1077
+ #define UPM11 5
1078
+ #define UMSEL10 6
1079
+ #define UMSEL11 7
1080
+
1081
+ #define UBRR1 _SFR_MEM16(0xCC)
1082
+
1083
+ #define UBRR1L _SFR_MEM8(0xCC)
1084
+ #define UBRR_0 0
1085
+ #define UBRR_1 1
1086
+ #define UBRR_2 2
1087
+ #define UBRR_3 3
1088
+ #define UBRR_4 4
1089
+ #define UBRR_5 5
1090
+ #define UBRR_6 6
1091
+ #define UBRR_7 7
1092
+
1093
+ #define UBRR1H _SFR_MEM8(0xCD)
1094
+ #define UBRR_8 0
1095
+ #define UBRR_9 1
1096
+ #define UBRR_10 2
1097
+ #define UBRR_11 3
1098
+
1099
+ #define UDR1 _SFR_MEM8(0xCE)
1100
+ #define UDR1_0 0
1101
+ #define UDR1_1 1
1102
+ #define UDR1_2 2
1103
+ #define UDR1_3 3
1104
+ #define UDR1_4 4
1105
+ #define UDR1_5 5
1106
+ #define UDR1_6 6
1107
+ #define UDR1_7 7
1108
+
1109
+ #define UHWCON _SFR_MEM8(0xD7)
1110
+ #define UVREGE 0
1111
+ #define UVCONE 4
1112
+ #define UIDE 6
1113
+ #define UIMOD 7
1114
+
1115
+ #define USBCON _SFR_MEM8(0xD8)
1116
+ #define VBUSTE 0
1117
+ #define IDTE 1
1118
+ #define OTGPADE 4
1119
+ #define FRZCLK 5
1120
+ #define HOST 6
1121
+ #define USBE 7
1122
+
1123
+ #define USBSTA _SFR_MEM8(0xD9)
1124
+ #define VBUS 0
1125
+ #define ID 1
1126
+ #define SPEED 3
1127
+
1128
+ #define USBINT _SFR_MEM8(0xDA)
1129
+ #define VBUSTI 0
1130
+ #define IDTI 1
1131
+
1132
+ #define UDCON _SFR_MEM8(0xE0)
1133
+ #define DETACH 0
1134
+ #define RMWKUP 1
1135
+ #define LSM 2
1136
+
1137
+ #define UDINT _SFR_MEM8(0xE1)
1138
+ #define SUSPI 0
1139
+ #define SOFI 2
1140
+ #define EORSTI 3
1141
+ #define WAKEUPI 4
1142
+ #define EORSMI 5
1143
+ #define UPRSMI 6
1144
+
1145
+ #define UDIEN _SFR_MEM8(0xE2)
1146
+ #define SUSPE 0
1147
+ #define SOFE 2
1148
+ #define EORSTE 3
1149
+ #define WAKEUPE 4
1150
+ #define EORSME 5
1151
+ #define UPRSME 6
1152
+
1153
+ #define UDADDR _SFR_MEM8(0xE3)
1154
+ #define UADD0 0
1155
+ #define UADD1 1
1156
+ #define UADD2 2
1157
+ #define UADD3 3
1158
+ #define UADD4 4
1159
+ #define UADD5 5
1160
+ #define UADD6 6
1161
+ #define ADDEN 7
1162
+
1163
+ #define UDFNUM _SFR_MEM16(0xE4)
1164
+
1165
+ #define UDFNUML _SFR_MEM8(0xE4)
1166
+ #define UDFNUML_0 0
1167
+ #define UDFNUML_1 1
1168
+ #define UDFNUML_2 2
1169
+ #define UDFNUML_3 3
1170
+ #define UDFNUML_4 4
1171
+ #define UDFNUML_5 5
1172
+ #define UDFNUML_6 6
1173
+ #define UDFNUML_7 7
1174
+
1175
+ #define UDFNUMH _SFR_MEM8(0xE5)
1176
+ #define UDFNUMH_0 0
1177
+ #define UDFNUMH_1 1
1178
+ #define UDFNUMH_2 2
1179
+
1180
+ #define UDMFN _SFR_MEM8(0xE6)
1181
+ #define FNCERR 4
1182
+
1183
+ #define UEINTX _SFR_MEM8(0xE8)
1184
+ #define TXINI 0
1185
+ #define STALLEDI 1
1186
+ #define RXOUTI 2
1187
+ #define RXSTPI 3
1188
+ #define NAKOUTI 4
1189
+ #define RWAL 5
1190
+ #define NAKINI 6
1191
+ #define FIFOCON 7
1192
+
1193
+ #define UENUM _SFR_MEM8(0xE9)
1194
+ #define UENUM_0 0
1195
+ #define UENUM_1 1
1196
+ #define UENUM_2 2
1197
+
1198
+ #define UERST _SFR_MEM8(0xEA)
1199
+ #define EPRST0 0
1200
+ #define EPRST1 1
1201
+ #define EPRST2 2
1202
+ #define EPRST3 3
1203
+ #define EPRST4 4
1204
+ #define EPRST5 5
1205
+ #define EPRST6 6
1206
+
1207
+ #define UECONX _SFR_MEM8(0xEB)
1208
+ #define EPEN 0
1209
+ #define RSTDT 3
1210
+ #define STALLRQC 4
1211
+ #define STALLRQ 5
1212
+
1213
+ #define UECFG0X _SFR_MEM8(0xEC)
1214
+ #define EPDIR 0
1215
+ #define EPTYPE0 6
1216
+ #define EPTYPE1 7
1217
+
1218
+ #define UECFG1X _SFR_MEM8(0xED)
1219
+ #define ALLOC 1
1220
+ #define EPBK0 2
1221
+ #define EPBK1 3
1222
+ #define EPSIZE0 4
1223
+ #define EPSIZE1 5
1224
+ #define EPSIZE2 6
1225
+
1226
+ #define UESTA0X _SFR_MEM8(0xEE)
1227
+ #define NBUSYBK0 0
1228
+ #define NBUSYBK1 1
1229
+ #define DTSEQ0 2
1230
+ #define DTSEQ1 3
1231
+ #define UNDERFI 5
1232
+ #define OVERFI 6
1233
+ #define CFGOK 7
1234
+
1235
+ #define UESTA1X _SFR_MEM8(0xEF)
1236
+ #define CURRBK0 0
1237
+ #define CURRBK1 1
1238
+ #define CTRLDIR 2
1239
+
1240
+ #define UEIENX _SFR_MEM8(0xF0)
1241
+ #define TXINE 0
1242
+ #define STALLEDE 1
1243
+ #define RXOUTE 2
1244
+ #define RXSTPE 3
1245
+ #define NAKOUTE 4
1246
+ #define NAKINE 6
1247
+ #define FLERRE 7
1248
+
1249
+ #define UEDATX _SFR_MEM8(0xF1)
1250
+ #define UEDATX_0 0
1251
+ #define UEDATX_1 1
1252
+ #define UEDATX_2 2
1253
+ #define UEDATX_3 3
1254
+ #define UEDATX_4 4
1255
+ #define UEDATX_5 5
1256
+ #define UEDATX_6 6
1257
+ #define UEDATX_7 7
1258
+
1259
+ #define UEBCLX _SFR_MEM8(0xF2)
1260
+ #define UEBCLX_0 0
1261
+ #define UEBCLX_1 1
1262
+ #define UEBCLX_2 2
1263
+ #define UEBCLX_3 3
1264
+ #define UEBCLX_4 4
1265
+ #define UEBCLX_5 5
1266
+ #define UEBCLX_6 6
1267
+ #define UEBCLX_7 7
1268
+
1269
+ #define UEBCHX _SFR_MEM8(0xF3)
1270
+ #define UEBCHX_0 0
1271
+ #define UEBCHX_1 1
1272
+ #define UEBCHX_2 2
1273
+
1274
+ #define UEINT _SFR_MEM8(0xF4)
1275
+ #define EPINT0 0
1276
+ #define EPINT1 1
1277
+ #define EPINT2 2
1278
+ #define EPINT3 3
1279
+ #define EPINT4 4
1280
+ #define EPINT5 5
1281
+ #define EPINT6 6
1282
+
1283
+
1284
+ /* Interrupt vectors */
1285
+ /* Vector 0 is the reset vector */
1286
+ #define INT0_vect_num 1
1287
+ #define INT0_vect _VECTOR(1) /* External Interrupt Request 0 */
1288
+ #define INT1_vect_num 2
1289
+ #define INT1_vect _VECTOR(2) /* External Interrupt Request 1 */
1290
+ #define INT2_vect_num 3
1291
+ #define INT2_vect _VECTOR(3) /* External Interrupt Request 2 */
1292
+ #define INT3_vect_num 4
1293
+ #define INT3_vect _VECTOR(4) /* External Interrupt Request 3 */
1294
+ #define INT4_vect_num 5
1295
+ #define INT4_vect _VECTOR(5) /* External Interrupt Request 4 */
1296
+ #define INT5_vect_num 6
1297
+ #define INT5_vect _VECTOR(6) /* External Interrupt Request 5 */
1298
+ #define INT6_vect_num 7
1299
+ #define INT6_vect _VECTOR(7) /* External Interrupt Request 6 */
1300
+ #define INT7_vect_num 8
1301
+ #define INT7_vect _VECTOR(8) /* External Interrupt Request 7 */
1302
+ #define PCINT0_vect_num 9
1303
+ #define PCINT0_vect _VECTOR(9) /* Pin Change Interrupt Request 0 */
1304
+ #define USB_GEN_vect_num 10
1305
+ #define USB_GEN_vect _VECTOR(10) /* USB General Interrupt Request */
1306
+ #define USB_COM_vect_num 11
1307
+ #define USB_COM_vect _VECTOR(11) /* USB Endpoint/Pipe Interrupt Communication Request */
1308
+ #define WDT_vect_num 12
1309
+ #define WDT_vect _VECTOR(12) /* Watchdog Time-out Interrupt */
1310
+ #define TIMER2_COMPA_vect_num 13
1311
+ #define TIMER2_COMPA_vect _VECTOR(13) /* Timer/Counter2 Compare Match A */
1312
+ #define TIMER2_COMPB_vect_num 14
1313
+ #define TIMER2_COMPB_vect _VECTOR(14) /* Timer/Counter2 Compare Match B */
1314
+ #define TIMER2_OVF_vect_num 15
1315
+ #define TIMER2_OVF_vect _VECTOR(15) /* Timer/Counter2 Overflow */
1316
+ #define TIMER1_CAPT_vect_num 16
1317
+ #define TIMER1_CAPT_vect _VECTOR(16) /* Timer/Counter1 Capture Event */
1318
+ #define TIMER1_COMPA_vect_num 17
1319
+ #define TIMER1_COMPA_vect _VECTOR(17) /* Timer/Counter1 Compare Match A */
1320
+ #define TIMER1_COMPB_vect_num 18
1321
+ #define TIMER1_COMPB_vect _VECTOR(18) /* Timer/Counter1 Compare Match B */
1322
+ #define TIMER1_COMPC_vect_num 19
1323
+ #define TIMER1_COMPC_vect _VECTOR(19) /* Timer/Counter1 Compare Match C */
1324
+ #define TIMER1_OVF_vect_num 20
1325
+ #define TIMER1_OVF_vect _VECTOR(20) /* Timer/Counter1 Overflow */
1326
+ #define TIMER0_COMPA_vect_num 21
1327
+ #define TIMER0_COMPA_vect _VECTOR(21) /* Timer/Counter0 Compare Match A */
1328
+ #define TIMER0_COMPB_vect_num 22
1329
+ #define TIMER0_COMPB_vect _VECTOR(22) /* Timer/Counter0 Compare Match B */
1330
+ #define TIMER0_OVF_vect_num 23
1331
+ #define TIMER0_OVF_vect _VECTOR(23) /* Timer/Counter0 Overflow */
1332
+ #define SPI_STC_vect_num 24
1333
+ #define SPI_STC_vect _VECTOR(24) /* SPI Serial Transfer Complete */
1334
+ #define USART1_RX_vect_num 25
1335
+ #define USART1_RX_vect _VECTOR(25) /* USART1, Rx Complete */
1336
+ #define USART1_UDRE_vect_num 26
1337
+ #define USART1_UDRE_vect _VECTOR(26) /* USART1 Data register Empty */
1338
+ #define USART1_TX_vect_num 27
1339
+ #define USART1_TX_vect _VECTOR(27) /* USART1, Tx Complete */
1340
+ #define ANALOG_COMP_vect_num 28
1341
+ #define ANALOG_COMP_vect _VECTOR(28) /* Analog Comparator */
1342
+ #define ADC_vect_num 29
1343
+ #define ADC_vect _VECTOR(29) /* ADC Conversion Complete */
1344
+ #define EE_READY_vect_num 30
1345
+ #define EE_READY_vect _VECTOR(30) /* EEPROM Ready */
1346
+ #define TIMER3_CAPT_vect_num 31
1347
+ #define TIMER3_CAPT_vect _VECTOR(31) /* Timer/Counter3 Capture Event */
1348
+ #define TIMER3_COMPA_vect_num 32
1349
+ #define TIMER3_COMPA_vect _VECTOR(32) /* Timer/Counter3 Compare Match A */
1350
+ #define TIMER3_COMPB_vect_num 33
1351
+ #define TIMER3_COMPB_vect _VECTOR(33) /* Timer/Counter3 Compare Match B */
1352
+ #define TIMER3_COMPC_vect_num 34
1353
+ #define TIMER3_COMPC_vect _VECTOR(34) /* Timer/Counter3 Compare Match C */
1354
+ #define TIMER3_OVF_vect_num 35
1355
+ #define TIMER3_OVF_vect _VECTOR(35) /* Timer/Counter3 Overflow */
1356
+ #define TWI_vect_num 36
1357
+ #define TWI_vect _VECTOR(36) /* 2-wire Serial Interface */
1358
+ #define SPM_READY_vect_num 37
1359
+ #define SPM_READY_vect _VECTOR(37) /* Store Program Memory Read */
1360
+
1361
+ #define _VECTOR_SIZE 4 /* Size of individual vector. */
1362
+ #define _VECTORS_SIZE (38 * _VECTOR_SIZE)
1363
+
1364
+
1365
+ /* Constants */
1366
+ #define SPM_PAGESIZE (128)
1367
+ #define RAMSTART (0x100)
1368
+ #define RAMSIZE (2560)
1369
+ #define RAMEND (RAMSTART + RAMSIZE - 1)
1370
+ #define XRAMSTART (0x2200)
1371
+ #define XRAMSIZE (65536)
1372
+ #define XRAMEND (XRAMSIZE - 1)
1373
+ #define E2END (0x3FF)
1374
+ #define E2PAGESIZE (4)
1375
+ #define FLASHEND (0x7FFF)
1376
+
1377
+
1378
+ /* Fuses */
1379
+ #define FUSE_MEMORY_SIZE 3
1380
+
1381
+ /* Low Fuse Byte */
1382
+ #define FUSE_CKSEL0 (unsigned char)~_BV(0) /* Select Clock Source */
1383
+ #define FUSE_CKSEL1 (unsigned char)~_BV(1) /* Select Clock Source */
1384
+ #define FUSE_CKSEL2 (unsigned char)~_BV(2) /* Select Clock Source */
1385
+ #define FUSE_CKSEL3 (unsigned char)~_BV(3) /* Select Clock Source */
1386
+ #define FUSE_SUT0 (unsigned char)~_BV(4) /* Select start-up time */
1387
+ #define FUSE_SUT1 (unsigned char)~_BV(5) /* Select start-up time */
1388
+ #define FUSE_CKOUT (unsigned char)~_BV(6) /* Oscillator options */
1389
+ #define FUSE_CKDIV8 (unsigned char)~_BV(7) /* Divide clock by 8 */
1390
+ #define LFUSE_DEFAULT (FUSE_CKDIV8 & FUSE_SUT1 & FUSE_SUT0 & FUSE_CKSEL3 & FUSE_CKSEL2 & FUSE_CKSEL1)
1391
+
1392
+ /* High Fuse Byte */
1393
+ #define FUSE_BOOTRST (unsigned char)~_BV(0) /* Select Reset Vector */
1394
+ #define FUSE_BOOTSZ0 (unsigned char)~_BV(1) /* Select Boot Size */
1395
+ #define FUSE_BOOTSZ1 (unsigned char)~_BV(2) /* Select Boot Size */
1396
+ #define FUSE_EESAVE (unsigned char)~_BV(3) /* EEPROM memory is preserved through chip erase */
1397
+ #define FUSE_WDTON (unsigned char)~_BV(4) /* Watchdog timer always on */
1398
+ #define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming and Data Downloading */
1399
+ #define FUSE_JTAGEN (unsigned char)~_BV(6) /* Enable JTAG */
1400
+ #define FUSE_OCDEN (unsigned char)~_BV(7) /* Enable OCD */
1401
+ #define HFUSE_DEFAULT (FUSE_JTAGEN & FUSE_SPIEN & FUSE_BOOTSZ1 & FUSE_BOOTSZ0)
1402
+
1403
+ /* Extended Fuse Byte */
1404
+ #define FUSE_BODLEVEL0 (unsigned char)~_BV(0) /* Brown-out Detector trigger level */
1405
+ #define FUSE_BODLEVEL1 (unsigned char)~_BV(1) /* Brown-out Detector trigger level */
1406
+ #define FUSE_BODLEVEL2 (unsigned char)~_BV(2) /* Brown-out Detector trigger level */
1407
+ #define FUSE_HWBE (unsigned char)~_BV(3) /* Hardware Boot Enable */
1408
+ #define EFUSE_DEFAULT (0xFF)
1409
+
1410
+
1411
+ /* Lock Bits */
1412
+ #define __LOCK_BITS_EXIST
1413
+ #define __BOOT_LOCK_BITS_0_EXIST
1414
+ #define __BOOT_LOCK_BITS_1_EXIST
1415
+
1416
+
1417
+ /* Signature */
1418
+ #define SIGNATURE_0 0x1E
1419
+ #define SIGNATURE_1 0x95
1420
+ #define SIGNATURE_2 0x88
1421
+
1422
+
1423
+ #define SLEEP_MODE_IDLE (0x00<<1)
1424
+ #define SLEEP_MODE_ADC (0x01<<1)
1425
+ #define SLEEP_MODE_PWR_DOWN (0x02<<1)
1426
+ #define SLEEP_MODE_PWR_SAVE (0x03<<1)
1427
+ #define SLEEP_MODE_STANDBY (0x06<<1)
1428
+ #define SLEEP_MODE_EXT_STANDBY (0x07<<1)
1429
+
1430
+ #endif /* _AVR_ATmega32U6_H_ */
1431
+