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,918 @@
1
+ /*****************************************************************************
2
+ *
3
+ * Copyright (C) 2016 Atmel Corporation
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ *
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ *
12
+ * * Redistributions in binary form must reproduce the above copyright
13
+ * notice, this list of conditions and the following disclaimer in
14
+ * the documentation and/or other materials provided with the
15
+ * distribution.
16
+ *
17
+ * * Neither the name of the copyright holders nor the names of
18
+ * contributors may be used to endorse or promote products derived
19
+ * from this software without specific prior written permission.
20
+ *
21
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31
+ * POSSIBILITY OF SUCH DAMAGE.
32
+ ****************************************************************************/
33
+
34
+
35
+ #ifndef _AVR_AT90PWM161_H_INCLUDED
36
+ #define _AVR_AT90PWM161_H_INCLUDED
37
+
38
+
39
+ #ifndef _AVR_IO_H_
40
+ # error "Include <avr/io.h> instead of this file."
41
+ #endif
42
+
43
+ #ifndef _AVR_IOXXX_H_
44
+ # define _AVR_IOXXX_H_ "io90pwm161.h"
45
+ #else
46
+ # error "Attempt to include more than one <avr/ioXXX.h> file."
47
+ #endif
48
+
49
+ /* Registers and associated bit numbers */
50
+
51
+ #define ACSR _SFR_IO8(0x00)
52
+ #define AC1O 1
53
+ #define AC2O 2
54
+ #define AC3O 3
55
+ #define AC1IF 5
56
+ #define AC2IF 6
57
+ #define AC3IF 7
58
+
59
+ #define TIMSK1 _SFR_IO8(0x01)
60
+ #define TOIE1 0
61
+ #define ICIE1 5
62
+
63
+ #define TIFR1 _SFR_IO8(0x02)
64
+ #define TOV1 0
65
+ #define ICF1 5
66
+
67
+ #define PINB _SFR_IO8(0x03)
68
+ #define PINB7 7
69
+ #define PINB6 6
70
+ #define PINB5 5
71
+ #define PINB4 4
72
+ #define PINB3 3
73
+ #define PINB2 2
74
+ #define PINB1 1
75
+ #define PINB0 0
76
+
77
+ #define DDRB _SFR_IO8(0x04)
78
+ #define DDRB7 7
79
+ // Inserted "DDB7" from "DDRB7" due to compatibility
80
+ #define DDB7 7
81
+ #define DDRB6 6
82
+ // Inserted "DDB6" from "DDRB6" due to compatibility
83
+ #define DDB6 6
84
+ #define DDRB5 5
85
+ // Inserted "DDB5" from "DDRB5" due to compatibility
86
+ #define DDB5 5
87
+ #define DDRB4 4
88
+ // Inserted "DDB4" from "DDRB4" due to compatibility
89
+ #define DDB4 4
90
+ #define DDRB3 3
91
+ // Inserted "DDB3" from "DDRB3" due to compatibility
92
+ #define DDB3 3
93
+ #define DDRB2 2
94
+ // Inserted "DDB2" from "DDRB2" due to compatibility
95
+ #define DDB2 2
96
+ #define DDRB1 1
97
+ // Inserted "DDB1" from "DDRB1" due to compatibility
98
+ #define DDB1 1
99
+ #define DDRB0 0
100
+ // Inserted "DDB0" from "DDRB0" due to compatibility
101
+ #define DDB0 0
102
+
103
+ #define PORTB _SFR_IO8(0x05)
104
+ #define PORTB7 7
105
+ #define PORTB6 6
106
+ #define PORTB5 5
107
+ #define PORTB4 4
108
+ #define PORTB3 3
109
+ #define PORTB2 2
110
+ #define PORTB1 1
111
+ #define PORTB0 0
112
+
113
+ #define ADCSRA _SFR_IO8(0x06)
114
+ #define ADPS0 0
115
+ #define ADPS1 1
116
+ #define ADPS2 2
117
+ #define ADIE 3
118
+ #define ADIF 4
119
+ #define ADATE 5
120
+ #define ADSC 6
121
+ #define ADEN 7
122
+
123
+ #define ADCSRB _SFR_IO8(0x07)
124
+ #define ADTS0 0
125
+ #define ADTS1 1
126
+ #define ADTS2 2
127
+ #define ADTS3 3
128
+ #define ADSSEN 4
129
+ #define ADNCDIS 6
130
+ #define ADHSM 7
131
+
132
+ #define ADMUX _SFR_IO8(0x08)
133
+ #define MUX0 0
134
+ #define MUX1 1
135
+ #define MUX2 2
136
+ #define MUX3 3
137
+ #define ADLAR 5
138
+ #define REFS0 6
139
+ #define REFS1 7
140
+
141
+ #define PIND _SFR_IO8(0x09)
142
+ #define PIND7 7
143
+ #define PIND6 6
144
+ #define PIND5 5
145
+ #define PIND4 4
146
+ #define PIND3 3
147
+ #define PIND2 2
148
+ #define PIND1 1
149
+ #define PIND0 0
150
+
151
+ #define DDRD _SFR_IO8(0x0A)
152
+ #define DDRD7 7
153
+ // Inserted "DDD7" from "DDRD7" due to compatibility
154
+ #define DDD7 7
155
+ #define DDRD6 6
156
+ // Inserted "DDD6" from "DDRD6" due to compatibility
157
+ #define DDD6 6
158
+ #define DDRD5 5
159
+ // Inserted "DDD5" from "DDRD5" due to compatibility
160
+ #define DDD5 5
161
+ #define DDRD4 4
162
+ // Inserted "DDD4" from "DDRD4" due to compatibility
163
+ #define DDD4 4
164
+ #define DDRD3 3
165
+ // Inserted "DDD3" from "DDRD3" due to compatibility
166
+ #define DDD3 3
167
+ #define DDRD2 2
168
+ // Inserted "DDD2" from "DDRD2" due to compatibility
169
+ #define DDD2 2
170
+ #define DDRD1 1
171
+ // Inserted "DDD1" from "DDRD1" due to compatibility
172
+ #define DDD1 1
173
+ #define DDRD0 0
174
+ // Inserted "DDD0" from "DDRD0" due to compatibility
175
+ #define DDD0 0
176
+
177
+ #define PORTD _SFR_IO8(0x0B)
178
+ #define PORTD7 7
179
+ #define PORTD6 6
180
+ #define PORTD5 5
181
+ #define PORTD4 4
182
+ #define PORTD3 3
183
+ #define PORTD2 2
184
+ #define PORTD1 1
185
+ #define PORTD0 0
186
+
187
+ #define PINE _SFR_IO8(0x0C)
188
+ #define PINE2 2
189
+ #define PINE1 1
190
+ #define PINE0 0
191
+
192
+ #define DDRE _SFR_IO8(0x0D)
193
+ #define DDRE2 2
194
+ // Inserted "DDE2" from "DDRE2" due to compatibility
195
+ #define DDE2 2
196
+ #define DDRE1 1
197
+ // Inserted "DDE1" from "DDRE1" due to compatibility
198
+ #define DDE1 1
199
+ #define DDRE0 0
200
+ // Inserted "DDE0" from "DDRE0" due to compatibility
201
+ #define DDE0 0
202
+
203
+ #define PORTE _SFR_IO8(0x0E)
204
+ #define PORTE2 2
205
+ #define PORTE1 1
206
+ #define PORTE0 0
207
+
208
+ #define PIM0 _SFR_IO8(0x0F)
209
+ #define PEOPE0 0
210
+ #define PEOEPE0 1
211
+ #define PEVE0A 3
212
+ #define PEVE0B 4
213
+
214
+ #define PIFR0 _SFR_IO8(0x10)
215
+ #define PEOP0 0
216
+ #define PRN00 1
217
+ #define PRN01 2
218
+ #define PEV0A 3
219
+ #define PEV0B 4
220
+ #define POAC0A 6
221
+ #define POAC0B 7
222
+
223
+ #define PCNF0 _SFR_IO8(0x11)
224
+ #define PCLKSEL0 1
225
+ #define POP0 2
226
+ #define PMODE00 3
227
+ #define PMODE01 4
228
+ #define PLOCK0 5
229
+ #define PALOCK0 6
230
+ #define PFIFTY0 7
231
+
232
+ #define PCTL0 _SFR_IO8(0x12)
233
+ #define PRUN0 0
234
+ #define PCCYC0 1
235
+ #define PAOC0A 3
236
+ #define PAOC0B 4
237
+ #define PBFM00 2
238
+ #define PBFM01 5
239
+ #define PPRE00 6
240
+ #define PPRE01 7
241
+
242
+ #define PIM2 _SFR_IO8(0x13)
243
+ #define PEOPE2 0
244
+ #define PEOEPE2 1
245
+ #define PEVE2A 3
246
+ #define PEVE2B 4
247
+ #define PSEIE2 5
248
+
249
+ #define PIFR2 _SFR_IO8(0x14)
250
+ #define PEOP2 0
251
+ #define PRN20 1
252
+ #define PRN21 2
253
+ #define PEV2A 3
254
+ #define PEV2B 4
255
+ #define PSEI2 5
256
+ #define POAC2A 6
257
+ #define POAC2B 7
258
+
259
+ #define PCNF2 _SFR_IO8(0x15)
260
+ #define POME2 0
261
+ #define PCLKSEL2 1
262
+ #define POP2 2
263
+ #define PMODE20 3
264
+ #define PMODE21 4
265
+ #define PLOCK2 5
266
+ #define PALOCK2 6
267
+ #define PFIFTY2 7
268
+
269
+ #define PCTL2 _SFR_IO8(0x16)
270
+ #define PRUN2 0
271
+ #define PCCYC2 1
272
+ #define PARUN2 2
273
+ #define PAOC2A 3
274
+ #define PAOC2B 4
275
+ #define PBFM2 5
276
+ #define PPRE20 6
277
+ #define PPRE21 7
278
+
279
+ #define SPCR _SFR_IO8(0x17)
280
+ #define SPR0 0
281
+ #define SPR1 1
282
+ #define CPHA 2
283
+ #define CPOL 3
284
+ #define MSTR 4
285
+ #define DORD 5
286
+ #define SPE 6
287
+ #define SPIE 7
288
+
289
+ #define SPSR _SFR_IO8(0x18)
290
+ #define SPI2X 0
291
+ #define WCOL 6
292
+ #define SPIF 7
293
+
294
+ #define GPIOR0 _SFR_IO8(0x19)
295
+ #define GPIOR00 0
296
+ #define GPIOR01 1
297
+ #define GPIOR02 2
298
+ #define GPIOR03 3
299
+ #define GPIOR04 4
300
+ #define GPIOR05 5
301
+ #define GPIOR06 6
302
+ #define GPIOR07 7
303
+
304
+ #define GPIOR1 _SFR_IO8(0x1A)
305
+ #define GPIOR10 0
306
+ #define GPIOR11 1
307
+ #define GPIOR12 2
308
+ #define GPIOR13 3
309
+ #define GPIOR14 4
310
+ #define GPIOR15 5
311
+ #define GPIOR16 6
312
+ #define GPIOR17 7
313
+
314
+ #define GPIOR2 _SFR_IO8(0x1B)
315
+ #define GPIOR20 0
316
+ #define GPIOR21 1
317
+ #define GPIOR22 2
318
+ #define GPIOR23 3
319
+ #define GPIOR24 4
320
+ #define GPIOR25 5
321
+ #define GPIOR26 6
322
+ #define GPIOR27 7
323
+
324
+ #define EECR _SFR_IO8(0x1C)
325
+ #define EERE 0
326
+ #define EEWE 1
327
+ #define EEMWE 2
328
+ #define EERIE 3
329
+ #define EEPM0 4
330
+ #define EEPM1 5
331
+ #define EEPAGE 6
332
+ #define NVMBSY 7
333
+
334
+ #define EEDR _SFR_IO8(0x1D)
335
+
336
+ /* Combine EEARL and EEARH */
337
+ #define EEAR _SFR_IO16(0x1E)
338
+
339
+ #define EEARL _SFR_IO8(0x1E)
340
+ #define EEARH _SFR_IO8(0x1F)
341
+
342
+ #define EIFR _SFR_IO8(0x20)
343
+ #define INTF0 0
344
+ #define INTF1 1
345
+ #define INTF2 2
346
+
347
+ #define EIMSK _SFR_IO8(0x21)
348
+ #define INT0 0
349
+ #define INT1 1
350
+ #define INT2 2
351
+
352
+ /* Combine OCR0SBL and OCR0SBH */
353
+ #define OCR0SB _SFR_IO16(0x22)
354
+
355
+ #define OCR0SBL _SFR_IO8(0x22)
356
+ #define OCR0SBH _SFR_IO8(0x23)
357
+
358
+ /* Combine OCR0RBL and OCR0RBH */
359
+ #define OCR0RB _SFR_IO16(0x24)
360
+
361
+ #define OCR0RBL _SFR_IO8(0x24)
362
+ #define OCR0RBH _SFR_IO8(0x25)
363
+
364
+ /* Combine OCR2SBL and OCR2SBH */
365
+ #define OCR2SB _SFR_IO16(0x26)
366
+
367
+ #define OCR2SBL _SFR_IO8(0x26)
368
+ #define OCR2SBH _SFR_IO8(0x27)
369
+
370
+ /* Combine OCR2RBL and OCR2RBH */
371
+ #define OCR2RB _SFR_IO16(0x28)
372
+
373
+ #define OCR2RBL _SFR_IO8(0x28)
374
+ #define OCR2RBH _SFR_IO8(0x29)
375
+
376
+ /* Combine OCR0RAL and OCR0RAH */
377
+ #define OCR0RA _SFR_IO16(0x2A)
378
+
379
+ #define OCR0RAL _SFR_IO8(0x2A)
380
+ #define OCR0RAH _SFR_IO8(0x2B)
381
+
382
+ /* Combine ADCL and ADCH */
383
+ #ifndef __ASSEMBLER__
384
+ #define ADC _SFR_IO16(0x2C)
385
+ #endif
386
+ #define ADCW _SFR_IO16(0x2C)
387
+
388
+ #define ADCL _SFR_IO8(0x2C)
389
+ #define ADCH _SFR_IO8(0x2D)
390
+
391
+ /* Combine OCR2RAL and OCR2RAH */
392
+ #define OCR2RA _SFR_IO16(0x2E)
393
+
394
+ #define OCR2RAL _SFR_IO8(0x2E)
395
+ #define OCR2RAH _SFR_IO8(0x2F)
396
+
397
+ /* Reserved [0x30..0x32] */
398
+
399
+ #define SMCR _SFR_IO8(0x33)
400
+ #define SE 0
401
+ #define SM0 1
402
+ #define SM1 2
403
+ #define SM2 3
404
+
405
+ #define MCUSR _SFR_IO8(0x34)
406
+ #define PORF 0
407
+ #define EXTRF 1
408
+ #define BORF 2
409
+ #define WDRF 3
410
+
411
+ #define MCUCR _SFR_IO8(0x35)
412
+ #define IVCE 0
413
+ #define IVSEL 1
414
+ #define CKRC81 2
415
+ #define RSTDIS 3
416
+ #define PUD 4
417
+
418
+ #define SPDR _SFR_IO8(0x36)
419
+
420
+ #define SPMCSR _SFR_IO8(0x37)
421
+ #define SPMEN 0
422
+ #define PGERS 1
423
+ #define PGWRT 2
424
+ #define BLBSET 3
425
+ #define RWWSRE 4
426
+ #define SIGRD 5
427
+ #define RWWSB 6
428
+ #define SPMIE 7
429
+
430
+ #define DACL _SFR_IO8(0x38)
431
+ #define DACL0 0
432
+ #define DACL1 1
433
+ #define DACL2 2
434
+ #define DACL3 3
435
+ #define DACL4 4
436
+ #define DACL5 5
437
+ #define DACL6 6
438
+ #define DACL7 7
439
+
440
+ #define DACH _SFR_IO8(0x39)
441
+ #define DACH0 0
442
+ #define DACH1 1
443
+ #define DACH2 2
444
+ #define DACH3 3
445
+ #define DACH4 4
446
+ #define DACH5 5
447
+ #define DACH6 6
448
+ #define DACH7 7
449
+
450
+ /* Combine TCNT1L and TCNT1H */
451
+ #define TCNT1 _SFR_IO16(0x3A)
452
+
453
+ #define TCNT1L _SFR_IO8(0x3A)
454
+ #define TCNT1H _SFR_IO8(0x3B)
455
+
456
+ /* Reserved [0x3C] */
457
+
458
+ /* SP [0x3D..0x3E] */
459
+
460
+ /* SREG [0x3F] */
461
+
462
+ /* Combine OCR0SAL and OCR0SAH */
463
+ #define OCR0SA _SFR_MEM16(0x60)
464
+
465
+ #define OCR0SAL _SFR_MEM8(0x60)
466
+ #define OCR0SAH _SFR_MEM8(0x61)
467
+
468
+ #define PFRC0A _SFR_MEM8(0x62)
469
+ #define PRFM0A0 0
470
+ #define PRFM0A1 1
471
+ #define PRFM0A2 2
472
+ #define PRFM0A3 3
473
+ #define PFLTE0A 4
474
+ #define PELEV0A 5
475
+ #define PISEL0A 6
476
+ #define PCAE0A 7
477
+
478
+ #define PFRC0B _SFR_MEM8(0x63)
479
+ #define PRFM0B0 0
480
+ #define PRFM0B1 1
481
+ #define PRFM0B2 2
482
+ #define PRFM0B3 3
483
+ #define PFLTE0B 4
484
+ #define PELEV0B 5
485
+ #define PISEL0B 6
486
+ #define PCAE0B 7
487
+
488
+ /* Combine OCR2SAL and OCR2SAH */
489
+ #define OCR2SA _SFR_MEM16(0x64)
490
+
491
+ #define OCR2SAL _SFR_MEM8(0x64)
492
+ #define OCR2SAH _SFR_MEM8(0x65)
493
+
494
+ #define PFRC2A _SFR_MEM8(0x66)
495
+ #define PRFM2A0 0
496
+ #define PRFM2A1 1
497
+ #define PRFM2A2 2
498
+ #define PRFM2A3 3
499
+ #define PFLTE2A 4
500
+ #define PELEV2A 5
501
+ #define PISEL2A 6
502
+ #define PCAE2A 7
503
+
504
+ #define PFRC2B _SFR_MEM8(0x67)
505
+ #define PRFM2B0 0
506
+ #define PRFM2B1 1
507
+ #define PRFM2B2 2
508
+ #define PRFM2B3 3
509
+ #define PFLTE2B 4
510
+ #define PELEV2B 5
511
+ #define PISEL2B 6
512
+ #define PCAE2B 7
513
+
514
+ /* Combine PICR0L and PICR0H */
515
+ #define PICR0 _SFR_MEM16(0x68)
516
+
517
+ #define PICR0L _SFR_MEM8(0x68)
518
+ #define PICR0H _SFR_MEM8(0x69)
519
+
520
+ #define PSOC0 _SFR_MEM8(0x6A)
521
+ #define POEN0A 0
522
+ #define POEN0B 2
523
+ #define PSYNC00 4
524
+ #define PSYNC01 5
525
+ #define PISEL0B1 6
526
+ #define PISEL0A1 7
527
+
528
+ /* Reserved [0x6B] */
529
+
530
+ #define PICR2L _SFR_MEM8(0x6C)
531
+
532
+ #define PICR2H _SFR_MEM8(0x6D)
533
+ #define PICR28 0
534
+ #define PICR29 1
535
+ #define PICR210 2
536
+ #define PICR211 3
537
+ #define PCST2 7
538
+
539
+ #define PSOC2 _SFR_MEM8(0x6E)
540
+ #define POEN2A 0
541
+ #define POEN2C 1
542
+ #define POEN2B 2
543
+ #define POEN2D 3
544
+ #define PSYNC20 4
545
+ #define PSYNC21 5
546
+ #define POS22 6
547
+ #define POS23 7
548
+
549
+ #define POM2 _SFR_MEM8(0x6F)
550
+ #define POMV2A0 0
551
+ #define POMV2A1 1
552
+ #define POMV2A2 2
553
+ #define POMV2A3 3
554
+ #define POMV2B0 4
555
+ #define POMV2B1 5
556
+ #define POMV2B2 6
557
+ #define POMV2B3 7
558
+
559
+ #define PCNFE2 _SFR_MEM8(0x70)
560
+ #define PISEL2B1 0
561
+ #define PISEL2A1 1
562
+ #define PELEV2B1 2
563
+ #define PELEV2A1 3
564
+ #define PBFM21 4
565
+ #define PASDLK20 5
566
+ #define PASDLK21 6
567
+ #define PASDLK22 7
568
+
569
+ #define PASDLY2 _SFR_MEM8(0x71)
570
+
571
+ /* Reserved [0x72..0x75] */
572
+
573
+ #define DACON _SFR_MEM8(0x76)
574
+ #define DAEN 0
575
+ #define DALA 2
576
+ #define DATS0 4
577
+ #define DATS1 5
578
+ #define DATS2 6
579
+ #define DAATE 7
580
+
581
+ #define DIDR0 _SFR_MEM8(0x77)
582
+ #define ADC0D 0
583
+ #define ADC1D 1
584
+ #define ADC2D 2
585
+ #define ADC3D 3
586
+ #define ADC4D 4
587
+ #define ADC5D 5
588
+ #define ADC6D 6
589
+ #define ADC7D 7
590
+
591
+ #define DIDR1 _SFR_MEM8(0x78)
592
+ #define ADC9D 0
593
+ #define ADC10D 1
594
+ #define AMP0POSD 2
595
+ #define ACMP1MD 3
596
+
597
+ #define AMP0CSR _SFR_MEM8(0x79)
598
+ #define AMP0TS0 0
599
+ #define AMP0TS1 1
600
+ #define AMP0GS 3
601
+ #define AMP0G0 4
602
+ #define AMP0G1 5
603
+ #define AMP0IS 6
604
+ #define AMP0EN 7
605
+
606
+ #define AC1ECON _SFR_MEM8(0x7A)
607
+ #define AC1H0 0
608
+ #define AC1H1 1
609
+ #define AC1H2 2
610
+ #define AC1ICE 3
611
+ #define AC1OE 4
612
+ #define AC1OI 5
613
+
614
+ #define AC2ECON _SFR_MEM8(0x7B)
615
+ #define AC2H0 0
616
+ #define AC2H1 1
617
+ #define AC2H2 2
618
+ #define AC2OE 4
619
+ #define AC2OI 5
620
+
621
+ #define AC3ECON _SFR_MEM8(0x7C)
622
+ #define AC3H0 0
623
+ #define AC3H1 1
624
+ #define AC3H2 2
625
+ #define AC3OE 4
626
+ #define AC3OI 5
627
+
628
+ #define AC1CON _SFR_MEM8(0x7D)
629
+ #define AC1M0 0
630
+ #define AC1M1 1
631
+ #define AC1M2 2
632
+ #define AC1IS0 4
633
+ #define AC1IS1 5
634
+ #define AC1IE 6
635
+ #define AC1EN 7
636
+
637
+ #define AC2CON _SFR_MEM8(0x7E)
638
+ #define AC2M0 0
639
+ #define AC2M1 1
640
+ #define AC2M2 2
641
+ #define AC2IS0 4
642
+ #define AC2IS1 5
643
+ #define AC2IE 6
644
+ #define AC2EN 7
645
+
646
+ #define AC3CON _SFR_MEM8(0x7F)
647
+ #define AC3M0 0
648
+ #define AC3M1 1
649
+ #define AC3M2 2
650
+ #define AC3OEA 3
651
+ #define AC3IS0 4
652
+ #define AC3IS1 5
653
+ #define AC3IE 6
654
+ #define AC3EN 7
655
+
656
+ #define BGCRR _SFR_MEM8(0x80)
657
+ #define BGCR0 0
658
+ #define BGCR1 1
659
+ #define BGCR2 2
660
+ #define BGCR3 3
661
+
662
+ #define BGCCR _SFR_MEM8(0x81)
663
+ #define BGCC0 0
664
+ #define BGCC1 1
665
+ #define BGCC2 2
666
+ #define BGCC3 3
667
+
668
+ #define WDTCSR _SFR_MEM8(0x82)
669
+ #define WDE 3
670
+ #define WDCE 4
671
+ #define WDP0 0
672
+ #define WDP1 1
673
+ #define WDP2 2
674
+ #define WDP3 5
675
+ #define WDIE 6
676
+ #define WDIF 7
677
+
678
+ #define CLKPR _SFR_MEM8(0x83)
679
+ #define CLKPS0 0
680
+ #define CLKPS1 1
681
+ #define CLKPS2 2
682
+ #define CLKPS3 3
683
+ #define CLKPCE 7
684
+
685
+ #define CLKCSR _SFR_MEM8(0x84)
686
+ #define CLKC0 0
687
+ #define CLKC1 1
688
+ #define CLKC2 2
689
+ #define CLKC3 3
690
+ #define CLKRDY 4
691
+ #define CLKCCE 7
692
+
693
+ #define CLKSELR _SFR_MEM8(0x85)
694
+ #define CKSEL0 0
695
+ #define CKSEL1 1
696
+ #define CKSEL2 2
697
+ #define CKSEL3 3
698
+ #define CSUT0 4
699
+ #define CSUT1 5
700
+ #define COUT 6
701
+
702
+ #define PRR _SFR_MEM8(0x86)
703
+ #define PRADC 0
704
+ #define PRSPI 2
705
+ #define PRTIM1 4
706
+ #define PRPSCR 5
707
+ #define PRPSC2 7
708
+
709
+ #define __AVR_HAVE_PRR ((1<<PRADC)|(1<<PRSPI)|(1<<PRTIM1)|(1<<PRPSCR)|(1<<PRPSC2))
710
+ #define __AVR_HAVE_PRR_PRADC
711
+ #define __AVR_HAVE_PRR_PRSPI
712
+ #define __AVR_HAVE_PRR_PRTIM1
713
+ #define __AVR_HAVE_PRR_PRPSCR
714
+ #define __AVR_HAVE_PRR_PRPSC2
715
+
716
+ #define PLLCSR _SFR_MEM8(0x87)
717
+ #define PLOCK 0
718
+ #define PLLE 1
719
+ #define PLLF0 2
720
+ #define PLLF1 3
721
+ #define PLLF2 4
722
+ #define PLLF3 5
723
+
724
+ #define OSCCAL _SFR_MEM8(0x88)
725
+ #define OSCCAL0 0
726
+ #define OSCCAL1 1
727
+ #define OSCCAL2 2
728
+ #define OSCCAL3 3
729
+ #define OSCCAL4 4
730
+ #define OSCCAL5 5
731
+ #define OSCCAL6 6
732
+ #define OSCCAL7 7
733
+
734
+ #define EICRA _SFR_MEM8(0x89)
735
+ #define ISC00 0
736
+ #define ISC01 1
737
+ #define ISC10 2
738
+ #define ISC11 3
739
+ #define ISC20 4
740
+ #define ISC21 5
741
+
742
+ #define TCCR1B _SFR_MEM8(0x8A)
743
+ #define CS10 0
744
+ #define CS11 1
745
+ #define CS12 2
746
+ #define WGM13 4
747
+ #define ICES1 6
748
+ #define ICNC1 7
749
+
750
+ /* Reserved [0x8B] */
751
+
752
+ /* Combine ICR1L and ICR1H */
753
+ #define ICR1 _SFR_MEM16(0x8C)
754
+
755
+ #define ICR1L _SFR_MEM8(0x8C)
756
+ #define ICR1H _SFR_MEM8(0x8D)
757
+
758
+
759
+
760
+ /* Values and associated defines */
761
+
762
+
763
+ #define SLEEP_MODE_IDLE (0x00<<1)
764
+ #define SLEEP_MODE_ADC (0x01<<1)
765
+ #define SLEEP_MODE_PWR_DOWN (0x02<<1)
766
+ #define SLEEP_MODE_STANDBY (0x06<<1)
767
+
768
+ /* Interrupt vectors */
769
+ /* Vector 0 is the reset vector */
770
+ /* PSC2 Capture Event */
771
+ #define PSC2_CAPT_vect _VECTOR(1)
772
+ #define PSC2_CAPT_vect_num 1
773
+
774
+ /* PSC2 End Cycle */
775
+ #define PSC2_EC_vect _VECTOR(2)
776
+ #define PSC2_EC_vect_num 2
777
+
778
+ /* PSC2 End Of Enhanced Cycle */
779
+ #define PSC2_EEC_vect _VECTOR(3)
780
+ #define PSC2_EEC_vect_num 3
781
+
782
+ /* PSC0 Capture Event */
783
+ #define PSC0_CAPT_vect _VECTOR(4)
784
+ #define PSC0_CAPT_vect_num 4
785
+
786
+ /* PSC0 End Cycle */
787
+ #define PSC0_EC_vect _VECTOR(5)
788
+ #define PSC0_EC_vect_num 5
789
+
790
+ /* PSC0 End Of Enhanced Cycle */
791
+ #define PSC0_EEC_vect _VECTOR(6)
792
+ #define PSC0_EEC_vect_num 6
793
+
794
+ /* Analog Comparator 1 */
795
+ #define ANALOG_COMP_1_vect _VECTOR(7)
796
+ #define ANALOG_COMP_1_vect_num 7
797
+
798
+ /* Analog Comparator 2 */
799
+ #define ANALOG_COMP_2_vect _VECTOR(8)
800
+ #define ANALOG_COMP_2_vect_num 8
801
+
802
+ /* Analog Comparator 3 */
803
+ #define ANALOG_COMP_3_vect _VECTOR(9)
804
+ #define ANALOG_COMP_3_vect_num 9
805
+
806
+ /* External Interrupt Request 0 */
807
+ #define INT0_vect _VECTOR(10)
808
+ #define INT0_vect_num 10
809
+
810
+ /* Timer/Counter1 Capture Event */
811
+ #define TIMER1_CAPT_vect _VECTOR(11)
812
+ #define TIMER1_CAPT_vect_num 11
813
+
814
+ /* Timer/Counter1 Overflow */
815
+ #define TIMER1_OVF_vect _VECTOR(12)
816
+ #define TIMER1_OVF_vect_num 12
817
+
818
+ /* ADC Conversion Complete */
819
+ #define ADC_vect _VECTOR(13)
820
+ #define ADC_vect_num 13
821
+
822
+ /* External Interrupt Request 1 */
823
+ #define INT1_vect _VECTOR(14)
824
+ #define INT1_vect_num 14
825
+
826
+ /* SPI Serial Transfer Complet */
827
+ #define SPI_STC_vect _VECTOR(15)
828
+ #define SPI_STC_vect_num 15
829
+
830
+ /* External Interrupt Request 2 */
831
+ #define INT2_vect _VECTOR(16)
832
+ #define INT2_vect_num 16
833
+
834
+ /* Watchdog Timeout Interrupt */
835
+ #define WDT_vect _VECTOR(17)
836
+ #define WDT_vect_num 17
837
+
838
+ /* EEPROM Ready */
839
+ #define EE_READY_vect _VECTOR(18)
840
+ #define EE_READY_vect_num 18
841
+
842
+ /* Store Program Memory Read */
843
+ #define SPM_READY_vect _VECTOR(19)
844
+ #define SPM_READY_vect_num 19
845
+
846
+ #define _VECTORS_SIZE 80
847
+
848
+
849
+ /* Constants */
850
+
851
+ #define SPM_PAGESIZE 128
852
+ #define FLASHSTART 0x0000
853
+ #define FLASHEND 0x3FFF
854
+ #define RAMSTART 0x0100
855
+ #define RAMSIZE 1024
856
+ #define RAMEND 0x04FF
857
+ #define E2START 0
858
+ #define E2SIZE 512
859
+ #define E2PAGESIZE 4
860
+ #define E2END 0x01FF
861
+ #define XRAMEND RAMEND
862
+
863
+
864
+ /* Fuses */
865
+
866
+ #define FUSE_MEMORY_SIZE 3
867
+
868
+ /* Low Fuse Byte */
869
+ #define FUSE_SUT_CKSEL0 (unsigned char)~_BV(0)
870
+ #define FUSE_SUT_CKSEL1 (unsigned char)~_BV(1)
871
+ #define FUSE_SUT_CKSEL2 (unsigned char)~_BV(2)
872
+ #define FUSE_SUT_CKSEL3 (unsigned char)~_BV(3)
873
+ #define FUSE_SUT_CKSEL4 (unsigned char)~_BV(4)
874
+ #define FUSE_SUT_CKSEL5 (unsigned char)~_BV(5)
875
+ #define FUSE_CKOUT (unsigned char)~_BV(6)
876
+ #define FUSE_CKDIV8 (unsigned char)~_BV(7)
877
+ #define LFUSE_DEFAULT (FUSE_SUT_CKSEL0 & FUSE_SUT_CKSEL2 & FUSE_SUT_CKSEL3 & FUSE_SUT_CKSEL4 & FUSE_CKDIV8)
878
+
879
+
880
+ /* High Fuse Byte */
881
+ #define FUSE_BOOTRST (unsigned char)~_BV(0)
882
+ #define FUSE_BOOTSZ0 (unsigned char)~_BV(1)
883
+ #define FUSE_BOOTSZ1 (unsigned char)~_BV(2)
884
+ #define FUSE_EESAVE (unsigned char)~_BV(3)
885
+ #define FUSE_WDTON (unsigned char)~_BV(4)
886
+ #define FUSE_SPIEN (unsigned char)~_BV(5)
887
+ #define FUSE_DWEN (unsigned char)~_BV(6)
888
+ #define FUSE_RSTDISBL (unsigned char)~_BV(7)
889
+ #define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN)
890
+
891
+
892
+ /* Extended Fuse Byte */
893
+ #define FUSE_BODLEVEL0 (unsigned char)~_BV(0)
894
+ #define FUSE_BODLEVEL1 (unsigned char)~_BV(1)
895
+ #define FUSE_BODLEVEL2 (unsigned char)~_BV(2)
896
+ #define FUSE_PSCINRB (unsigned char)~_BV(3)
897
+ #define FUSE_PSCRV (unsigned char)~_BV(4)
898
+ #define FUSE_PSC0RB (unsigned char)~_BV(5)
899
+ #define FUSE_PSC2RBA (unsigned char)~_BV(6)
900
+ #define FUSE_PSC2RB (unsigned char)~_BV(7)
901
+ #define EFUSE_DEFAULT (FUSE_BODLEVEL1)
902
+
903
+
904
+
905
+ /* Lock Bits */
906
+ #define __LOCK_BITS_EXIST
907
+ #define __BOOT_LOCK_BITS_0_EXIST
908
+ #define __BOOT_LOCK_BITS_1_EXIST
909
+
910
+
911
+ /* Signature */
912
+ #define SIGNATURE_0 0x1E
913
+ #define SIGNATURE_1 0x94
914
+ #define SIGNATURE_2 0x8B
915
+
916
+
917
+ #endif /* #ifdef _AVR_AT90PWM161_H_INCLUDED */
918
+