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,844 @@
1
+ /* Copyright (c) 2009 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: iotn44a.h 2035 2009-11-02 02:44:17Z arcanum $ */
32
+
33
+ /* avr/iotn44a.h - definitions for ATtiny44A */
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_ "iotn44a.h"
43
+ #else
44
+ # error "Attempt to include more than one <avr/ioXXX.h> file."
45
+ #endif
46
+
47
+
48
+ #ifndef _AVR_ATtiny44A_H_
49
+ #define _AVR_ATtiny44A_H_ 1
50
+
51
+
52
+ /* Registers and associated bit numbers. */
53
+
54
+ #define PRR _SFR_IO8(0x00)
55
+ #define PRADC 0
56
+ #define PRUSI 1
57
+ #define PRTIM0 2
58
+ #define PRTIM1 3
59
+
60
+ #define __AVR_HAVE_PRR ((1<<PRADC)|(1<<PRUSI)|(1<<PRTIM0)|(1<<PRTIM1))
61
+ #define __AVR_HAVE_PRR_PRADC
62
+ #define __AVR_HAVE_PRR_PRUSI
63
+ #define __AVR_HAVE_PRR_PRTIM0
64
+ #define __AVR_HAVE_PRR_PRTIM1
65
+
66
+ #define DIDR0 _SFR_IO8(0x01)
67
+ #define ADC0D 0
68
+ #define ADC1D 1
69
+ #define ADC2D 2
70
+ #define ADC3D 3
71
+ #define ADC4D 4
72
+ #define ADC5D 5
73
+ #define ADC6D 6
74
+ #define ADC7D 7
75
+
76
+ #define ADCSRB _SFR_IO8(0x03)
77
+ #define ADTS0 0
78
+ #define ADTS1 1
79
+ #define ADTS2 2
80
+ #define ADLAR 4
81
+ #define ACME 6
82
+ #define BIN 7
83
+
84
+ #ifndef __ASSEMBLER__
85
+ #define ADC _SFR_IO16(0x04)
86
+ #endif
87
+ #define ADCW _SFR_IO16(0x04)
88
+
89
+ #define ADCL _SFR_IO8(0x04)
90
+ #define ADCL0 0
91
+ #define ADCL1 1
92
+ #define ADCL2 2
93
+ #define ADCL3 3
94
+ #define ADCL4 4
95
+ #define ADCL5 5
96
+ #define ADCL6 6
97
+ #define ADCL7 7
98
+
99
+ #define ADCH _SFR_IO8(0x05)
100
+ #define ADCH0 0
101
+ #define ADCH1 1
102
+ #define ADCH2 2
103
+ #define ADCH3 3
104
+ #define ADCH4 4
105
+ #define ADCH5 5
106
+ #define ADCH6 6
107
+ #define ADCH7 7
108
+
109
+ #define ADCSRA _SFR_IO8(0x06)
110
+ #define ADPS0 0
111
+ #define ADPS1 1
112
+ #define ADPS2 2
113
+ #define ADIE 3
114
+ #define ADIF 4
115
+ #define ADATE 5
116
+ #define ADSC 6
117
+ #define ADEN 7
118
+
119
+ #define ADMUX _SFR_IO8(0x07)
120
+ #define MUX0 0
121
+ #define MUX1 1
122
+ #define MUX2 2
123
+ #define MUX3 3
124
+ #define MUX4 4
125
+ #define MUX5 5
126
+ #define REFS0 6
127
+ #define REFS1 7
128
+
129
+ #define ACSR _SFR_IO8(0x08)
130
+ #define ACIS0 0
131
+ #define ACIS1 1
132
+ #define ACIC 2
133
+ #define ACIE 3
134
+ #define ACI 4
135
+ #define ACO 5
136
+ #define ACBG 6
137
+ #define ACD 7
138
+
139
+ #define TIFR1 _SFR_IO8(0x0B)
140
+ #define TOV1 0
141
+ #define OCF1A 1
142
+ #define OCF1B 2
143
+ #define ICF1 5
144
+
145
+ #define TIMSK1 _SFR_IO8(0x0C)
146
+ #define TOIE1 0
147
+ #define OCIE1A 1
148
+ #define OCIE1B 2
149
+ #define ICIE1 5
150
+
151
+ #define USICR _SFR_IO8(0x0D)
152
+ #define USITC 0
153
+ #define USICLK 1
154
+ #define USICS0 2
155
+ #define USICS1 3
156
+ #define USIWM0 4
157
+ #define USIWM1 5
158
+ #define USIOIE 6
159
+ #define USISIE 7
160
+
161
+ #define USISR _SFR_IO8(0x0E)
162
+ #define USICNT0 0
163
+ #define USICNT1 1
164
+ #define USICNT2 2
165
+ #define USICNT3 3
166
+ #define USIDC 4
167
+ #define USIPF 5
168
+ #define USIOIF 6
169
+ #define USISIF 7
170
+
171
+ #define USIDR _SFR_IO8(0x0F)
172
+ #define USIDR0 0
173
+ #define USIDR1 1
174
+ #define USIDR2 2
175
+ #define USIDR3 3
176
+ #define USIDR4 4
177
+ #define USIDR5 5
178
+ #define USIDR6 6
179
+ #define USIDR7 7
180
+
181
+ #define USIBR _SFR_IO8(0x10)
182
+ #define USIBR0 0
183
+ #define USIBR1 1
184
+ #define USIBR2 2
185
+ #define USIBR3 3
186
+ #define USIBR4 4
187
+ #define USIBR5 5
188
+ #define USIBR6 6
189
+ #define USIBR7 7
190
+
191
+ #define PCMSK0 _SFR_IO8(0x12)
192
+ #define PCINT0 0
193
+ #define PCINT1 1
194
+ #define PCINT2 2
195
+ #define PCINT3 3
196
+ #define PCINT4 4
197
+ #define PCINT5 5
198
+ #define PCINT6 6
199
+ #define PCINT7 7
200
+
201
+ #define GPIOR0 _SFR_IO8(0x13)
202
+ #define GPIOR00 0
203
+ #define GPIOR01 1
204
+ #define GPIOR02 2
205
+ #define GPIOR03 3
206
+ #define GPIOR04 4
207
+ #define GPIOR05 5
208
+ #define GPIOR06 6
209
+ #define GPIOR07 7
210
+
211
+ #define GPIOR1 _SFR_IO8(0x14)
212
+ #define GPIOR10 0
213
+ #define GPIOR11 1
214
+ #define GPIOR12 2
215
+ #define GPIOR13 3
216
+ #define GPIOR14 4
217
+ #define GPIOR15 5
218
+ #define GPIOR16 6
219
+ #define GPIOR17 7
220
+
221
+ #define GPIOR2 _SFR_IO8(0x15)
222
+ #define GPIOR20 0
223
+ #define GPIOR21 1
224
+ #define GPIOR22 2
225
+ #define GPIOR23 3
226
+ #define GPIOR24 4
227
+ #define GPIOR25 5
228
+ #define GPIOR26 6
229
+ #define GPIOR27 7
230
+
231
+ #define PINB _SFR_IO8(0x16)
232
+ #define PINB0 0
233
+ #define PINB1 1
234
+ #define PINB2 2
235
+ #define PINB3 3
236
+
237
+ #define DDRB _SFR_IO8(0x17)
238
+ #define DDB0 0
239
+ #define DDB1 1
240
+ #define DDB2 2
241
+ #define DDB3 3
242
+
243
+ #define PORTB _SFR_IO8(0x18)
244
+ #define PORTB0 0
245
+ #define PORTB1 1
246
+ #define PORTB2 2
247
+ #define PORTB3 3
248
+
249
+ #define PINA _SFR_IO8(0x19)
250
+ #define PINA0 0
251
+ #define PINA1 1
252
+ #define PINA2 2
253
+ #define PINA3 3
254
+ #define PINA4 4
255
+ #define PINA5 5
256
+ #define PINA6 6
257
+ #define PINA7 7
258
+
259
+ #define DDRA _SFR_IO8(0x1A)
260
+ #define DDA0 0
261
+ #define DDA1 1
262
+ #define DDA2 2
263
+ #define DDA3 3
264
+ #define DDA4 4
265
+ #define DDA5 5
266
+ #define DDA6 6
267
+ #define DDA7 7
268
+
269
+ #define PORTA _SFR_IO8(0x1B)
270
+ #define PORTA0 0
271
+ #define PORTA1 1
272
+ #define PORTA2 2
273
+ #define PORTA3 3
274
+ #define PORTA4 4
275
+ #define PORTA5 5
276
+ #define PORTA6 6
277
+ #define PORTA7 7
278
+
279
+ #define EECR _SFR_IO8(0x1C)
280
+ #define EERE 0
281
+ #define EEPE 1
282
+ #define EEMPE 2
283
+ #define EERIE 3
284
+ #define EEPM0 4
285
+ #define EEPM1 5
286
+
287
+ #define EEDR _SFR_IO8(0x1D)
288
+ #define EEDR0 0
289
+ #define EEDR1 1
290
+ #define EEDR2 2
291
+ #define EEDR3 3
292
+ #define EEDR4 4
293
+ #define EEDR5 5
294
+ #define EEDR6 6
295
+ #define EEDR7 7
296
+
297
+ #define EEAR _SFR_IO16(0x1E)
298
+
299
+ #define EEARL _SFR_IO8(0x1E)
300
+ #define EEAR0 0
301
+ #define EEAR1 1
302
+ #define EEAR2 2
303
+ #define EEAR3 3
304
+ #define EEAR4 4
305
+ #define EEAR5 5
306
+ #define EEAR6 6
307
+ #define EEAR7 7
308
+
309
+ #define EEARH _SFR_IO8(0x1F)
310
+ #define EEAR8 0
311
+
312
+ #define PCMSK1 _SFR_IO8(0x20)
313
+ #define PCINT8 0
314
+ #define PCINT9 1
315
+ #define PCINT10 2
316
+ #define PCINT11 3
317
+
318
+ #define WDTCSR _SFR_IO8(0x21)
319
+ #define WDP0 0
320
+ #define WDP1 1
321
+ #define WDP2 2
322
+ #define WDE 3
323
+ #define WDCE 4
324
+ #define WDP3 5
325
+ #define WDIE 6
326
+ #define WDIF 7
327
+
328
+ #define TCCR1C _SFR_IO8(0x22)
329
+ #define FOC1B 6
330
+ #define FOC1A 7
331
+
332
+ #define GTCCR _SFR_IO8(0x23)
333
+ #define PSR10 0
334
+ #define TSM 7
335
+
336
+ #define ICR1 _SFR_IO16(0x24)
337
+
338
+ #define ICR1L _SFR_IO8(0x24)
339
+ #define ICR1L0 0
340
+ #define ICR1L1 1
341
+ #define ICR1L2 2
342
+ #define ICR1L3 3
343
+ #define ICR1L4 4
344
+ #define ICR1L5 5
345
+ #define ICR1L6 6
346
+ #define ICR1L7 7
347
+
348
+ #define ICR1H _SFR_IO8(0x25)
349
+ #define ICR1H0 0
350
+ #define ICR1H1 1
351
+ #define ICR1H2 2
352
+ #define ICR1H3 3
353
+ #define ICR1H4 4
354
+ #define ICR1H5 5
355
+ #define ICR1H6 6
356
+ #define ICR1H7 7
357
+
358
+ #define CLKPR _SFR_IO8(0x26)
359
+ #define CLKPS0 0
360
+ #define CLKPS1 1
361
+ #define CLKPS2 2
362
+ #define CLKPS3 3
363
+ #define CLKPCE 7
364
+
365
+ #define DWDR _SFR_IO8(0x27)
366
+
367
+ #define OCR1B _SFR_IO16(0x28)
368
+
369
+ #define OCR1BL _SFR_IO8(0x28)
370
+ #define OCR1BL0 0
371
+ #define OCR1BL1 1
372
+ #define OCR1BL2 2
373
+ #define OCR1BL3 3
374
+ #define OCR1BL4 4
375
+ #define OCR1BL5 5
376
+ #define OCR1BL6 6
377
+ #define OCR1BL7 7
378
+
379
+ #define OCR1BH _SFR_IO8(0x29)
380
+ #define OCR1BH0 0
381
+ #define OCR1BH1 1
382
+ #define OCR1BH2 2
383
+ #define OCR1BH3 3
384
+ #define OCR1BH4 4
385
+ #define OCR1BH5 5
386
+ #define OCR1BH6 6
387
+ #define OCR1BH7 7
388
+
389
+ #define OCR1A _SFR_IO16(0x2A)
390
+
391
+ #define OCR1AL _SFR_IO8(0x2A)
392
+ #define OCR1AL0 0
393
+ #define OCR1AL1 1
394
+ #define OCR1AL2 2
395
+ #define OCR1AL3 3
396
+ #define OCR1AL4 4
397
+ #define OCR1AL5 5
398
+ #define OCR1AL6 6
399
+ #define OCR1AL7 7
400
+
401
+ #define OCR1AH _SFR_IO8(0x2B)
402
+ #define OCR1AH0 0
403
+ #define OCR1AH1 1
404
+ #define OCR1AH2 2
405
+ #define OCR1AH3 3
406
+ #define OCR1AH4 4
407
+ #define OCR1AH5 5
408
+ #define OCR1AH6 6
409
+ #define OCR1AH7 7
410
+
411
+ #define TCNT1 _SFR_IO16(0x2C)
412
+
413
+ #define TCNT1L _SFR_IO8(0x2C)
414
+ #define TCNT1L0 0
415
+ #define TCNT1L1 1
416
+ #define TCNT1L2 2
417
+ #define TCNT1L3 3
418
+ #define TCNT1L4 4
419
+ #define TCNT1L5 5
420
+ #define TCNT1L6 6
421
+ #define TCNT1L7 7
422
+
423
+ #define TCNT1H _SFR_IO8(0x2D)
424
+ #define TCNT1H0 0
425
+ #define TCNT1H1 1
426
+ #define TCNT1H2 2
427
+ #define TCNT1H3 3
428
+ #define TCNT1H4 4
429
+ #define TCNT1H5 5
430
+ #define TCNT1H6 6
431
+ #define TCNT1H7 7
432
+
433
+ #define TCCR1B _SFR_IO8(0x2E)
434
+ #define CS10 0
435
+ #define CS11 1
436
+ #define CS12 2
437
+ #define WGM12 3
438
+ #define WGM13 4
439
+ #define ICES1 6
440
+ #define ICNC1 7
441
+
442
+ #define TCCR1A _SFR_IO8(0x2F)
443
+ #define WGM10 0
444
+ #define WGM11 1
445
+ #define COM1B0 4
446
+ #define COM1B1 5
447
+ #define COM1A0 6
448
+ #define COM1A1 7
449
+
450
+ #define TCCR0A _SFR_IO8(0x30)
451
+ #define WGM00 0
452
+ #define WGM01 1
453
+ #define COM0B0 4
454
+ #define COM0B1 5
455
+ #define COM0A0 6
456
+ #define COM0A1 7
457
+
458
+ #define OSCCAL _SFR_IO8(0x31)
459
+ #define CAL0 0
460
+ #define CAL1 1
461
+ #define CAL2 2
462
+ #define CAL3 3
463
+ #define CAL4 4
464
+ #define CAL5 5
465
+ #define CAL6 6
466
+ #define CAL7 7
467
+
468
+ #define TCNT0 _SFR_IO8(0x32)
469
+ #define TCNT0_0 0
470
+ #define TCNT0_1 1
471
+ #define TCNT0_2 2
472
+ #define TCNT0_3 3
473
+ #define TCNT0_4 4
474
+ #define TCNT0_5 5
475
+ #define TCNT0_6 6
476
+ #define TCNT0_7 7
477
+
478
+ #define TCCR0B _SFR_IO8(0x33)
479
+ #define CS00 0
480
+ #define CS01 1
481
+ #define CS02 2
482
+ #define WGM02 3
483
+ #define FOC0B 6
484
+ #define FOC0A 7
485
+
486
+ #define MCUSR _SFR_IO8(0x34)
487
+ #define PORF 0
488
+ #define EXTRF 1
489
+ #define BORF 2
490
+ #define WDRF 3
491
+
492
+ #define MCUCR _SFR_IO8(0x35)
493
+ #define ISC00 0
494
+ #define ISC01 1
495
+ #define BODSE 2
496
+ #define SM0 3
497
+ #define SM1 4
498
+ #define SE 5
499
+ #define PUD 6
500
+ #define BODS 7
501
+
502
+ #define OCR0A _SFR_IO8(0x36)
503
+ #define OCR0A_0 0
504
+ #define OCR0A_1 1
505
+ #define OCR0A_2 2
506
+ #define OCR0A_3 3
507
+ #define OCR0A_4 4
508
+ #define OCR0A_5 5
509
+ #define OCR0A_6 6
510
+ #define OCR0A_7 7
511
+
512
+ #define SPMCSR _SFR_IO8(0x37)
513
+ #define SPMEN 0
514
+ #define PGERS 1
515
+ #define PGWRT 2
516
+ #define RFLB 3
517
+ #define CTPB 4
518
+
519
+ #define TIFR0 _SFR_IO8(0x38)
520
+ #define TOV0 0
521
+ #define OCF0A 1
522
+ #define OCF0B 2
523
+
524
+ #define TIMSK0 _SFR_IO8(0x39)
525
+ #define TOIE0 0
526
+ #define OCIE0A 1
527
+ #define OCIE0B 2
528
+
529
+ #define GIFR _SFR_IO8(0x3A)
530
+ #define PCIF0 4
531
+ #define PCIF1 5
532
+ #define INTF0 6
533
+
534
+ #define GIMSK _SFR_IO8(0x3B)
535
+ #define PCIE0 4
536
+ #define PCIE1 5
537
+ #define INT0 6
538
+
539
+ #define OCR0B _SFR_IO8(0x3C)
540
+ #define OCR0_0 0
541
+ #define OCR0_1 1
542
+ #define OCR0_2 2
543
+ #define OCR0_3 3
544
+ #define OCR0_4 4
545
+ #define OCR0_5 5
546
+ #define OCR0_6 6
547
+ #define OCR0_7 7
548
+
549
+
550
+ /* Interrupt vectors */
551
+ /* Vector 0 is the reset vector */
552
+ #define EXT_INT0_vect_num 1
553
+ #define EXT_INT0_vect _VECTOR(1) /* External Interrupt Request 0 */
554
+ #define PCINT0_vect_num 2
555
+ #define PCINT0_vect _VECTOR(2) /* Pin Change Interrupt Request 0 */
556
+ #define PCINT1_vect_num 3
557
+ #define PCINT1_vect _VECTOR(3) /* Pin Change Interrupt Request 1 */
558
+ #define WATCHDOG_vect_num 4
559
+ #define WATCHDOG_vect _VECTOR(4) /* Watchdog Time-out */
560
+ #define TIM1_CAPT_vect_num 5
561
+ #define TIM1_CAPT_vect _VECTOR(5) /* Timer/Counter1 Capture Event */
562
+ #define TIM1_COMPA_vect_num 6
563
+ #define TIM1_COMPA_vect _VECTOR(6) /* Timer/Counter1 Compare Match A */
564
+ #define TIM1_COMPB_vect_num 7
565
+ #define TIM1_COMPB_vect _VECTOR(7) /* Timer/Counter1 Compare Match B */
566
+ #define TIM1_OVF_vect_num 8
567
+ #define TIM1_OVF_vect _VECTOR(8) /* Timer/Counter1 Overflow */
568
+ #define TIM0_COMPA_vect_num 9
569
+ #define TIM0_COMPA_vect _VECTOR(9) /* Timer/Counter0 Compare Match A */
570
+ #define TIM0_COMPB_vect_num 10
571
+ #define TIM0_COMPB_vect _VECTOR(10) /* Timer/Counter0 Compare Match B */
572
+ #define TIM0_OVF_vect_num 11
573
+ #define TIM0_OVF_vect _VECTOR(11) /* Timer/Counter0 Overflow */
574
+ #define ANA_COMP_vect_num 12
575
+ #define ANA_COMP_vect _VECTOR(12) /* Analog Comparator */
576
+ #define ADC_vect_num 13
577
+ #define ADC_vect _VECTOR(13) /* ADC Conversion Complete */
578
+ #define EE_RDY_vect_num 14
579
+ #define EE_RDY_vect _VECTOR(14) /* EEPROM Ready */
580
+ #define USI_STR_vect_num 15
581
+ #define USI_STR_vect _VECTOR(15) /* USI START */
582
+ #define USI_OVF_vect_num 16
583
+ #define USI_OVF_vect _VECTOR(16) /* USI Overflow */
584
+
585
+ #define _VECTOR_SIZE 2 /* Size of individual vector. */
586
+ #define _VECTORS_SIZE (17 * _VECTOR_SIZE)
587
+
588
+
589
+ /* Constants */
590
+ #define SPM_PAGESIZE (64)
591
+ #define RAMSTART (0x60)
592
+ #define RAMSIZE (256)
593
+ #define RAMEND (RAMSTART + RAMSIZE - 1)
594
+ #define XRAMSTART (NA)
595
+ #define XRAMSIZE (0)
596
+ #define XRAMEND (RAMEND)
597
+ #define E2END (0xFF)
598
+ #define E2PAGESIZE (4)
599
+ #define FLASHEND (0xFFF)
600
+
601
+
602
+ /* Fuses */
603
+ #define FUSE_MEMORY_SIZE 3
604
+
605
+ /* Low Fuse Byte */
606
+ #define FUSE_CKSEL0 (unsigned char)~_BV(0) /* Select Clock source */
607
+ #define FUSE_CKSEL1 (unsigned char)~_BV(1) /* Select Clock source */
608
+ #define FUSE_CKSEL2 (unsigned char)~_BV(2) /* Select Clock source */
609
+ #define FUSE_CKSEL3 (unsigned char)~_BV(3) /* Select Clock source */
610
+ #define FUSE_SUT0 (unsigned char)~_BV(4) /* Select start-up time */
611
+ #define FUSE_SUT1 (unsigned char)~_BV(5) /* Select start-up time */
612
+ #define FUSE_CKOUT (unsigned char)~_BV(6) /* Clock Output Enable */
613
+ #define FUSE_CKDIV8 (unsigned char)~_BV(7) /* Divide clock by 8 */
614
+ #define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
615
+
616
+ /* High Fuse Byte */
617
+ #define FUSE_BODLEVEL0 (unsigned char)~_BV(0) /* Brown-out Detector trigger level */
618
+ #define FUSE_BODLEVEL1 (unsigned char)~_BV(1) /* Brown-out Detector trigger level */
619
+ #define FUSE_BODLEVEL2 (unsigned char)~_BV(2) /* Brown-out Detector trigger level */
620
+ #define FUSE_EESAVE (unsigned char)~_BV(3) /* EEPROM memory is preserved through the Chip Erase */
621
+ #define FUSE_WDTON (unsigned char)~_BV(4) /* Watchdog Timer always on */
622
+ #define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial Program and Data Downloading */
623
+ #define FUSE_DWEN (unsigned char)~_BV(6) /* DebugWIRE Enable */
624
+ #define FUSE_RSTDISBL (unsigned char)~_BV(7) /* External Reset disable */
625
+ #define HFUSE_DEFAULT (FUSE_SPIEN)
626
+
627
+ /* Extended Fuse Byte */
628
+ #define FUSE_SELFPRGEN (unsigned char)~_BV(0) /* Self-Programming Enable */
629
+ #define EFUSE_DEFAULT (0xFF)
630
+
631
+
632
+ /* Lock Bits */
633
+ #define __LOCK_BITS_EXIST
634
+
635
+
636
+ /* Signature */
637
+ #define SIGNATURE_0 0x1E
638
+ #define SIGNATURE_1 0x92
639
+ #define SIGNATURE_2 0x07
640
+
641
+
642
+ /* Device Pin Definitions */
643
+ #define ADC4_DDR DDRA
644
+ #define ADC4_PORT PORTA
645
+ #define ADC4_PIN PINA
646
+ #define ADC4_BIT 4
647
+
648
+ #define USCK_DDR DDRA
649
+ #define USCK_PORT PORTA
650
+ #define USCK_PIN PINA
651
+ #define USCK_BIT 4
652
+
653
+ #define SCL_DDR DDRA
654
+ #define SCL_PORT PORTA
655
+ #define SCL_PIN PINA
656
+ #define SCL_BIT 4
657
+
658
+ #define T1_DDR DDRA
659
+ #define T1_PORT PORTA
660
+ #define T1_PIN PINA
661
+ #define T1_BIT 4
662
+
663
+ #define PCINT4_DDR DDRA
664
+ #define PCINT4_PORT PORTA
665
+ #define PCINT4_PIN PINA
666
+ #define PCINT4_BIT 4
667
+
668
+ #define ADC3_DDR DDRA
669
+ #define ADC3_PORT PORTA
670
+ #define ADC3_PIN PINA
671
+ #define ADC3_BIT 3
672
+
673
+ #define T0_DDR DDRA
674
+ #define T0_PORT PORTA
675
+ #define T0_PIN PINA
676
+ #define T0_BIT 3
677
+
678
+ #define PCINT3_DDR DDRA
679
+ #define PCINT3_PORT PORTA
680
+ #define PCINT3_PIN PINA
681
+ #define PCINT3_BIT 3
682
+
683
+ #define ADC2_DDR DDRA
684
+ #define ADC2_PORT PORTA
685
+ #define ADC2_PIN PINA
686
+ #define ADC2_BIT 2
687
+
688
+ #define AIN1_DDR DDRA
689
+ #define AIN1_PORT PORTA
690
+ #define AIN1_PIN PINA
691
+ #define AIN1_BIT 2
692
+
693
+ #define PCINT2_DDR DDRA
694
+ #define PCINT2_PORT PORTA
695
+ #define PCINT2_PIN PINA
696
+ #define PCINT2_BIT 2
697
+
698
+ #define ADC1_DDR DDRA
699
+ #define ADC1_PORT PORTA
700
+ #define ADC1_PIN PINA
701
+ #define ADC1_BIT 1
702
+
703
+ #define AIN0_DDR DDRA
704
+ #define AIN0_PORT PORTA
705
+ #define AIN0_PIN PINA
706
+ #define AIN0_BIT 1
707
+
708
+ #define PCINT1_DDR DDRA
709
+ #define PCINT1_PORT PORTA
710
+ #define PCINT1_PIN PINA
711
+ #define PCINT1_BIT 1
712
+
713
+ #define ADC0_DDR DDRA
714
+ #define ADC0_PORT PORTA
715
+ #define ADC0_PIN PINA
716
+ #define ADC0_BIT 0
717
+
718
+ #define PCINT0_DDR DDRA
719
+ #define PCINT0_PORT PORTA
720
+ #define PCINT0_PIN PINA
721
+ #define PCINT0_BIT 0
722
+
723
+ #define PCINT8_DDR DDRB
724
+ #define PCINT8_PORT PORTB
725
+ #define PCINT8_PIN PINB
726
+ #define PCINT8_BIT 0
727
+
728
+ #define PCINT9_DDR DDRB
729
+ #define PCINT9_PORT PORTB
730
+ #define PCINT9_PIN PINB
731
+ #define PCINT9_BIT 1
732
+
733
+ #define PCINT11_DDR DDRB
734
+ #define PCINT11_PORT PORTB
735
+ #define PCINT11_PIN PINB
736
+ #define PCINT11_BIT 3
737
+
738
+ #define dW_DDR DDRB
739
+ #define dW_PORT PORTB
740
+ #define dW_PIN PINB
741
+ #define dW_BIT 3
742
+
743
+ #define PCINT10_DDR DDRB
744
+ #define PCINT10_PORT PORTB
745
+ #define PCINT10_PIN PINB
746
+ #define PCINT10_BIT 2
747
+
748
+ #define INT0_DDR DDRB
749
+ #define INT0_PORT PORTB
750
+ #define INT0_PIN PINB
751
+ #define INT0_BIT 2
752
+
753
+ #define OC0A_DDR DDRB
754
+ #define OC0A_PORT PORTB
755
+ #define OC0A_PIN PINB
756
+ #define OC0A_BIT 2
757
+
758
+ #define CKOUT_DDR DDRB
759
+ #define CKOUT_PORT PORTB
760
+ #define CKOUT_PIN PINB
761
+ #define CKOUT_BIT 2
762
+
763
+ #define PCINT7_DDR DDRA
764
+ #define PCINT7_PORT PORTA
765
+ #define PCINT7_PIN PINA
766
+ #define PCINT7_BIT 7
767
+
768
+ #define ICP1_DDR DDRA
769
+ #define ICP1_PORT PORTA
770
+ #define ICP1_PIN PINA
771
+ #define ICP1_BIT 7
772
+
773
+ #define OC0B_DDR DDRA
774
+ #define OC0B_PORT PORTA
775
+ #define OC0B_PIN PINA
776
+ #define OC0B_BIT 7
777
+
778
+ #define ADC7_DDR DDRA
779
+ #define ADC7_PORT PORTA
780
+ #define ADC7_PIN PINA
781
+ #define ADC7_BIT 7
782
+
783
+ #define PCINT6_DDR DDRA
784
+ #define PCINT6_PORT PORTA
785
+ #define PCINT6_PIN PINA
786
+ #define PCINT6_BIT 6
787
+
788
+ #define OC1A_DDR DDRA
789
+ #define OC1A_PORT PORTA
790
+ #define OC1A_PIN PINA
791
+ #define OC1A_BIT 6
792
+
793
+ #define DI_DDR DDRA
794
+ #define DI_PORT PORTA
795
+ #define DI_PIN PINA
796
+ #define DI_BIT 6
797
+
798
+ #define SDA_DDR DDRA
799
+ #define SDA_PORT PORTA
800
+ #define SDA_PIN PINA
801
+ #define SDA_BIT 6
802
+
803
+ #define MOSI_DDR DDRA
804
+ #define MOSI_PORT PORTA
805
+ #define MOSI_PIN PINA
806
+ #define MOSI_BIT 6
807
+
808
+ #define ADC6_DDR DDRA
809
+ #define ADC6_PORT PORTA
810
+ #define ADC6_PIN PINA
811
+ #define ADC6_BIT 6
812
+
813
+ #define ADC5_DDR DDRA
814
+ #define ADC5_PORT PORTA
815
+ #define ADC5_PIN PINA
816
+ #define ADC5_BIT 5
817
+
818
+ #define DO_DDR DDRA
819
+ #define DO_PORT PORTA
820
+ #define DO_PIN PINA
821
+ #define DO_BIT 5
822
+
823
+ #define MISO_DDR DDRA
824
+ #define MISO_PORT PORTA
825
+ #define MISO_PIN PINA
826
+ #define MISO_BIT 5
827
+
828
+ #define OC1B_DDR DDRA
829
+ #define OC1B_PORT PORTA
830
+ #define OC1B_PIN PINA
831
+ #define OC1B_BIT 5
832
+
833
+ #define PCINT5_DDR DDRA
834
+ #define PCINT5_PORT PORTA
835
+ #define PCINT5_PIN PINA
836
+ #define PCINT5_BIT 5
837
+
838
+ #define SLEEP_MODE_IDLE (0x00<<3)
839
+ #define SLEEP_MODE_ADC (0x01<<3)
840
+ #define SLEEP_MODE_PWR_DOWN (0x02<<3)
841
+ #define SLEEP_MODE_STANDBY (0x03<<3)
842
+
843
+ #endif /* _AVR_ATtiny44A_H_ */
844
+