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,812 @@
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: iotn2313a.h 2412 2014-03-20 11:21:20Z pitchumani $ */
32
+
33
+ /* avr/iotn2313a.h - definitions for ATtiny2313A */
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_ "iotn2313a.h"
43
+ #else
44
+ # error "Attempt to include more than one <avr/ioXXX.h> file."
45
+ #endif
46
+
47
+
48
+ #ifndef _AVR_ATtiny2313A_H_
49
+ #define _AVR_ATtiny2313A_H_ 1
50
+
51
+
52
+ /* Registers and associated bit numbers. */
53
+
54
+ #define USIBR _SFR_IO8(0x000)
55
+ #define USIBR0 0
56
+ #define USIBR1 1
57
+ #define USIBR2 2
58
+ #define USIBR3 3
59
+ #define USIBR4 4
60
+ #define USIBR5 5
61
+ #define USIBR6 6
62
+ #define USIBR7 7
63
+
64
+ #define DIDR _SFR_IO8(0x001)
65
+ #define AIN0D 0
66
+ #define AIN1D 1
67
+
68
+ #define UBRRH _SFR_IO8(0x002)
69
+ #define UBRR8 0
70
+ #define UBRR9 1
71
+ #define UBRR10 2
72
+ #define UBRR11 3
73
+
74
+ #define UCSRC _SFR_IO8(0x003)
75
+ #define UCPOL 0
76
+ #define UCSZ0 1
77
+ #define UCSZ1 2
78
+ #define USBS 3
79
+ #define UPM0 4
80
+ #define UPM1 5
81
+ #define UMSEL0 6
82
+ #define UMSEL1 7
83
+
84
+ /* When in MSPIM mode */
85
+ #define UCPHA 1
86
+ #define UDORD 2
87
+
88
+ #define PCMSK1 _SFR_IO8(0x004)
89
+ #define PCINT8 0
90
+ #define PCINT9 1
91
+ #define PCINT10 2
92
+
93
+ #define PCMSK2 _SFR_IO8(0x005)
94
+ #define PCINT11 0
95
+ #define PCINT12 1
96
+ #define PCINT13 2
97
+ #define PCINT14 3
98
+ #define PCINT15 4
99
+ #define PCINT16 5
100
+ #define PCINT17 6
101
+
102
+ #define PRR _SFR_IO8(0x006)
103
+ #define PRUSART 0
104
+ #define PRUSI 1
105
+ #define PRTIM0 2
106
+ #define PRTIM1 3
107
+
108
+ #define __AVR_HAVE_PRR ((1<<PRUSART)|(1<<PRUSI)|(1<<PRTIM0)|(1<<PRTIM1))
109
+ #define __AVR_HAVE_PRR_PRUSART
110
+ #define __AVR_HAVE_PRR_PRUSI
111
+ #define __AVR_HAVE_PRR_PRTIM0
112
+ #define __AVR_HAVE_PRR_PRTIM1
113
+
114
+ #define BODCR _SFR_IO8(0x007)
115
+ #define BPDSE 0
116
+ #define BPDS 1
117
+
118
+ #define ACSR _SFR_IO8(0x008)
119
+ #define ACIS0 0
120
+ #define ACIS1 1
121
+ #define ACIC 2
122
+ #define ACIE 3
123
+ #define ACI 4
124
+ #define ACO 5
125
+ #define ACBG 6
126
+ #define ACD 7
127
+
128
+ #define UBRRL _SFR_IO8(0x009)
129
+ #define UBRR0 0
130
+ #define UBRR1 1
131
+ #define UBRR2 2
132
+ #define UBRR3 3
133
+ #define UBRR4 4
134
+ #define UBRR5 5
135
+ #define UBRR6 6
136
+ #define UBRR7 7
137
+
138
+ #define UCSRB _SFR_IO8(0x00A)
139
+ #define TXB8 0
140
+ #define RXB8 1
141
+ #define UCSZ2 2
142
+ #define TXEN 3
143
+ #define RXEN 4
144
+ #define UDRIE 5
145
+ #define TXCIE 6
146
+ #define RXCIE 7
147
+
148
+ #define UCSRA _SFR_IO8(0x00B)
149
+ #define MPCM 0
150
+ #define U2X 1
151
+ #define UPE 2
152
+ #define DOR 3
153
+ #define FE 4
154
+ #define UDRE 5
155
+ #define TXC 6
156
+ #define RXC 7
157
+
158
+ #define UDR _SFR_IO8(0x00C)
159
+ #define UDR0 0
160
+ #define UDR1 1
161
+ #define UDR2 2
162
+ #define UDR3 3
163
+ #define UDR4 4
164
+ #define UDR5 5
165
+ #define UDR6 6
166
+ #define UDR7 7
167
+
168
+ #define USICR _SFR_IO8(0x00D)
169
+ #define USITC 0
170
+ #define USICLK 1
171
+ #define USICS0 2
172
+ #define USICS1 3
173
+ #define USIWM0 4
174
+ #define USIWM1 5
175
+ #define USIOIE 6
176
+ #define USISIE 7
177
+
178
+ #define USISR _SFR_IO8(0x00E)
179
+ #define USICNT0 0
180
+ #define USICNT1 1
181
+ #define USICNT2 2
182
+ #define USICNT3 3
183
+ #define USIDC 4
184
+ #define USIPF 5
185
+ #define USIOIF 6
186
+ #define USISIF 7
187
+
188
+ #define USIDR _SFR_IO8(0x00F)
189
+ #define USIDR0 0
190
+ #define USIDR1 1
191
+ #define USIDR2 2
192
+ #define USIDR3 3
193
+ #define USIDR4 4
194
+ #define USIDR5 5
195
+ #define USIDR6 6
196
+ #define USIDR7 7
197
+
198
+ #define PIND _SFR_IO8(0x010)
199
+ #define PIND0 0
200
+ #define PIND1 1
201
+ #define PIND2 2
202
+ #define PIND3 3
203
+ #define PIND4 4
204
+ #define PIND5 5
205
+ #define PIND6 6
206
+
207
+ #define DDRD _SFR_IO8(0x011)
208
+ #define DDD0 0
209
+ #define DDD1 1
210
+ #define DDD2 2
211
+ #define DDD3 3
212
+ #define DDD4 4
213
+ #define DDD5 5
214
+ #define DDD6 6
215
+
216
+ #define PORTD _SFR_IO8(0x012)
217
+ #define PORTD0 0
218
+ #define PORTD1 1
219
+ #define PORTD2 2
220
+ #define PORTD3 3
221
+ #define PORTD4 4
222
+ #define PORTD5 5
223
+ #define PORTD6 6
224
+
225
+ #define GPIOR0 _SFR_IO8(0x013)
226
+ #define GPIOR00 0
227
+ #define GPIOR01 1
228
+ #define GPIOR02 2
229
+ #define GPIOR03 3
230
+ #define GPIOR04 4
231
+ #define GPIOR05 5
232
+ #define GPIOR06 6
233
+ #define GPIOR07 7
234
+
235
+ #define GPIOR1 _SFR_IO8(0x014)
236
+ #define GPIOR10 0
237
+ #define GPIOR11 1
238
+ #define GPIOR12 2
239
+ #define GPIOR13 3
240
+ #define GPIOR14 4
241
+ #define GPIOR15 5
242
+ #define GPIOR16 6
243
+ #define GPIOR17 7
244
+
245
+ #define GPIOR2 _SFR_IO8(0x015)
246
+ #define GPIOR20 0
247
+ #define GPIOR21 1
248
+ #define GPIOR22 2
249
+ #define GPIOR23 3
250
+ #define GPIOR24 4
251
+ #define GPIOR25 5
252
+ #define GPIOR26 6
253
+ #define GPIOR27 7
254
+
255
+ #define PINB _SFR_IO8(0x016)
256
+ #define PINB0 0
257
+ #define PINB1 1
258
+ #define PINB2 2
259
+ #define PINB3 3
260
+ #define PINB4 4
261
+ #define PINB5 5
262
+ #define PINB6 6
263
+ #define PINB7 7
264
+
265
+ #define DDRB _SFR_IO8(0x017)
266
+ #define DDB0 0
267
+ #define DDB1 1
268
+ #define DDB2 2
269
+ #define DDB3 3
270
+ #define DDB4 4
271
+ #define DDB5 5
272
+ #define DDB6 6
273
+ #define DDB7 7
274
+
275
+ #define PORTB _SFR_IO8(0x018)
276
+ #define PORTB0 0
277
+ #define PORTB1 1
278
+ #define PORTB2 2
279
+ #define PORTB3 3
280
+ #define PORTB4 4
281
+ #define PORTB5 5
282
+ #define PORTB6 6
283
+ #define PORTB7 7
284
+
285
+ #define PINA _SFR_IO8(0x019)
286
+ #define PINA0 0
287
+ #define PINA1 1
288
+ #define PINA2 2
289
+
290
+ #define DDRA _SFR_IO8(0x01A)
291
+ #define DDA0 0
292
+ #define DDA1 1
293
+ #define DDA2 2
294
+
295
+ #define PORTA _SFR_IO8(0x01B)
296
+ #define PORTA0 0
297
+ #define PORTA1 1
298
+ #define PORTA2 2
299
+
300
+ #define EECR _SFR_IO8(0x01C)
301
+ #define EERE 0
302
+ #define EEPE 1
303
+ #define EEMPE 2
304
+ #define EERIE 3
305
+ #define EEPM0 4
306
+ #define EEPM1 5
307
+
308
+ #define EEDR _SFR_IO8(0x01D)
309
+ #define EEDR0 0
310
+ #define EEDR1 1
311
+ #define EEDR2 2
312
+ #define EEDR3 3
313
+ #define EEDR4 4
314
+ #define EEDR5 5
315
+ #define EEDR6 6
316
+ #define EEDR7 7
317
+
318
+ #define EEAR _SFR_IO8(0x01E)
319
+ #define EEAR0 0
320
+ #define EEAR1 1
321
+ #define EEAR2 2
322
+ #define EEAR3 3
323
+ #define EEAR4 4
324
+ #define EEAR5 5
325
+ #define EEAR6 6
326
+
327
+ #define PCMSK _SFR_IO8(0x020)
328
+ #define PCMSK0 _SFR_IO8(0x020)
329
+ #define PCINT0 0
330
+ #define PCINT1 1
331
+ #define PCINT2 2
332
+ #define PCINT3 3
333
+ #define PCINT4 4
334
+ #define PCINT5 5
335
+ #define PCINT6 6
336
+ #define PCINT7 7
337
+
338
+ #define WDTCR _SFR_IO8(0x021)
339
+ #define WDP0 0
340
+ #define WDP1 1
341
+ #define WDP2 2
342
+ #define WDE 3
343
+ #define WDCE 4
344
+ #define WDP3 5
345
+ #define WDIE 6
346
+ #define WDIF 7
347
+
348
+ #define TCCR1C _SFR_IO8(0x022)
349
+ #define FOC1B 6
350
+ #define FOC1A 7
351
+
352
+ #define GTCCR _SFR_IO8(0x023)
353
+ #define PSR10 0
354
+
355
+ #define ICR1 _SFR_IO16(0x024)
356
+
357
+ #define ICR1L _SFR_IO8(0x024)
358
+ #define ICR1L0 0
359
+ #define ICR1L1 1
360
+ #define ICR1L2 2
361
+ #define ICR1L3 3
362
+ #define ICR1L4 4
363
+ #define ICR1L5 5
364
+ #define ICR1L6 6
365
+ #define ICR1L7 7
366
+
367
+ #define ICR1H _SFR_IO8(0x025)
368
+ #define ICR1H0 0
369
+ #define ICR1H1 1
370
+ #define ICR1H2 2
371
+ #define ICR1H3 3
372
+ #define ICR1H4 4
373
+ #define ICR1H5 5
374
+ #define ICR1H6 6
375
+ #define ICR1H7 7
376
+
377
+ #define CLKPR _SFR_IO8(0x026)
378
+ #define CLKPS0 0
379
+ #define CLKPS1 1
380
+ #define CLKPS2 2
381
+ #define CLKPS3 3
382
+ #define CLKPCE 7
383
+
384
+ #define OCR1B _SFR_IO16(0x028)
385
+
386
+ #define OCR1BL _SFR_IO8(0x028)
387
+ #define OCR1BL0 0
388
+ #define OCR1BL1 1
389
+ #define OCR1BL2 2
390
+ #define OCR1BL3 3
391
+ #define OCR1BL4 4
392
+ #define OCR1BL5 5
393
+ #define OCR1BL6 6
394
+ #define OCR1BL7 7
395
+
396
+ #define OCR1BH _SFR_IO8(0x029)
397
+ #define OCR1BH0 0
398
+ #define OCR1BH1 1
399
+ #define OCR1BH2 2
400
+ #define OCR1BH3 3
401
+ #define OCR1BH4 4
402
+ #define OCR1BH5 5
403
+ #define OCR1BH6 6
404
+ #define OCR1BH7 7
405
+
406
+ #define OCR1A _SFR_IO16(0x02A)
407
+
408
+ #define OCR1AL _SFR_IO8(0x02A)
409
+ #define OCR1AL0 0
410
+ #define OCR1AL1 1
411
+ #define OCR1AL2 2
412
+ #define OCR1AL3 3
413
+ #define OCR1AL4 4
414
+ #define OCR1AL5 5
415
+ #define OCR1AL6 6
416
+ #define OCR1AL7 7
417
+
418
+ #define OCR1AH _SFR_IO8(0x02B)
419
+ #define OCR1AH0 0
420
+ #define OCR1AH1 1
421
+ #define OCR1AH2 2
422
+ #define OCR1AH3 3
423
+ #define OCR1AH4 4
424
+ #define OCR1AH5 5
425
+ #define OCR1AH6 6
426
+ #define OCR1AH7 7
427
+
428
+ #define TCNT1 _SFR_IO16(0x02C)
429
+
430
+ #define TCNT1L _SFR_IO8(0x02C)
431
+ #define TCNT1L0 0
432
+ #define TCNT1L1 1
433
+ #define TCNT1L2 2
434
+ #define TCNT1L3 3
435
+ #define TCNT1L4 4
436
+ #define TCNT1L5 5
437
+ #define TCNT1L6 6
438
+ #define TCNT1L7 7
439
+
440
+ #define TCNT1H _SFR_IO8(0x02D)
441
+ #define TCNT1H0 0
442
+ #define TCNT1H1 1
443
+ #define TCNT1H2 2
444
+ #define TCNT1H3 3
445
+ #define TCNT1H4 4
446
+ #define TCNT1H5 5
447
+ #define TCNT1H6 6
448
+ #define TCNT1H7 7
449
+
450
+ #define TCCR1B _SFR_IO8(0x02E)
451
+ #define CS10 0
452
+ #define CS11 1
453
+ #define CS12 2
454
+ #define WGM12 3
455
+ #define WGM13 4
456
+ #define ICES1 6
457
+ #define ICNC1 7
458
+
459
+ #define TCCR1A _SFR_IO8(0x02F)
460
+ #define WGM10 0
461
+ #define WGM11 1
462
+ #define COM1B0 4
463
+ #define COM1B1 5
464
+ #define COM1A0 6
465
+ #define COM1A1 7
466
+
467
+ #define TCCR0A _SFR_IO8(0x030)
468
+ #define WGM00 0
469
+ #define WGM01 1
470
+ #define COM0B0 4
471
+ #define COM0B1 5
472
+ #define COM0A0 6
473
+ #define COM0A1 7
474
+
475
+ #define OSCCAL _SFR_IO8(0x031)
476
+ #define CAL0 0
477
+ #define CAL1 1
478
+ #define CAL2 2
479
+ #define CAL3 3
480
+ #define CAL4 4
481
+ #define CAL5 5
482
+ #define CAL6 6
483
+
484
+ #define TCNT0 _SFR_IO8(0x032)
485
+ #define TCNT0_0 0
486
+ #define TCNT0_1 1
487
+ #define TCNT0_2 2
488
+ #define TCNT0_3 3
489
+ #define TCNT0_4 4
490
+ #define TCNT0_5 5
491
+ #define TCNT0_6 6
492
+ #define TCNT0_7 7
493
+
494
+ #define TCCR0B _SFR_IO8(0x033)
495
+ #define CS00 0
496
+ #define CS01 1
497
+ #define CS02 2
498
+ #define WGM02 3
499
+ #define FOC0B 6
500
+ #define FOC0A 7
501
+
502
+ #define MCUSR _SFR_IO8(0x034)
503
+ #define PORF 0
504
+ #define EXTRF 1
505
+ #define BORF 2
506
+ #define WDRF 3
507
+
508
+ #define MCUCR _SFR_IO8(0x035)
509
+ #define ISC00 0
510
+ #define ISC01 1
511
+ #define ISC10 2
512
+ #define ISC11 3
513
+ #define SM0 4
514
+ #define SE 5
515
+ #define SM1 6
516
+ #define PUD 7
517
+
518
+ #define OCR0A _SFR_IO8(0x036)
519
+ #define OCR0A_0 0
520
+ #define OCR0A_1 1
521
+ #define OCR0A_2 2
522
+ #define OCR0A_3 3
523
+ #define OCR0A_4 4
524
+ #define OCR0A_5 5
525
+ #define OCR0A_6 6
526
+ #define OCR0A_7 7
527
+
528
+ #define SPMCSR _SFR_IO8(0x037)
529
+ #define SPMEN 0
530
+ #define PGERS 1
531
+ #define PGWRT 2
532
+ #define RFLB 3
533
+ #define CTPB 4
534
+
535
+ #define TIFR _SFR_IO8(0x038)
536
+ #define OCF0A 0
537
+ #define TOV0 1
538
+ #define OCF0B 2
539
+ #define ICF1 3
540
+ #define OCF1B 5
541
+ #define OCF1A 6
542
+ #define TOV1 7
543
+
544
+ #define TIMSK _SFR_IO8(0x039)
545
+ #define OCIE0A 0
546
+ #define TOIE0 1
547
+ #define OCIE0B 2
548
+ #define ICIE1 3
549
+ #define OCIE1B 5
550
+ #define OCIE1A 6
551
+ #define TOIE1 7
552
+
553
+ #define EIFR _SFR_IO8(0x03A)
554
+ #define GIFR _SFR_IO8(0x03A)
555
+ #define PCIF1 3
556
+ #define PCIF2 4
557
+ #define PCIF0 5
558
+ #define INTF0 6
559
+ #define INTF1 7
560
+
561
+ #define GIMSK _SFR_IO8(0x03B)
562
+ #define PCIE1 3
563
+ #define PCIE2 4
564
+ #define PCIE0 5
565
+ #define INT0 6
566
+ #define INT1 7
567
+
568
+ #define OCR0B _SFR_IO8(0x03C)
569
+ #define OCR0_0 0
570
+ #define OCR0_1 1
571
+ #define OCR0_2 2
572
+ #define OCR0_3 3
573
+ #define OCR0_4 4
574
+ #define OCR0_5 5
575
+ #define OCR0_6 6
576
+ #define OCR0_7 7
577
+
578
+
579
+ /* Interrupt vectors */
580
+ /* Vector 0 is the reset vector */
581
+ #define INT0_vect_num 1
582
+ #define INT0_vect _VECTOR(1) /* External Interrupt Request 0 */
583
+ #define INT1_vect_num 2
584
+ #define INT1_vect _VECTOR(2) /* External Interrupt Request 1 */
585
+ #define TIMER1_CAPT_vect_num 3
586
+ #define TIMER1_CAPT_vect _VECTOR(3) /* Timer/Counter1 Capture Event */
587
+ #define TIMER1_COMPA_vect_num 4
588
+ #define TIMER1_COMPA_vect _VECTOR(4) /* Timer/Counter1 Compare Match A */
589
+ #define TIMER1_OVF_vect_num 5
590
+ #define TIMER1_OVF_vect _VECTOR(5) /* Timer/Counter1 Overflow */
591
+ #define TIMER0_OVF_vect_num 6
592
+ #define TIMER0_OVF_vect _VECTOR(6) /* Timer/Counter0 Overflow */
593
+ #define USART0_RX_vect_num 7
594
+ #define USART0_RX_vect _VECTOR(7) /* USART, Rx Complete */
595
+ #define USART_RX_vect_num 7
596
+ #define USART_RX_vect _VECTOR(7) /* alias */
597
+ #define USART0_UDRE_vect_num 8
598
+ #define USART0_UDRE_vect _VECTOR(8) /* USART Data Register Empty */
599
+ #define USART_UDRE_vect_num 8
600
+ #define USART_UDRE_vect _VECTOR(8) /* alias */
601
+ #define USART0_TX_vect_num 9
602
+ #define USART0_TX_vect _VECTOR(9) /* USART, Tx Complete */
603
+ #define USART_TX_vect_num 9
604
+ #define USART_TX_vect _VECTOR(9) /* alias */
605
+ #define ANA_COMP_vect_num 10
606
+ #define ANA_COMP_vect _VECTOR(10) /* Analog Comparator */
607
+ #define PCINT0_vect_num 11
608
+ #define PCINT0_vect _VECTOR(11) /* Pin Change Interrupt Request 0 */
609
+ #define PCINT_B_vect_num 11
610
+ #define PCINT_B_vect _VECTOR(11) /* alias */
611
+ #define TIMER1_COMPB_vect_num 12
612
+ #define TIMER1_COMPB_vect _VECTOR(12) /* */
613
+ #define TIMER0_COMPA_vect_num 13
614
+ #define TIMER0_COMPA_vect _VECTOR(13) /* */
615
+ #define TIMER0_COMPB_vect_num 14
616
+ #define TIMER0_COMPB_vect _VECTOR(14) /* */
617
+ #define USI_START_vect_num 15
618
+ #define USI_START_vect _VECTOR(15) /* USI Start Condition */
619
+ #define USI_OVERFLOW_vect_num 16
620
+ #define USI_OVERFLOW_vect _VECTOR(16) /* USI Overflow */
621
+ #define EEPROM_Ready_vect_num 17
622
+ #define EEPROM_Ready_vect _VECTOR(17) /* EEPROM Ready */
623
+ #define WDT_OVERFLOW_vect_num 18
624
+ #define WDT_OVERFLOW_vect _VECTOR(18) /* Watchdog Timer Overflow */
625
+ #define PCINT1_vect_num 19
626
+ #define PCINT1_vect _VECTOR(19) /* Pin Change Interrupt Request 1 */
627
+ #define PCINT_A_vect_num 19
628
+ #define PCINT_A_vect _VECTOR(19) /* alias */
629
+ #define PCINT2_vect_num 20
630
+ #define PCINT2_vect _VECTOR(20) /* Pin Change Interrupt Request 2 */
631
+ #define PCINT_D_vect_num 20
632
+ #define PCINT_D_vect _VECTOR(20) /* alias */
633
+
634
+ #define _VECTOR_SIZE 2 /* Size of individual vector. */
635
+ #define _VECTORS_SIZE (21 * _VECTOR_SIZE)
636
+
637
+
638
+ /* Constants */
639
+ #define SPM_PAGESIZE (32)
640
+ #define RAMSTART (0x60)
641
+ #define RAMSIZE (128)
642
+ #define RAMEND (RAMSTART + RAMSIZE - 1)
643
+ #define XRAMSTART (NA)
644
+ #define XRAMSIZE (0)
645
+ #define XRAMEND (RAMEND)
646
+ #define E2END (0x7F)
647
+ #define E2PAGESIZE (4)
648
+ #define FLASHEND (0x7FF)
649
+
650
+
651
+ /* Fuses */
652
+ #define FUSE_MEMORY_SIZE 3
653
+
654
+ /* Low Fuse Byte */
655
+ #define FUSE_CKSEL0 (unsigned char)~_BV(0) /* Select Clock Source */
656
+ #define FUSE_CKSEL1 (unsigned char)~_BV(1) /* Select Clock Source */
657
+ #define FUSE_CKSEL2 (unsigned char)~_BV(2) /* Select Clock Source */
658
+ #define FUSE_CKSEL3 (unsigned char)~_BV(3) /* Select Clock Source */
659
+ #define FUSE_SUT0 (unsigned char)~_BV(4) /* Select start-up time */
660
+ #define FUSE_SUT1 (unsigned char)~_BV(5) /* Select start-up time */
661
+ #define FUSE_CKOUT (unsigned char)~_BV(6) /* Clock output */
662
+ #define FUSE_CKDIV8 (unsigned char)~_BV(7) /* Divide clock by 8 */
663
+ #define LFUSE_DEFAULT (FUSE_CKDIV8 & FUSE_SUT0 & FUSE_CKSEL3 & FUSE_CKSEL2 & FUSE_CKSEL0)
664
+
665
+ /* High Fuse Byte */
666
+ #define FUSE_RSTDISBL (unsigned char)~_BV(0) /* External reset disable */
667
+ #define FUSE_BODLEVEL0 (unsigned char)~_BV(1) /* Brown-out Detector trigger level */
668
+ #define FUSE_BODLEVEL1 (unsigned char)~_BV(2) /* Brown-out Detector trigger level */
669
+ #define FUSE_BODLEVEL2 (unsigned char)~_BV(3) /* Brown-out Detector trigger level */
670
+ #define FUSE_WDTON (unsigned char)~_BV(4) /* Watchdog Timer Always On */
671
+ #define FUSE_SPIEN (unsigned char)~_BV(5) /* Enable Serial programming and Data Downloading */
672
+ #define FUSE_EESAVE (unsigned char)~_BV(6) /* EEPROM memory is preserved through chip erase */
673
+ #define FUSE_DWEN (unsigned char)~_BV(7) /* debugWIRE Enable */
674
+ #define HFUSE_DEFAULT (FUSE_SPIEN)
675
+
676
+ /* Extended Fuse Byte */
677
+ #define FUSE_SELFPRGEN (unsigned char)~_BV(0) /* Self Programming Enable */
678
+ #define EFUSE_DEFAULT (0xFF)
679
+
680
+
681
+ /* Lock Bits */
682
+ #define __LOCK_BITS_EXIST
683
+
684
+
685
+ /* Signature */
686
+ #define SIGNATURE_0 0x1E
687
+ #define SIGNATURE_1 0x91
688
+ #define SIGNATURE_2 0x0A
689
+
690
+
691
+ /* Device Pin Definitions */
692
+ #define RXD_DDR DDRD
693
+ #define RXD_PORT PORTD
694
+ #define RXD_PIN PIND
695
+ #define RXD_BIT 0
696
+
697
+ #define TXD_DDR DDRD
698
+ #define TXD_PORT PORTD
699
+ #define TXD_PIN PIND
700
+ #define TXD_BIT 1
701
+
702
+ #define PA1_DDR DDRXTAL
703
+ #define PA1_PORT PORTXTAL
704
+ #define PA1_PIN PINXTAL
705
+ #define PA1_BIT XTAL2
706
+
707
+ #define PA0_DDR DDRXTAL
708
+ #define PA0_PORT PORTXTAL
709
+ #define PA0_PIN PINXTAL
710
+ #define PA0_BIT XTAL1
711
+
712
+ #define INT0_DDR DDRD
713
+ #define INT0_PORT PORTD
714
+ #define INT0_PIN PIND
715
+ #define INT0_BIT 2
716
+
717
+ #define XCK_DDR DDRD
718
+ #define XCK_PORT PORTD
719
+ #define XCK_PIN PIND
720
+ #define XCK_BIT 2
721
+
722
+ #define CKOUT_DDR DDRD
723
+ #define CKOUT_PORT PORTD
724
+ #define CKOUT_PIN PIND
725
+ #define CKOUT_BIT 2
726
+
727
+ #define INT1_DDR DDRD
728
+ #define INT1_PORT PORTD
729
+ #define INT1_PIN PIND
730
+ #define INT1_BIT 3
731
+
732
+ #define T0_DDR DDRD
733
+ #define T0_PORT PORTD
734
+ #define T0_PIN PIND
735
+ #define T0_BIT 4
736
+
737
+ #define T1_DDR DDRD
738
+ #define T1_PORT PORTD
739
+ #define T1_PIN PIND
740
+ #define T1_BIT 5
741
+
742
+ #define OC0B_DDR DDRD
743
+ #define OC0B_PORT PORTD
744
+ #define OC0B_PIN PIND
745
+ #define OC0B_BIT 5
746
+
747
+ #define ICP_DDR DDRD
748
+ #define ICP_PORT PORTD
749
+ #define ICP_PIN PIND
750
+ #define ICP_BIT 6
751
+
752
+ #define AIN0_DDR DDRB
753
+ #define AIN0_PORT PORTB
754
+ #define AIN0_PIN PINB
755
+ #define AIN0_BIT 0
756
+
757
+ #define AIN1_DDR DDRB
758
+ #define AIN1_PORT PORTB
759
+ #define AIN1_PIN PINB
760
+ #define AIN1_BIT 1
761
+
762
+ #define OC0A_DDR DDRB
763
+ #define OC0A_PORT PORTB
764
+ #define OC0A_PIN PINB
765
+ #define OC0A_BIT 2
766
+
767
+ #define OC1A_DDR DDRB
768
+ #define OC1A_PORT PORTB
769
+ #define OC1A_PIN PINB
770
+ #define OC1A_BIT 3
771
+
772
+ #define OC1B_DDR DDRB
773
+ #define OC1B_PORT PORTB
774
+ #define OC1B_PIN PINB
775
+ #define OC1B_BIT 4
776
+
777
+ #define MOSI_DDR DDRB
778
+ #define MOSI_PORT PORTB
779
+ #define MOSI_PIN PINB
780
+ #define MOSI_BIT 5
781
+
782
+ #define DI_DDR DDRB
783
+ #define DI_PORT PORTB
784
+ #define DI_PIN PINB
785
+ #define DI_BIT 5
786
+
787
+ #define MISO_DDR DDRB
788
+ #define MISO_PORT PORTB
789
+ #define MISO_PIN PINB
790
+ #define MISO_BIT 6
791
+
792
+ #define DO_DDR DDRB
793
+ #define DO_PORT PORTB
794
+ #define DO_PIN PINB
795
+ #define DO_BIT 6
796
+
797
+ #define SCK_DDR DDRB
798
+ #define SCK_PORT PORTB
799
+ #define SCK_PIN PINB
800
+ #define SCK_BIT 7
801
+
802
+ #define SCL_DDR DDRB
803
+ #define SCL_PORT PORTB
804
+ #define SCL_PIN PINB
805
+ #define SCL_BIT 7
806
+
807
+ #define SLEEP_MODE_IDLE (0x00<<4)
808
+ #define SLEEP_MODE_STANDBY (0x04<<4)
809
+ #define SLEEP_MODE_PWR_DOWN (0x05<<4)
810
+
811
+ #endif /* _AVR_ATtiny2313A_H_ */
812
+