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,767 @@
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: iotn40.h 2435 2014-08-11 10:31:52Z joerg_wunsch $ */
32
+
33
+ /* avr/iotn40.h - definitions for ATtiny40 */
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_ "iotn40.h"
43
+ #else
44
+ # error "Attempt to include more than one <avr/ioXXX.h> file."
45
+ #endif
46
+
47
+
48
+ #ifndef _AVR_ATtiny40_H_
49
+ #define _AVR_ATtiny40_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
+ #define BBMC 2
122
+ #define ADC8D 4
123
+ #define ADC9D 5
124
+ #define ADC10D 6
125
+ #define ADC11D 7
126
+
127
+ #define PCMSK0 _SFR_IO8(0x09)
128
+ #define PCINT0 0
129
+ #define PCINT1 1
130
+ #define PCINT2 2
131
+ #define PCINT3 3
132
+ #define PCINT4 4
133
+ #define PCINT5 5
134
+ #define PCINT6 6
135
+ #define PCINT7 7
136
+
137
+ #define PCMSK1 _SFR_IO8(0x0A)
138
+ #define PCINT8 0
139
+ #define PCINT9 1
140
+ #define PCINT10 2
141
+ #define PCINT11 3
142
+
143
+ #define GIFR _SFR_IO8(0x0B)
144
+ #define INTF0 0
145
+ #define PCIF0 4
146
+ #define PCIF1 5
147
+ #define PCIF2 6
148
+
149
+ #define GIMSK _SFR_IO8(0x0C)
150
+ #define INT0 0
151
+ #define PCIE0 4
152
+ #define PCIE1 5
153
+ #define PCIE2 6
154
+
155
+ #define DIDR0 _SFR_IO8(0x0D)
156
+ #define ADC0D 0
157
+ #define ADC1D 1
158
+ #define ADC2D 2
159
+ #define ADC3D 3
160
+ #define ADC4D 4
161
+ #define ADC5D 5
162
+ #define ADC6D 6
163
+ #define ADC7D 7
164
+
165
+ #ifndef __ASSEMBLER__
166
+ #define ADC _SFR_IO16(0x0E)
167
+ #endif
168
+ #define ADCW _SFR_IO16(0x0E)
169
+
170
+ #define ADCL _SFR_IO8(0x0E)
171
+ #define ADCL0 0
172
+ #define ADCL1 1
173
+ #define ADCL2 2
174
+ #define ADCL3 3
175
+ #define ADCL4 4
176
+ #define ADCL5 5
177
+ #define ADCL6 6
178
+ #define ADCL7 7
179
+
180
+ #define ADCH _SFR_IO8(0x0F)
181
+ #define ADCH0 0
182
+ #define ADCH1 1
183
+ #define ADCH2 2
184
+ #define ADCH3 3
185
+ #define ADCH4 4
186
+ #define ADCH5 5
187
+ #define ADCH6 6
188
+ #define ADCH7 7
189
+
190
+ #define ADMUX _SFR_IO8(0x10)
191
+ #define MUX0 0
192
+ #define MUX1 1
193
+ #define MUX2 2
194
+ #define MUX3 3
195
+ #define REFS 6
196
+
197
+ #define ADCSRB _SFR_IO8(0x11)
198
+ #define ADTS0 0
199
+ #define ADTS1 1
200
+ #define ADTS2 2
201
+ #define ADLAR 3
202
+
203
+ #define ADCSRA _SFR_IO8(0x12)
204
+ #define ADPS0 0
205
+ #define ADPS1 1
206
+ #define ADPS2 2
207
+ #define ADIE 3
208
+ #define ADIF 4
209
+ #define ADATE 5
210
+ #define ADSC 6
211
+ #define ADEN 7
212
+
213
+ #define ACSRB _SFR_IO8(0x13)
214
+ #define ACME 2
215
+ #define HLEV 6
216
+ #define HSEL 7
217
+
218
+ #define ACSRA _SFR_IO8(0x14)
219
+ #define ACIS0 0
220
+ #define ACIS1 1
221
+ #define ACIC 2
222
+ #define ACIE 3
223
+ #define ACI 4
224
+ #define ACO 5
225
+ #define ACBG 6
226
+ #define ACD 7
227
+
228
+ #define OCR0B _SFR_IO8(0x15)
229
+ #define OCR0B_0 0
230
+ #define OCR0B_1 1
231
+ #define OCR0B_2 2
232
+ #define OCR0B_3 3
233
+ #define OCR0B_4 4
234
+ #define OCR0B_5 5
235
+ #define OCR0B_6 6
236
+ #define OCR0B_7 7
237
+
238
+ #define OCR0A _SFR_IO8(0x16)
239
+ #define OCR0_0 0
240
+ #define OCR0_1 1
241
+ #define OCR0_2 2
242
+ #define OCR0_3 3
243
+ #define OCR0_4 4
244
+ #define OCR0_5 5
245
+ #define OCR0_6 6
246
+ #define OCR0_7 7
247
+
248
+ #define TCNT0 _SFR_IO8(0x17)
249
+ #define TCNT0_0 0
250
+ #define TCNT0_1 1
251
+ #define TCNT0_2 2
252
+ #define TCNT0_3 3
253
+ #define TCNT0_4 4
254
+ #define TCNT0_5 5
255
+ #define TCNT0_6 6
256
+ #define TCNT0_7 7
257
+
258
+ #define TCCR0B _SFR_IO8(0x18)
259
+ #define CS00 0
260
+ #define CS01 1
261
+ #define CS02 2
262
+ #define WGM02 3
263
+ #define PSR 4
264
+ #define TSM 5
265
+ #define FOC0B 6
266
+ #define FOC0A 7
267
+
268
+ #define TCCR0A _SFR_IO8(0x19)
269
+ #define WGM00 0
270
+ #define WGM01 1
271
+ #define COM0B0 4
272
+ #define COM0B1 5
273
+ #define COM0A0 6
274
+ #define COM0A1 7
275
+
276
+ #define PCMSK2 _SFR_IO8(0x1A)
277
+ #define PCINT12 0
278
+ #define PCINT13 1
279
+ #define PCINT14 2
280
+ #define PCINT15 3
281
+ #define PCINT16 4
282
+ #define PCINT17 5
283
+
284
+ #define PINC _SFR_IO8(0x1B)
285
+ #define PINC0 0
286
+ #define PINC1 1
287
+ #define PINC2 2
288
+ #define PINC3 3
289
+ #define PINC4 4
290
+ #define PINC5 5
291
+
292
+ #define DDRC _SFR_IO8(0x1C)
293
+ #define DDC0 0
294
+ #define DDC1 1
295
+ #define DDC2 2
296
+ #define DDC3 3
297
+ #define DDC4 4
298
+ #define DDC5 5
299
+
300
+ #define PORTC _SFR_IO8(0x1D)
301
+ #define PORTC0 0
302
+ #define PORTC1 1
303
+ #define PORTC2 2
304
+ #define PORTC3 3
305
+ #define PORTC4 4
306
+ #define PORTC5 5
307
+
308
+ #define PUEC _SFR_IO8(0x1E)
309
+ #define PUEC0 0
310
+ #define PUEC1 1
311
+ #define PUEC2 2
312
+ #define PUEC3 3
313
+ #define PUEC4 4
314
+ #define PUEC5 5
315
+
316
+ #define RAMDR _SFR_IO8(0x1F)
317
+ #define RAMDR0 0
318
+ #define RAMDR1 1
319
+ #define RAMDR2 2
320
+ #define RAMDR3 3
321
+ #define RAMDR4 4
322
+ #define RAMDR5 5
323
+ #define RAMDR6 6
324
+ #define RAMDR7 7
325
+
326
+ #define RAMAR _SFR_IO8(0x20)
327
+ #define RAMAR0 0
328
+ #define RAMAR1 1
329
+ #define RAMAR2 2
330
+ #define RAMAR3 3
331
+ #define RAMAR4 4
332
+ #define RAMAR5 5
333
+ #define RAMAR6 6
334
+ #define RAMAR7 7
335
+
336
+ #define OCR1B _SFR_IO8(0x21)
337
+ #define OCR1B0 0
338
+ #define OCR1B1 1
339
+ #define OCR1B2 2
340
+ #define OCR1B3 3
341
+ #define OCR1B4 4
342
+ #define OCR1B5 5
343
+ #define OCR1B6 6
344
+ #define OCR1B7 7
345
+
346
+ #define OCR1A _SFR_IO8(0x22)
347
+ #define OCR1A0 0
348
+ #define OCR1A1 1
349
+ #define OCR1A2 2
350
+ #define OCR1A3 3
351
+ #define OCR1A4 4
352
+ #define OCR1A5 5
353
+ #define OCR1A6 6
354
+ #define OCR1A7 7
355
+
356
+ #define TCNT1L _SFR_IO8(0x23)
357
+ #define TCNT1_0 0
358
+ #define TCNT1_1 1
359
+ #define TCNT1_2 2
360
+ #define TCNT1_3 3
361
+ #define TCNT1_4 4
362
+ #define TCNT1_5 5
363
+ #define TCNT1_6 6
364
+ #define TCNT1_7 7
365
+
366
+ #define TCCR1A _SFR_IO8(0x24)
367
+ #define CS10 0
368
+ #define CS11 1
369
+ #define CS12 2
370
+ #define CTC1 3
371
+ #define ICES1 4
372
+ #define ICNC1 5
373
+ #define ICEN1 6
374
+ #define TCW1 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 TCNT1H _SFR_IO8(0x27)
395
+ #define TCNT1_8 0
396
+ #define TCNT1_9 1
397
+ #define TCNT1_10 2
398
+ #define TCNT1_11 3
399
+ #define TCNT1_12 4
400
+ #define TCNT1_13 5
401
+ #define TCNT1_14 6
402
+ #define TCNT1_15 7
403
+
404
+ #define TWSD _SFR_IO8(0x28)
405
+ #define TWSD0 0
406
+ #define TWSD1 1
407
+ #define TWSD2 2
408
+ #define TWSD3 3
409
+ #define TWSD4 4
410
+ #define TWSD5 5
411
+ #define TWSD6 6
412
+ #define TWSD7 7
413
+
414
+ #define TWSAM _SFR_IO8(0x29)
415
+ #define TWAE 0
416
+ #define TWSAM1 1
417
+ #define TWSAM2 2
418
+ #define TWSAM3 3
419
+ #define TWSAM4 4
420
+ #define TWSAM5 5
421
+ #define TWSAM6 6
422
+ #define TWSAM7 7
423
+
424
+ #define TWSA _SFR_IO8(0x2A)
425
+ #define TWSA0 0
426
+ #define TWSA1 1
427
+ #define TWSA2 2
428
+ #define TWSA3 3
429
+ #define TWSA4 4
430
+ #define TWSA5 5
431
+ #define TWSA6 6
432
+ #define TWSA7 7
433
+
434
+ #define TWSSRA _SFR_IO8(0x2B)
435
+ #define TWAS 0
436
+ #define TWDIR 1
437
+ #define TWBE 2
438
+ #define TWC 3
439
+ #define TWRA 4
440
+ #define TWCH 5
441
+ #define TWASIF 6
442
+ #define TWDIF 7
443
+
444
+ #define TWSCRB _SFR_IO8(0x2C)
445
+ #define TWCMD0 0
446
+ #define TWCMD1 1
447
+ #define TWAA 2
448
+
449
+ #define TWSCRA _SFR_IO8(0x2D)
450
+ #define TWSME 0
451
+ #define TWPME 1
452
+ #define TWSIE 2
453
+ #define TWEN 3
454
+ #define TWASIE 4
455
+ #define TWDIE 5
456
+ #define TWSHE 7
457
+
458
+ #define SPDR _SFR_IO8(0x2E)
459
+
460
+ #define SPSR _SFR_IO8(0x2F)
461
+
462
+ #define SPCR _SFR_IO8(0x30)
463
+
464
+ #define WDTCSR _SFR_IO8(0x31)
465
+ #define WDP0 0
466
+ #define WDP1 1
467
+ #define WDP2 2
468
+ #define WDE 3
469
+ #define WDP3 5
470
+ #define WDIE 6
471
+ #define WDIF 7
472
+
473
+ #define NVMCSR _SFR_IO8(0x32)
474
+ #define NVMBSY 7
475
+
476
+ #define NVMCMD _SFR_IO8(0x33)
477
+ #define NVMCMD0 0
478
+ #define NVMCMD1 1
479
+ #define NVMCMD2 2
480
+ #define NVMCMD3 3
481
+ #define NVMCMD4 4
482
+ #define NVMCMD5 5
483
+
484
+ #define QTCSR _SFR_IO8(0x34)
485
+
486
+ #define PRR _SFR_IO8(0x35)
487
+ #define PRADC 0
488
+ #define PRTIM0 1
489
+ #define PRTIM1 2
490
+ #define PRSPI 3
491
+ #define PRTWI 4
492
+
493
+ #define __AVR_HAVE_PRR ((1<<PRADC)|(1<<PRTIM0)|(1<<PRTIM1)|(1<<PRSPI)|(1<<PRTWI))
494
+ #define __AVR_HAVE_PRR_PRADC
495
+ #define __AVR_HAVE_PRR_PRTIM0
496
+ #define __AVR_HAVE_PRR_PRTIM1
497
+ #define __AVR_HAVE_PRR_PRSPI
498
+ #define __AVR_HAVE_PRR_PRTWI
499
+
500
+ #define CLKPSR _SFR_IO8(0x36)
501
+ #define CLKPS0 0
502
+ #define CLKPS1 1
503
+ #define CLKPS2 2
504
+ #define CLKPS3 3
505
+
506
+ #define CLKMSR _SFR_IO8(0x37)
507
+ #define CLKMS0 0
508
+ #define CLKMS1 1
509
+
510
+ #define DWDR _SFR_IO8(0x38)
511
+
512
+ #define OSCCAL _SFR_IO8(0x39)
513
+ #define CAL0 0
514
+ #define CAL1 1
515
+ #define CAL2 2
516
+ #define CAL3 3
517
+ #define CAL4 4
518
+ #define CAL5 5
519
+ #define CAL6 6
520
+ #define CAL7 7
521
+
522
+ #define MCUCR _SFR_IO8(0x3A)
523
+ #define SE 0
524
+ #define SM0 1
525
+ #define SM1 2
526
+ #define SM2 3
527
+ #define BODS 4
528
+ #define ISC00 6
529
+ #define ISC01 7
530
+
531
+ #define RSTFLR _SFR_IO8(0x3B)
532
+ #define PORF 0
533
+ #define EXTRF 1
534
+ #define WDRF 3
535
+
536
+ #define CCP _SFR_IO8(0x3C)
537
+ #define CCP0 0
538
+ #define CCP1 1
539
+ #define CCP2 2
540
+ #define CCP3 3
541
+ #define CCP4 4
542
+ #define CCP5 5
543
+ #define CCP6 6
544
+ #define CCP7 7
545
+
546
+
547
+ /* Interrupt vectors */
548
+ /* Vector 0 is the reset vector */
549
+ #define INT0_vect_num 1
550
+ #define INT0_vect _VECTOR(1) /* External Interrupt Request 0 */
551
+ #define PCINT0_vect_num 2
552
+ #define PCINT0_vect _VECTOR(2) /* Pin Change Interrupt Request 0 */
553
+ #define PCINT1_vect_num 3
554
+ #define PCINT1_vect _VECTOR(3) /* Pin Change Interrupt Request 1 */
555
+ #define PCINT2_vect_num 4
556
+ #define PCINT2_vect _VECTOR(4) /* Pin Change Interrupt Request 2 */
557
+ #define WDT_vect_num 5
558
+ #define WDT_vect _VECTOR(5) /* Watchdog Time-out */
559
+ #define TIM1_CAPT_vect_num 6
560
+ #define TIM1_CAPT_vect _VECTOR(6) /* Timer/Counter1 Input Capture */
561
+ #define TIM1_COMPA_vect_num 7
562
+ #define TIM1_COMPA_vect _VECTOR(7) /* Timer/Counter1 Compare Match A */
563
+ #define TIM1_COMPB_vect_num 8
564
+ #define TIM1_COMPB_vect _VECTOR(8) /* Timer/Counter1 Compare Match B */
565
+ #define TIM1_OVF_vect_num 9
566
+ #define TIM1_OVF_vect _VECTOR(9) /* Timer/Counter1 Overflow */
567
+ #define TIM0_COMPA_vect_num 10
568
+ #define TIM0_COMPA_vect _VECTOR(10) /* Timer/Counter0 Compare Match A */
569
+ #define TIM0_COMPB_vect_num 11
570
+ #define TIM0_COMPB_vect _VECTOR(11) /* Timer/Counter0 Compare Match B */
571
+ #define TIM0_OVF_vect_num 12
572
+ #define TIM0_OVF_vect _VECTOR(12) /* Timer/Counter0 Overflow */
573
+ #define ANA_COMP_vect_num 13
574
+ #define ANA_COMP_vect _VECTOR(13) /* Analog Comparator */
575
+ #define ADC_vect_num 14
576
+ #define ADC_vect _VECTOR(14) /* Conversion Complete */
577
+ #define TWI_SLAVE_vect_num 15
578
+ #define TWI_SLAVE_vect _VECTOR(15) /* Two-Wire Interface */
579
+ #define SPI_vect_num 16
580
+ #define SPI_vect _VECTOR(16) /* Serial Peripheral Interface */
581
+ #define QTRIP_vect_num 17
582
+ #define QTRIP_vect _VECTOR(17) /* Touch Sensing */
583
+
584
+ #define _VECTOR_SIZE 2 /* Size of individual vector. */
585
+ #define _VECTORS_SIZE (18 * _VECTOR_SIZE)
586
+
587
+
588
+ /* Constants */
589
+ #define SPM_PAGESIZE (64)
590
+ #define RAMSTART (0x40)
591
+ #define RAMSIZE (256)
592
+ #define RAMEND (RAMSTART + RAMSIZE - 1)
593
+ #define XRAMSTART (NA)
594
+ #define XRAMSIZE (0)
595
+ #define XRAMEND (RAMEND)
596
+ #define E2END (0x0)
597
+ #define E2PAGESIZE (0)
598
+ #define FLASHEND (0xFFF)
599
+
600
+
601
+ /* Fuses */
602
+ #define FUSE_MEMORY_SIZE 0
603
+
604
+
605
+ /* Lock Bits */
606
+ #define __LOCK_BITS_EXIST
607
+
608
+
609
+ /* Signature */
610
+ #define SIGNATURE_0 0x1E
611
+ #define SIGNATURE_1 0x92
612
+ #define SIGNATURE_2 0x0E
613
+
614
+
615
+ /* Device Pin Definitions */
616
+ #define ADC6_DDR DDRCINT
617
+ #define ADC6_PORT PORTCINT
618
+ #define ADC6_PIN PINCINT
619
+ #define ADC6_BIT INT6
620
+
621
+ #define ADC5_DDR DDRCINT
622
+ #define ADC5_PORT PORTCINT
623
+ #define ADC5_PIN PINCINT
624
+ #define ADC5_BIT INT5
625
+
626
+ #define OC0B_DDR DDRCINT
627
+ #define OC0B_PORT PORTCINT
628
+ #define OC0B_PIN PINCINT
629
+ #define OC0B_BIT INT5
630
+
631
+ #define ADC4_DDR DDRCINT
632
+ #define ADC4_PORT PORTCINT
633
+ #define ADC4_PIN PINCINT
634
+ #define ADC4_BIT INT4
635
+
636
+ #define T0_DDR DDRCINT
637
+ #define T0_PORT PORTCINT
638
+ #define T0_PIN PINCINT
639
+ #define T0_BIT INT4
640
+
641
+ #define ADC3_DDR DDRPCINT
642
+ #define ADC3_PORT PORTPCINT
643
+ #define ADC3_PIN PINPCINT
644
+ #define ADC3_BIT PCINT3
645
+
646
+ #define ADC2_DDR DDRPCINT
647
+ #define ADC2_PORT PORTPCINT
648
+ #define ADC2_PIN PINPCINT
649
+ #define ADC2_BIT PCINT2
650
+
651
+ #define AIN1_DDR DDRPCINT
652
+ #define AIN1_PORT PORTPCINT
653
+ #define AIN1_PIN PINPCINT
654
+ #define AIN1_BIT PCINT2
655
+
656
+ #define ADC1_DDR DDRCINT
657
+ #define ADC1_PORT PORTCINT
658
+ #define ADC1_PIN PINCINT
659
+ #define ADC1_BIT INT1
660
+
661
+ #define AIN0_DDR DDRCINT
662
+ #define AIN0_PORT PORTCINT
663
+ #define AIN0_PIN PINCINT
664
+ #define AIN0_BIT INT1
665
+
666
+ #define ADC0_DDR DDRCINT
667
+ #define ADC0_PORT PORTCINT
668
+ #define ADC0_PIN PINCINT
669
+ #define ADC0_BIT INT0
670
+
671
+ #define CLKI_DDR DDRCINT1
672
+ #define CLKI_PORT PORTCINT1
673
+ #define CLKI_PIN PINCINT1
674
+ #define CLKI_BIT INT17
675
+
676
+ #define SDA_DDR DDRMOSI
677
+ #define SDA_PORT PORTMOSI
678
+ #define SDA_PIN PINMOSI
679
+ #define SDA_BIT MOSI
680
+
681
+ #define PCINT16_DDR DDRMOSI
682
+ #define PCINT16_PORT PORTMOSI
683
+ #define PCINT16_PIN PINMOSI
684
+ #define PCINT16_BIT MOSI
685
+
686
+ #define PCINT15_DDR DDRRESET
687
+ #define PCINT15_PORT PORTRESET
688
+ #define PCINT15_PIN PINRESET
689
+ #define PCINT15_BIT RESET
690
+
691
+ #define CLKO_DDR DDRINT
692
+ #define CLKO_PORT PORTINT
693
+ #define CLKO_PIN PININT
694
+ #define CLKO_BIT INT0
695
+
696
+ #define MISO_DDR DDRINT
697
+ #define MISO_PORT PORTINT
698
+ #define MISO_PIN PININT
699
+ #define MISO_BIT INT0
700
+
701
+ #define PCINT14_DDR DDRINT
702
+ #define PCINT14_PORT PORTINT
703
+ #define PCINT14_PIN PININT
704
+ #define PCINT14_BIT INT0
705
+
706
+ #define SCL_DDR DDRSCK
707
+ #define SCL_PORT PORTSCK
708
+ #define SCL_PIN PINSCK
709
+ #define SCL_BIT SCK
710
+
711
+ #define ICP1_DDR DDRSCK
712
+ #define ICP1_PORT PORTSCK
713
+ #define ICP1_PIN PINSCK
714
+ #define ICP1_BIT SCK
715
+
716
+ #define T1_DDR DDRSCK
717
+ #define T1_PORT PORTSCK
718
+ #define T1_PIN PINSCK
719
+ #define T1_BIT SCK
720
+
721
+ #define PCINT13_DDR DDRSCK
722
+ #define PCINT13_PORT PORTSCK
723
+ #define PCINT13_PIN PINSCK
724
+ #define PCINT13_BIT SCK
725
+
726
+ #define SS_DDR DDROC0A
727
+ #define SS_PORT PORTOC0A
728
+ #define SS_PIN PINOC0A
729
+ #define SS_BIT OC0A
730
+
731
+ #define PCINT12_DDR DDROC0A
732
+ #define PCINT12_PORT PORTOC0A
733
+ #define PCINT12_PIN PINOC0A
734
+ #define PCINT12_BIT OC0A
735
+
736
+ #define PCINT11_DDR DDRADC1
737
+ #define PCINT11_PORT PORTADC1
738
+ #define PCINT11_PIN PINADC1
739
+ #define PCINT11_BIT ADC11
740
+
741
+ #define PCINT10_DDR DDRADC1
742
+ #define PCINT10_PORT PORTADC1
743
+ #define PCINT10_PIN PINADC1
744
+ #define PCINT10_BIT ADC10
745
+
746
+ #define PCINT9_DDR DDRADC9
747
+ #define PCINT9_PORT PORTADC9
748
+ #define PCINT9_PIN PINADC9
749
+ #define PCINT9_BIT ADC9
750
+
751
+ #define PCINT8_DDR DDRADC
752
+ #define PCINT8_PORT PORTADC
753
+ #define PCINT8_PIN PINADC
754
+ #define PCINT8_BIT ADC8
755
+
756
+ #define PCINT7_DDR DDRADC
757
+ #define PCINT7_PORT PORTADC
758
+ #define PCINT7_PIN PINADC
759
+ #define PCINT7_BIT ADC7
760
+
761
+ #define SLEEP_MODE_IDLE (0x00<<1)
762
+ #define SLEEP_MODE_ADC (0x01<<1)
763
+ #define SLEEP_MODE_PWR_DOWN (0x02<<1)
764
+ #define SLEEP_MODE_STANDBY (0x04<<1)
765
+
766
+ #endif /* _AVR_ATtiny40_H_ */
767
+