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,776 @@
1
+ /* Copyright (c) 2010 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$ */
32
+
33
+ /* avr/iotn20.h - definitions for ATtiny20 */
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_ "iotn20.h"
43
+ #else
44
+ # error "Attempt to include more than one <avr/ioXXX.h> file."
45
+ #endif
46
+
47
+
48
+ #ifndef _AVR_ATtiny20_H_
49
+ #define _AVR_ATtiny20_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 PUEA _SFR_IO8(0x03)
85
+ #define PUEA0 0
86
+ #define PUEA1 1
87
+ #define PUEA2 2
88
+ #define PUEA3 3
89
+ #define PUEA4 4
90
+ #define PUEA5 5
91
+ #define PUEA6 6
92
+ #define PUEA7 7
93
+
94
+ #define PINB _SFR_IO8(0x04)
95
+ #define PINB0 0
96
+ #define PINB1 1
97
+ #define PINB2 2
98
+ #define PINB3 3
99
+
100
+ #define DDRB _SFR_IO8(0x05)
101
+ #define DDB0 0
102
+ #define DDB1 1
103
+ #define DDB2 2
104
+ #define DDB3 3
105
+
106
+ #define PORTB _SFR_IO8(0x06)
107
+ #define PORTB0 0
108
+ #define PORTB1 1
109
+ #define PORTB2 2
110
+ #define PORTB3 3
111
+
112
+ #define PUEB _SFR_IO8(0x07)
113
+ #define PUEB0 0
114
+ #define PUEB1 1
115
+ #define PUEB2 2
116
+ #define PUEB3 3
117
+
118
+ #define PORTCR _SFR_IO8(0x08)
119
+ #define BBMA 0
120
+ #define BBMB 1
121
+
122
+ #define PCMSK0 _SFR_IO8(0x09)
123
+ #define PCINT0 0
124
+ #define PCINT1 1
125
+ #define PCINT2 2
126
+ #define PCINT3 3
127
+ #define PCINT4 4
128
+ #define PCINT5 5
129
+ #define PCINT6 6
130
+ #define PCINT7 7
131
+
132
+ #define PCMSK1 _SFR_IO8(0x0A)
133
+ #define PCINT8 0
134
+ #define PCINT9 1
135
+ #define PCINT10 2
136
+ #define PCINT11 3
137
+
138
+ #define GIFR _SFR_IO8(0x0B)
139
+ #define INTF0 0
140
+ #define PCIF0 4
141
+ #define PCIF1 5
142
+
143
+ #define GIMSK _SFR_IO8(0x0C)
144
+ #define INT0 0
145
+ #define PCIE0 4
146
+ #define PCIE1 5
147
+
148
+ #define DIDR0 _SFR_IO8(0x0D)
149
+ #define ADC0D 0
150
+ #define ADC1D 1
151
+ #define ADC2D 2
152
+ #define ADC3D 3
153
+ #define ADC4D 4
154
+ #define ADC5D 5
155
+ #define ADC6D 6
156
+ #define ADC7D 7
157
+
158
+ #ifndef __ASSEMBLER__
159
+ #define ADC _SFR_IO16(0x0E)
160
+ #endif
161
+ #define ADCW _SFR_IO16(0x0E)
162
+
163
+ #define ADCL _SFR_IO8(0x0E)
164
+ #define ADCL0 0
165
+ #define ADCL1 1
166
+ #define ADCL2 2
167
+ #define ADCL3 3
168
+ #define ADCL4 4
169
+ #define ADCL5 5
170
+ #define ADCL6 6
171
+ #define ADCL7 7
172
+
173
+ #define ADCH _SFR_IO8(0x0F)
174
+ #define ADCH0 0
175
+ #define ADCH1 1
176
+ #define ADCH2 2
177
+ #define ADCH3 3
178
+ #define ADCH4 4
179
+ #define ADCH5 5
180
+ #define ADCH6 6
181
+ #define ADCH7 7
182
+
183
+ #define ADMUX _SFR_IO8(0x10)
184
+ #define MUX0 0
185
+ #define MUX1 1
186
+ #define MUX2 2
187
+ #define MUX3 3
188
+ #define REFS 6
189
+
190
+ #define ADCSRB _SFR_IO8(0x11)
191
+ #define ADTS0 0
192
+ #define ADTS1 1
193
+ #define ADTS2 2
194
+ #define ADLAR 3
195
+
196
+ #define ADCSRA _SFR_IO8(0x12)
197
+ #define ADPS0 0
198
+ #define ADPS1 1
199
+ #define ADPS2 2
200
+ #define ADIE 3
201
+ #define ADIF 4
202
+ #define ADATE 5
203
+ #define ADSC 6
204
+ #define ADEN 7
205
+
206
+ #define ACSRB _SFR_IO8(0x13)
207
+ #define ACME 2
208
+ #define HLEV 6
209
+ #define HSEL 7
210
+
211
+ #define ACSRA _SFR_IO8(0x14)
212
+ #define ACIS0 0
213
+ #define ACIS1 1
214
+ #define ACIC 2
215
+ #define ACIE 3
216
+ #define ACI 4
217
+ #define ACO 5
218
+ #define ACBG 6
219
+ #define ACD 7
220
+
221
+ #define OCR0B _SFR_IO8(0x15)
222
+ #define OCR0B_0 0
223
+ #define OCR0B_1 1
224
+ #define OCR0B_2 2
225
+ #define OCR0B_3 3
226
+ #define OCR0B_4 4
227
+ #define OCR0B_5 5
228
+ #define OCR0B_6 6
229
+ #define OCR0B_7 7
230
+
231
+ #define OCR0A _SFR_IO8(0x16)
232
+ #define OCR0_0 0
233
+ #define OCR0_1 1
234
+ #define OCR0_2 2
235
+ #define OCR0_3 3
236
+ #define OCR0_4 4
237
+ #define OCR0_5 5
238
+ #define OCR0_6 6
239
+ #define OCR0_7 7
240
+
241
+ #define TCNT0 _SFR_IO8(0x17)
242
+ #define TCNT0_0 0
243
+ #define TCNT0_1 1
244
+ #define TCNT0_2 2
245
+ #define TCNT0_3 3
246
+ #define TCNT0_4 4
247
+ #define TCNT0_5 5
248
+ #define TCNT0_6 6
249
+ #define TCNT0_7 7
250
+
251
+ #define TCCR0B _SFR_IO8(0x18)
252
+ #define CS00 0
253
+ #define CS01 1
254
+ #define CS02 2
255
+ #define WGM02 3
256
+ #define FOC0B 6
257
+ #define FOC0A 7
258
+
259
+ #define TCCR0A _SFR_IO8(0x19)
260
+ #define WGM00 0
261
+ #define WGM01 1
262
+ #define COM0B0 4
263
+ #define COM0B1 5
264
+ #define COM0A0 6
265
+ #define COM0A1 7
266
+
267
+ #define ICR1 _SFR_IO16(0x1A)
268
+
269
+ #define ICR1L _SFR_IO8(0x1A)
270
+ #define ICR1_0 0
271
+ #define ICR1_1 1
272
+ #define ICR1_2 2
273
+ #define ICR1_3 3
274
+ #define ICR1_4 4
275
+ #define ICR1_5 5
276
+ #define ICR1_6 6
277
+ #define ICR1_7 7
278
+
279
+ #define ICR1H _SFR_IO8(0x1B)
280
+ #define ICR1_8 0
281
+ #define ICR1_9 1
282
+ #define ICR1_10 2
283
+ #define ICR1_11 3
284
+ #define ICR1_12 4
285
+ #define ICR1_13 5
286
+ #define ICR1_14 6
287
+ #define ICR1_15 7
288
+
289
+ #define OCR1B _SFR_IO16(0x1C)
290
+
291
+ #define OCR1BL _SFR_IO8(0x1C)
292
+ #define OCR1B0 0
293
+ #define OCR1B1 1
294
+ #define OCR1B2 2
295
+ #define OCR1B3 3
296
+ #define OCR1B4 4
297
+ #define OCR1B5 5
298
+ #define OCR1B6 6
299
+ #define OCR1B7 7
300
+
301
+ #define OCR1BH _SFR_IO8(0x1D)
302
+ #define OCR1B8 0
303
+ #define OCR1B9 1
304
+ #define OCR1B10 2
305
+ #define OCR1B11 3
306
+ #define OCR1B12 4
307
+ #define OCR1B13 5
308
+ #define OCR1B14 6
309
+ #define OCR1B15 7
310
+
311
+ #define OCR1A _SFR_IO16(0x1E)
312
+
313
+ #define OCR1AL _SFR_IO8(0x1E)
314
+ #define OCR1A0 0
315
+ #define OCR1A1 1
316
+ #define OCR1A2 2
317
+ #define OCR1A3 3
318
+ #define OCR1A4 4
319
+ #define OCR1A5 5
320
+ #define OCR1A6 6
321
+ #define OCR1A7 7
322
+
323
+ #define OCR1AH _SFR_IO8(0x1F)
324
+ #define OCR1A8 0
325
+ #define OCR1A9 1
326
+ #define OCR1A10 2
327
+ #define OCR1A11 3
328
+ #define OCR1A12 4
329
+ #define OCR1A13 5
330
+ #define OCR1A14 6
331
+ #define OCR1A15 7
332
+
333
+ #define TCNT1 _SFR_IO16(0x20)
334
+
335
+ #define TCNT1L _SFR_IO8(0x20)
336
+ #define TCNT1_0 0
337
+ #define TCNT1_1 1
338
+ #define TCNT1_2 2
339
+ #define TCNT1_3 3
340
+ #define TCNT1_4 4
341
+ #define TCNT1_5 5
342
+ #define TCNT1_6 6
343
+ #define TCNT1_7 7
344
+
345
+ #define TCNT1H _SFR_IO8(0x21)
346
+ #define TCNT1_8 0
347
+ #define TCNT1_9 1
348
+ #define TCNT1_10 2
349
+ #define TCNT1_11 3
350
+ #define TCNT1_12 4
351
+ #define TCNT1_13 5
352
+ #define TCNT1_14 6
353
+ #define TCNT1_15 7
354
+
355
+ #define TCCR1C _SFR_IO8(0x22)
356
+ #define FOC1B 6
357
+ #define FOC1A 7
358
+
359
+ #define TCCR1B _SFR_IO8(0x23)
360
+ #define CS10 0
361
+ #define CS11 1
362
+ #define CS12 2
363
+ #define WGM12 3
364
+ #define WGM13 4
365
+ #define ICES1 6
366
+ #define ICNC1 7
367
+
368
+ #define TCCR1A _SFR_IO8(0x24)
369
+ #define WGM10 0
370
+ #define WGM11 1
371
+ #define COM1B0 4
372
+ #define COM1B1 5
373
+ #define COM1A0 6
374
+ #define COM1A1 7
375
+
376
+ #define TIFR _SFR_IO8(0x25)
377
+ #define TOV0 0
378
+ #define OCF0A 1
379
+ #define OCF0B 2
380
+ #define TOV1 3
381
+ #define OCF1A 4
382
+ #define OCF1B 5
383
+ #define ICF1 7
384
+
385
+ #define TIMSK _SFR_IO8(0x26)
386
+ #define TOIE0 0
387
+ #define OCIE0A 1
388
+ #define OCIE0B 2
389
+ #define TOIE1 3
390
+ #define OCIE1A 4
391
+ #define OCIE1B 5
392
+ #define ICIE1 7
393
+
394
+ #define GTCCR _SFR_IO8(0x27)
395
+ #define PSR 0
396
+ #define TSM 7
397
+
398
+ #define TWSD _SFR_IO8(0x28)
399
+ #define TWSD0 0
400
+ #define TWSD1 1
401
+ #define TWSD2 2
402
+ #define TWSD3 3
403
+ #define TWSD4 4
404
+ #define TWSD5 5
405
+ #define TWSD6 6
406
+ #define TWSD7 7
407
+
408
+ #define TWSAM _SFR_IO8(0x29)
409
+ #define TWAE 0
410
+ #define TWSAM1 1
411
+ #define TWSAM2 2
412
+ #define TWSAM3 3
413
+ #define TWSAM4 4
414
+ #define TWSAM5 5
415
+ #define TWSAM6 6
416
+ #define TWSAM7 7
417
+
418
+ #define TWSA _SFR_IO8(0x2A)
419
+ #define TWSA0 0
420
+ #define TWSA1 1
421
+ #define TWSA2 2
422
+ #define TWSA3 3
423
+ #define TWSA4 4
424
+ #define TWSA5 5
425
+ #define TWSA6 6
426
+ #define TWSA7 7
427
+
428
+ #define TWSSRA _SFR_IO8(0x2B)
429
+ #define TWAS 0
430
+ #define TWDIR 1
431
+ #define TWBE 2
432
+ #define TWC 3
433
+ #define TWRA 4
434
+ #define TWCH 5
435
+ #define TWASIF 6
436
+ #define TWDIF 7
437
+
438
+ #define TWSCRB _SFR_IO8(0x2C)
439
+ #define TWCMD0 0
440
+ #define TWCMD1 1
441
+ #define TWAA 2
442
+
443
+ #define TWSCRA _SFR_IO8(0x2D)
444
+ #define TWSME 0
445
+ #define TWPME 1
446
+ #define TWSIE 2
447
+ #define TWEN 3
448
+ #define TWASIE 4
449
+ #define TWDIE 5
450
+ #define TWSHE 7
451
+
452
+ #define SPDR _SFR_IO8(0x2E)
453
+ #define SPDR0 0
454
+ #define SPDR1 1
455
+ #define SPDR2 2
456
+ #define SPDR3 3
457
+ #define SPDR4 4
458
+ #define SPDR5 5
459
+ #define SPDR6 6
460
+ #define SPDR7 7
461
+
462
+ #define SPSR _SFR_IO8(0x2F)
463
+ #define SPI2X 0
464
+ #define WCOL 6
465
+ #define SPIF 7
466
+
467
+ #define SPCR _SFR_IO8(0x30)
468
+ #define SPR0 0
469
+ #define SPR1 1
470
+ #define CPHA 2
471
+ #define CPOL 3
472
+ #define MSTR 4
473
+ #define DORD 5
474
+ #define SPE 6
475
+ #define SPIE 7
476
+
477
+ #define WDTCSR _SFR_IO8(0x31)
478
+ #define WDP0 0
479
+ #define WDP1 1
480
+ #define WDP2 2
481
+ #define WDE 3
482
+ #define WDP3 5
483
+ #define WDIE 6
484
+ #define WDIF 7
485
+
486
+ #define NVMCSR _SFR_IO8(0x32)
487
+ #define NVMBSY 7
488
+
489
+ #define NVMCMD _SFR_IO8(0x33)
490
+ #define NVMCMD0 0
491
+ #define NVMCMD1 1
492
+ #define NVMCMD2 2
493
+ #define NVMCMD3 3
494
+ #define NVMCMD4 4
495
+ #define NVMCMD5 5
496
+
497
+ #define QTCSR _SFR_IO8(0x34)
498
+
499
+ #define PRR _SFR_IO8(0x35)
500
+ #define PRADC 0
501
+ #define PRTIM0 1
502
+ #define PRTIM1 2
503
+ #define PRSPI 3
504
+ #define PRTWI 4
505
+
506
+ #define __AVR_HAVE_PRR ((1<<PRADC)|(1<<PRTIM0)|(1<<PRTIM1)|(1<<PRSPI)|(1<<PRTWI))
507
+ #define __AVR_HAVE_PRR_PRADC
508
+ #define __AVR_HAVE_PRR_PRTIM0
509
+ #define __AVR_HAVE_PRR_PRTIM1
510
+ #define __AVR_HAVE_PRR_PRSPI
511
+ #define __AVR_HAVE_PRR_PRTWI
512
+
513
+ #define CLKPSR _SFR_IO8(0x36)
514
+ #define CLKPS0 0
515
+ #define CLKPS1 1
516
+ #define CLKPS2 2
517
+ #define CLKPS3 3
518
+
519
+ #define CLKMSR _SFR_IO8(0x37)
520
+ #define CLKMS0 0
521
+ #define CLKMS1 1
522
+
523
+ #define OSCCAL _SFR_IO8(0x39)
524
+ #define CAL0 0
525
+ #define CAL1 1
526
+ #define CAL2 2
527
+ #define CAL3 3
528
+ #define CAL4 4
529
+ #define CAL5 5
530
+ #define CAL6 6
531
+ #define CAL7 7
532
+
533
+ #define MCUCR _SFR_IO8(0x3A)
534
+ #define SE 0
535
+ #define SM0 1
536
+ #define SM1 2
537
+ #define SM2 3
538
+ #define BODS 4
539
+ #define ISC00 6
540
+ #define ISC01 7
541
+
542
+ #define RSTFLR _SFR_IO8(0x3B)
543
+ #define PORF 0
544
+ #define EXTRF 1
545
+ #define WDRF 3
546
+
547
+ #define CCP _SFR_IO8(0x3C)
548
+ #define CCP0 0
549
+ #define CCP1 1
550
+ #define CCP2 2
551
+ #define CCP3 3
552
+ #define CCP4 4
553
+ #define CCP5 5
554
+ #define CCP6 6
555
+ #define CCP7 7
556
+
557
+
558
+ /* Interrupt vectors */
559
+ /* Vector 0 is the reset vector */
560
+ #define INT0_vect_num 1
561
+ #define INT0_vect _VECTOR(1) /* External Interrupt Request 0 */
562
+ #define PCINT0_vect_num 2
563
+ #define PCINT0_vect _VECTOR(2) /* Pin Change Interrupt Request 0 */
564
+ #define PCINT1_vect_num 3
565
+ #define PCINT1_vect _VECTOR(3) /* Pin Change Interrupt Request 1 */
566
+ #define WDT_vect_num 4
567
+ #define WDT_vect _VECTOR(4) /* Watchdog Time-out */
568
+ #define TIM1_CAPT_vect_num 5
569
+ #define TIM1_CAPT_vect _VECTOR(5) /* Timer/Counter1 Input Capture */
570
+ #define TIM1_COMPA_vect_num 6
571
+ #define TIM1_COMPA_vect _VECTOR(6) /* Timer/Counter1 Compare Match A */
572
+ #define TIM1_COMPB_vect_num 7
573
+ #define TIM1_COMPB_vect _VECTOR(7) /* Timer/Counter1 Compare Match B */
574
+ #define TIM1_OVF_vect_num 8
575
+ #define TIM1_OVF_vect _VECTOR(8) /* Timer/Counter1 Overflow */
576
+ #define TIM0_COMPA_vect_num 9
577
+ #define TIM0_COMPA_vect _VECTOR(9) /* Timer/Counter0 Compare Match A */
578
+ #define TIM0_COMPB_vect_num 10
579
+ #define TIM0_COMPB_vect _VECTOR(10) /* Timer/Counter0 Compare Match B */
580
+ #define TIM0_OVF_vect_num 11
581
+ #define TIM0_OVF_vect _VECTOR(11) /* Timer/Counter0 Overflow */
582
+ #define ANA_COMP_vect_num 12
583
+ #define ANA_COMP_vect _VECTOR(12) /* Analog Comparator */
584
+ #define ADC_ADC_vect_num 13
585
+ #define ADC_ADC_vect _VECTOR(13) /* Conversion Complete */
586
+ #define TWI_SLAVE_vect_num 14
587
+ #define TWI_SLAVE_vect _VECTOR(14) /* Two-Wire Interface */
588
+ #define SPI_vect_num 15
589
+ #define SPI_vect _VECTOR(15) /* Serial Peripheral Interface */
590
+ #define QTRIP_vect_num 16
591
+ #define QTRIP_vect _VECTOR(16) /* Touch Sensing */
592
+
593
+ #define _VECTOR_SIZE 2 /* Size of individual vector. */
594
+ #define _VECTORS_SIZE (17 * _VECTOR_SIZE)
595
+
596
+
597
+ /* Constants */
598
+ #define SPM_PAGESIZE (64)
599
+ #define RAMSTART (0x40)
600
+ #define RAMSIZE (128)
601
+ #define RAMEND (RAMSTART + RAMSIZE - 1)
602
+ #define XRAMSTART (NA)
603
+ #define XRAMSIZE (0)
604
+ #define XRAMEND (RAMEND)
605
+ #define E2END (0x0)
606
+ #define E2PAGESIZE (0)
607
+ #define FLASHEND (0x7FF)
608
+
609
+
610
+ /* Fuses */
611
+ #define FUSE_MEMORY_SIZE 0
612
+
613
+
614
+ /* Lock Bits */
615
+ #define __LOCK_BITS_EXIST
616
+
617
+
618
+ /* Signature */
619
+ #define SIGNATURE_0 0x1E
620
+ #define SIGNATURE_1 0x91
621
+ #define SIGNATURE_2 0x0F
622
+
623
+
624
+ /* Device Pin Definitions */
625
+ #define ADC4_DDR DDRCINT
626
+ #define ADC4_PORT PORTCINT
627
+ #define ADC4_PIN PINCINT
628
+ #define ADC4_BIT INT4
629
+
630
+ #define ADC3_DDR DDRCINT
631
+ #define ADC3_PORT PORTCINT
632
+ #define ADC3_PIN PINCINT
633
+ #define ADC3_BIT INT3
634
+
635
+ #define AIN1_DDR DDRCINT
636
+ #define AIN1_PORT PORTCINT
637
+ #define AIN1_PIN PINCINT
638
+ #define AIN1_BIT INT2
639
+
640
+ #define ADC2_DDR DDRCINT
641
+ #define ADC2_PORT PORTCINT
642
+ #define ADC2_PIN PINCINT
643
+ #define ADC2_BIT INT2
644
+
645
+ #define AIN0_DDR DDRCINT
646
+ #define AIN0_PORT PORTCINT
647
+ #define AIN0_PIN PINCINT
648
+ #define AIN0_BIT INT1
649
+
650
+ #define ADC1_DDR DDRCINT
651
+ #define ADC1_PORT PORTCINT
652
+ #define ADC1_PIN PINCINT
653
+ #define ADC1_BIT INT1
654
+
655
+ #define ADC0_DDR DDRCINT
656
+ #define ADC0_PORT PORTCINT
657
+ #define ADC0_PIN PINCINT
658
+ #define ADC0_BIT INT0
659
+
660
+ #define T0_DDR DDRCLKI
661
+ #define T0_PORT PORTCLKI
662
+ #define T0_PIN PINCLKI
663
+ #define T0_BIT CLKI
664
+
665
+ #define TPICLK_DDR DDRCLKI
666
+ #define TPICLK_PORT PORTCLKI
667
+ #define TPICLK_PIN PINCLKI
668
+ #define TPICLK_BIT CLKI
669
+
670
+ #define PCINT8_DDR DDRCLKI
671
+ #define PCINT8_PORT PORTCLKI
672
+ #define PCINT8_PIN PINCLKI
673
+ #define PCINT8_BIT CLKI
674
+
675
+ #define SDA_DDR DDROC1A
676
+ #define SDA_PORT PORTOC1A
677
+ #define SDA_PIN PINOC1A
678
+ #define SDA_BIT OC1A
679
+
680
+ #define MOSI_DDR DDROC1A
681
+ #define MOSI_PORT PORTOC1A
682
+ #define MOSI_PIN PINOC1A
683
+ #define MOSI_BIT OC1A
684
+
685
+ #define TPIDATA_DDR DDROC1A
686
+ #define TPIDATA_PORT PORTOC1A
687
+ #define TPIDATA_PIN PINOC1A
688
+ #define TPIDATA_BIT OC1A
689
+
690
+ #define PCINT9_DDR DDROC1A
691
+ #define PCINT9_PORT PORTOC1A
692
+ #define PCINT9_PIN PINOC1A
693
+ #define PCINT9_BIT OC1A
694
+
695
+ #define PCINT11_DDR DDRRESET
696
+ #define PCINT11_PORT PORTRESET
697
+ #define PCINT11_PIN PINRESET
698
+ #define PCINT11_BIT RESET
699
+
700
+ #define OC0A_DDR DDRCKOUT
701
+ #define OC0A_PORT PORTCKOUT
702
+ #define OC0A_PIN PINCKOUT
703
+ #define OC0A_BIT CKOUT
704
+
705
+ #define OC1B_DDR DDRCKOUT
706
+ #define OC1B_PORT PORTCKOUT
707
+ #define OC1B_PIN PINCKOUT
708
+ #define OC1B_BIT CKOUT
709
+
710
+ #define MISO_DDR DDRCKOUT
711
+ #define MISO_PORT PORTCKOUT
712
+ #define MISO_PIN PINCKOUT
713
+ #define MISO_BIT CKOUT
714
+
715
+ #define INT0_DDR DDRCKOUT
716
+ #define INT0_PORT PORTCKOUT
717
+ #define INT0_PIN PINCKOUT
718
+ #define INT0_BIT CKOUT
719
+
720
+ #define PCINT10_DDR DDRCKOUT
721
+ #define PCINT10_PORT PORTCKOUT
722
+ #define PCINT10_PIN PINCKOUT
723
+ #define PCINT10_BIT CKOUT
724
+
725
+ #define OC0B_DDR DDR(ADC
726
+ #define OC0B_PORT PORT(ADC
727
+ #define OC0B_PIN PIN(ADC
728
+ #define OC0B_BIT (ADC7
729
+
730
+ #define ICP1_DDR DDR(ADC
731
+ #define ICP1_PORT PORT(ADC
732
+ #define ICP1_PIN PIN(ADC
733
+ #define ICP1_BIT (ADC7
734
+
735
+ #define T1_DDR DDR(ADC
736
+ #define T1_PORT PORT(ADC
737
+ #define T1_PIN PIN(ADC
738
+ #define T1_BIT (ADC7
739
+
740
+ #define SCL_DDR DDR(ADC
741
+ #define SCL_PORT PORT(ADC
742
+ #define SCL_PIN PIN(ADC
743
+ #define SCL_BIT (ADC7
744
+
745
+ #define SCK_DDR DDR(ADC
746
+ #define SCK_PORT PORT(ADC
747
+ #define SCK_PIN PIN(ADC
748
+ #define SCK_BIT (ADC7
749
+
750
+ #define PCINT7_DDR DDR(ADC
751
+ #define PCINT7_PORT PORT(ADC
752
+ #define PCINT7_PIN PIN(ADC
753
+ #define PCINT7_BIT (ADC7
754
+
755
+ #define SS_DDR DDRADC
756
+ #define SS_PORT PORTADC
757
+ #define SS_PIN PINADC
758
+ #define SS_BIT ADC6
759
+
760
+ #define PCINT6_DDR DDRADC
761
+ #define PCINT6_PORT PORTADC
762
+ #define PCINT6_PIN PINADC
763
+ #define PCINT6_BIT ADC6
764
+
765
+ #define PCINT5_DDR DDRADC
766
+ #define PCINT5_PORT PORTADC
767
+ #define PCINT5_PIN PINADC
768
+ #define PCINT5_BIT ADC5
769
+
770
+ #define SLEEP_MODE_IDLE (0x00<<1)
771
+ #define SLEEP_MODE_ADC (0x01<<1)
772
+ #define SLEEP_MODE_PWR_DOWN (0x02<<1)
773
+ #define SLEEP_MODE_STANDBY (0x04<<1)
774
+
775
+ #endif /* _AVR_ATtiny20_H_ */
776
+