1
0

Makefile.tiny 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485
  1. #-------------------------------
  2. # ATtiny 1634, Base instructions
  3. #-------------------------------
  4. HELPTEXT += "\n target attiny1634 - atttiny1634at<freq> attiny1634at<freq>ser1\n"
  5. HELPTEXT += " - atttiny1634at8_5v attiny1634at8_5vser1\n"
  6. attiny1634: TARGET = attiny1634
  7. attiny1634: MCU_TARGET = attiny1634
  8. attiny1634: LED_CMD ?= -DLED=C0
  9. attiny1634: CFLAGS += $(COMMON_OPTIONS) -DVIRTUAL_BOOT_PARTITION -DFOURPAGEERASE $(UART_CMD)
  10. attiny1634: AVR_FREQ ?= 8000000L
  11. attiny1634: $(PROGRAM)_attiny1634.hex
  12. ifndef PRODUCTION
  13. attiny1634: $(PROGRAM)_attiny1634.lst
  14. endif
  15. #-----------------------
  16. # ATtiny 1634, UART 0
  17. #-----------------------
  18. attiny1634at12:
  19. "$(MAKE)" attiny1634 AVR_FREQ=12000000L
  20. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_12000000L.hex
  21. ifndef PRODUCTION
  22. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_12000000L.lst
  23. endif
  24. attiny1634at16:
  25. "$(MAKE)" attiny1634 AVR_FREQ=16000000L
  26. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_16000000L.hex
  27. ifndef PRODUCTION
  28. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_16000000L.lst
  29. endif
  30. attiny1634at8:
  31. "$(MAKE)" attiny1634 AVR_FREQ=8000000L BAUD_RATE=57600
  32. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_8000000L.hex
  33. ifndef PRODUCTION
  34. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_8000000L.lst
  35. endif
  36. attiny1634at8_int:
  37. "$(MAKE)" attiny1634 AVR_FREQ=8000000L BAUD_RATE=57600 LOWERCAL=9
  38. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_8000000L_int.hex
  39. ifndef PRODUCTION
  40. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_8000000L_int.lst
  41. endif
  42. attiny1634at1:
  43. "$(MAKE)" attiny1634 AVR_FREQ=1000000L BAUD_RATE=4800
  44. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_1000000L.hex
  45. ifndef PRODUCTION
  46. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_1000000L.lst
  47. endif
  48. attiny1634at1_int:
  49. "$(MAKE)" attiny1634 AVR_FREQ=1000000L BAUD_RATE=4800 LOWERCAL=5
  50. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_1000000L_int.hex
  51. ifndef PRODUCTION
  52. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_1000000L_int.lst
  53. endif
  54. attiny1634at737:
  55. "$(MAKE)" attiny1634 AVR_FREQ=7372800L BAUD_RATE=57600
  56. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_7372800L.hex
  57. ifndef PRODUCTION
  58. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_7372800L.lst
  59. endif
  60. attiny1634at921:
  61. "$(MAKE)" attiny1634 AVR_FREQ=9216000L BAUD_RATE=57600
  62. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_9216000L.hex
  63. ifndef PRODUCTION
  64. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_9216000L.lst
  65. endif
  66. attiny1634at110:
  67. "$(MAKE)" attiny1634 AVR_FREQ=11059200L
  68. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_11059200L.hex
  69. ifndef PRODUCTION
  70. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_11059200L.lst
  71. endif
  72. attiny1634at147:
  73. "$(MAKE)" attiny1634 AVR_FREQ=14745600L
  74. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_14745600L.hex
  75. ifndef PRODUCTION
  76. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_14745600L.lst
  77. endif
  78. #-----------------------
  79. # ATtiny 1634, UART 1
  80. #-----------------------
  81. attiny1634at12ser1:
  82. "$(MAKE)" attiny1634 AVR_FREQ=12000000L UART=1
  83. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_12000000L_ser1.hex
  84. ifndef PRODUCTION
  85. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_12000000L_ser1.lst
  86. endif
  87. attiny1634at16ser1:
  88. "$(MAKE)" attiny1634 AVR_FREQ=16000000L UART=1
  89. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_16000000L_ser1.hex
  90. ifndef PRODUCTION
  91. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_16000000L_ser1.lst
  92. endif
  93. attiny1634at8ser1:
  94. "$(MAKE)" attiny1634 AVR_FREQ=8000000L BAUD_RATE=57600 UART=1
  95. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_8000000L_ser1.hex
  96. ifndef PRODUCTION
  97. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_8000000L_ser1.lst
  98. endif
  99. attiny1634at8_intser1:
  100. "$(MAKE)" attiny1634 AVR_FREQ=8000000L BAUD_RATE=57600 UART=1 LOWERCAL=9
  101. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_8000000L_ser1_int.hex
  102. ifndef PRODUCTION
  103. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_8000000L_ser1_int.lst
  104. endif
  105. attiny1634at1ser1:
  106. "$(MAKE)" attiny1634 AVR_FREQ=1000000L BAUD_RATE=4800 UART=1
  107. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_1000000L_ser1.hex
  108. ifndef PRODUCTION
  109. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_1000000L_ser1.lst
  110. endif
  111. attiny1634at1_intser1:
  112. "$(MAKE)" attiny1634 AVR_FREQ=1000000L BAUD_RATE=4800 UART=1 LOWERCAL=5
  113. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_1000000L_ser1_int.hex
  114. ifndef PRODUCTION
  115. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_1000000L_ser1_int.lst
  116. endif
  117. attiny1634at737ser1:
  118. "$(MAKE)" attiny1634 AVR_FREQ=7372800L BAUD_RATE=57600 UART=1
  119. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_7372800L_ser1.hex
  120. ifndef PRODUCTION
  121. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_7372800L_ser1.lst
  122. endif
  123. attiny1634at921ser1:
  124. "$(MAKE)" attiny1634 AVR_FREQ=9216000L BAUD_RATE=57600 UART=1
  125. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_9216000L_ser1.hex
  126. ifndef PRODUCTION
  127. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_9216000L_ser1.lst
  128. endif
  129. attiny1634at110ser1:
  130. "$(MAKE)" attiny1634 AVR_FREQ=11059200L UART=1
  131. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_11059200L_ser1.hex
  132. ifndef PRODUCTION
  133. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_11059200L_ser1.lst
  134. endif
  135. attiny1634at147ser1:
  136. "$(MAKE)" attiny1634 AVR_FREQ=14745600L UART=1
  137. mv $(PROGRAM)_attiny1634.hex $(PROGRAM)_attiny1634_14745600L_ser1.hex
  138. ifndef PRODUCTION
  139. mv $(PROGRAM)_attiny1634.lst $(PROGRAM)_attiny1634_14745600L_ser1.lst
  140. endif
  141. #--------------------------------
  142. # ATtiny 841, base instructions
  143. #-------------------------------
  144. HELPTEXT += "target attiny841 - atttiny841at<freq> attiny841at<freq>ser1\n"
  145. HELPTEXT += " - atttiny841at8_5v attiny841at8_5vser1\n"
  146. HELPTEXT += " - atttiny841at<freq>noLED\n"
  147. attiny841: TARGET = attiny841
  148. attiny841: MCU_TARGET = attiny841
  149. attiny841: CFLAGS += $(COMMON_OPTIONS) '-DVIRTUAL_BOOT_PARTITION' '-DFOURPAGEERASE' $(UART_CMD)
  150. attiny841: AVR_FREQ ?= 8000000L
  151. attiny841: $(PROGRAM)_attiny841.hex
  152. ifndef PRODUCTION
  153. attiny841: $(PROGRAM)_attiny841.lst
  154. endif
  155. #-----------------------
  156. # ATtiny 841, UART 0
  157. #-----------------------
  158. attiny841at184:
  159. $(MAKE) attiny841 AVR_FREQ=18432000L
  160. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_18432000L.hex
  161. ifndef PRODUCTION
  162. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_18432000L.lst
  163. endif
  164. attiny841at147:
  165. $(MAKE) attiny841 AVR_FREQ=14745600L
  166. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_14745600L.hex
  167. ifndef PRODUCTION
  168. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_14745600L.lst
  169. endif
  170. attiny841at110:
  171. $(MAKE) attiny841 AVR_FREQ=11059200L
  172. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_11059200L.hex
  173. ifndef PRODUCTION
  174. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_11059200L.lst
  175. endif
  176. attiny841at921:
  177. $(MAKE) attiny841 AVR_FREQ=9216000L BAUD_RATE=57600
  178. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_9216000L.hex
  179. ifndef PRODUCTION
  180. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_9216000L.lst
  181. endif
  182. attiny841at737:
  183. $(MAKE) attiny841 AVR_FREQ=7372800L BAUD_RATE=57600
  184. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_7372800L.hex
  185. ifndef PRODUCTION
  186. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_7372800L.lst
  187. endif
  188. attiny841at20:
  189. $(MAKE) attiny841 AVR_FREQ=20000000L
  190. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_20000000L.hex
  191. ifndef PRODUCTION
  192. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_20000000L.lst
  193. endif
  194. attiny841at16:
  195. $(MAKE) attiny841 AVR_FREQ=16000000L
  196. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_16000000L.hex
  197. ifndef PRODUCTION
  198. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_16000000L.lst
  199. endif
  200. attiny841at12:
  201. $(MAKE) attiny841 AVR_FREQ=12000000L
  202. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_12000000L.hex
  203. ifndef PRODUCTION
  204. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_12000000L.lst
  205. endif
  206. attiny841at8:
  207. $(MAKE) attiny841 AVR_FREQ=8000000L BAUD_RATE=57600
  208. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_8000000L.hex
  209. ifndef PRODUCTION
  210. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_8000000L.lst
  211. endif
  212. attiny841at8_int:
  213. $(MAKE) attiny841 AVR_FREQ=8000000L BAUD_RATE=57600 LOWERCAL=7
  214. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_8000000L_int.hex
  215. ifndef PRODUCTION
  216. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_8000000L_int.lst
  217. endif
  218. attiny841at1:
  219. $(MAKE) attiny841 AVR_FREQ=1000000L BAUD_RATE=4800
  220. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_1000000L.hex
  221. ifndef PRODUCTION
  222. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_1000000L.lst
  223. endif
  224. attiny841at1_int:
  225. $(MAKE) attiny841 AVR_FREQ=1000000L BAUD_RATE=4800 LOWERCAL=4
  226. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_1000000L_int.hex
  227. ifndef PRODUCTION
  228. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_1000000L_int.lst
  229. endif
  230. #-----------------------
  231. # ATtiny 841, UART 1
  232. #-----------------------
  233. attiny841at184ser1:
  234. $(MAKE) attiny841 AVR_FREQ=18432000L UART=1
  235. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_18432000L_ser1.hex
  236. ifndef PRODUCTION
  237. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_18432000L_ser1.lst
  238. endif
  239. attiny841at147ser1:
  240. $(MAKE) attiny841 AVR_FREQ=14745600L UART=1
  241. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_14745600L_ser1.hex
  242. ifndef PRODUCTION
  243. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_14745600L_ser1.lst
  244. endif
  245. attiny841at110ser1:
  246. $(MAKE) attiny841 AVR_FREQ=11059200L UART=1
  247. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_11059200L_ser1.hex
  248. ifndef PRODUCTION
  249. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_11059200L_ser1.lst
  250. endif
  251. attiny841at921ser1:
  252. $(MAKE) attiny841 AVR_FREQ=9216000L BAUD_RATE=57600 UART=1
  253. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_9216000L_ser1.hex
  254. ifndef PRODUCTION
  255. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_9216000L_ser1.lst
  256. endif
  257. attiny841at737ser1:
  258. $(MAKE) attiny841 AVR_FREQ=7372800L BAUD_RATE=57600 UART=1
  259. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_7372800L_ser1.hex
  260. ifndef PRODUCTION
  261. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_7372800L_ser1.lst
  262. endif
  263. attiny841at20ser1:
  264. $(MAKE) attiny841 AVR_FREQ=20000000L UART=1
  265. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_20000000L_ser1.hex
  266. ifndef PRODUCTION
  267. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_20000000L_ser1.lst
  268. endif
  269. attiny841at16ser1:
  270. $(MAKE) attiny841 AVR_FREQ=16000000L UART=1
  271. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_16000000L_ser1.hex
  272. ifndef PRODUCTION
  273. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_16000000L_ser1.lst
  274. endif
  275. attiny841at12ser1:
  276. $(MAKE) attiny841 AVR_FREQ=12000000L UART=1
  277. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_12000000L_ser1.hex
  278. ifndef PRODUCTION
  279. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_12000000L_ser1.lst
  280. endif
  281. attiny841at8ser1:
  282. $(MAKE) attiny841 AVR_FREQ=8000000L BAUD_RATE=57600 UART=1
  283. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_8000000L_ser1.hex
  284. ifndef PRODUCTION
  285. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_8000000L_ser1.lst
  286. endif
  287. attiny841at8_intser1:
  288. $(MAKE) attiny841 AVR_FREQ=8000000L BAUD_RATE=57600 LOWERCAL=7 UART=1
  289. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_8000000L_ser1_int.hex
  290. ifndef PRODUCTION
  291. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_8000000L_ser1_int.lst
  292. endif
  293. attiny841at1ser1:
  294. $(MAKE) attiny841 AVR_FREQ=1000000L BAUD_RATE=4800 UART=1
  295. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_1000000L_ser1.hex
  296. ifndef PRODUCTION
  297. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_1000000L_ser1.lst
  298. endif
  299. attiny841at1_intser1:
  300. $(MAKE) attiny841 AVR_FREQ=1000000L BAUD_RATE=4800 LOWERCAL=4 UART=1
  301. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_1000000L_ser1_int.hex
  302. ifndef PRODUCTION
  303. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_1000000L_ser1_int.lst
  304. endif
  305. #-----------------------
  306. # ATtiny 841, UART 0, no LED
  307. # There's no noLED definitions for 1634 because the larger page size
  308. # on the 1634 means that you don't gain any usable flash from it.
  309. #-----------------------
  310. attiny841at20noLED:
  311. $(MAKE) attiny841 AVR_FREQ=20000000L LED_START_FLASHES=0
  312. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_20000000L_noLED.hex
  313. ifndef PRODUCTION
  314. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_20000000L_noLED.lst
  315. endif
  316. attiny841at16noLED:
  317. $(MAKE) attiny841 AVR_FREQ=16000000L LED_START_FLASHES=0
  318. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_16000000L_noLED.hex
  319. ifndef PRODUCTION
  320. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_16000000L_noLED.lst
  321. endif
  322. attiny841at8noLED:
  323. $(MAKE) attiny841 AVR_FREQ=8000000L BAUD_RATE=57600 LED_START_FLASHES=0
  324. mv $(PROGRAM)_attiny841.hex $(PROGRAM)_attiny841_8000000L_noLED.hex
  325. ifndef PRODUCTION
  326. mv $(PROGRAM)_attiny841.lst $(PROGRAM)_attiny841_8000000L_noLED.lst
  327. endif
  328. #--------------------------------
  329. # ATtiny 441, base instructions
  330. #-------------------------------
  331. HELPTEXT += "target attiny441 - atttiny441at<freq> attiny441at<freq>ser1\n"
  332. HELPTEXT += " - atttiny441at8_5v attiny441at8_5vser1\n"
  333. HELPTEXT += " - atttiny441at<freq>noLED\n"
  334. attiny441: TARGET = attiny441
  335. attiny441: MCU_TARGET = attiny441
  336. attiny441: CFLAGS += $(COMMON_OPTIONS) '-DVIRTUAL_BOOT_PARTITION' '-DFOURPAGEERASE' $(UART_CMD)
  337. attiny441: AVR_FREQ ?= 8000000L
  338. attiny441: $(PROGRAM)_attiny441.hex
  339. ifndef PRODUCTION
  340. attiny441: $(PROGRAM)_attiny441.lst
  341. endif
  342. #-----------------------
  343. # ATtiny 441, UART 0
  344. #-----------------------
  345. attiny441at184:
  346. $(MAKE) attiny441 AVR_FREQ=18432000L
  347. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_18432000L.hex
  348. ifndef PRODUCTION
  349. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_18432000L.lst
  350. endif
  351. attiny441at147:
  352. $(MAKE) attiny441 AVR_FREQ=14745600L
  353. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_14745600L.hex
  354. ifndef PRODUCTION
  355. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_14745600L.lst
  356. endif
  357. attiny441at110:
  358. $(MAKE) attiny441 AVR_FREQ=11059200L
  359. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_11059200L.hex
  360. ifndef PRODUCTION
  361. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_11059200L.lst
  362. endif
  363. attiny441at921:
  364. $(MAKE) attiny441 AVR_FREQ=9216000L BAUD_RATE=57600
  365. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_9216000L.hex
  366. ifndef PRODUCTION
  367. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_9216000L.lst
  368. endif
  369. attiny441at737:
  370. $(MAKE) attiny441 AVR_FREQ=7372800L BAUD_RATE=57600
  371. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_7372800L.hex
  372. ifndef PRODUCTION
  373. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_7372800L.lst
  374. endif
  375. attiny441at20:
  376. $(MAKE) attiny441 AVR_FREQ=20000000L
  377. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_20000000L.hex
  378. ifndef PRODUCTION
  379. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_20000000L.lst
  380. endif
  381. attiny441at16:
  382. $(MAKE) attiny441 AVR_FREQ=16000000L
  383. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_16000000L.hex
  384. ifndef PRODUCTION
  385. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_16000000L.lst
  386. endif
  387. attiny441at12:
  388. $(MAKE) attiny441 AVR_FREQ=12000000L
  389. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_12000000L.hex
  390. ifndef PRODUCTION
  391. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_12000000L.lst
  392. endif
  393. attiny441at8:
  394. $(MAKE) attiny441 AVR_FREQ=8000000L BAUD_RATE=57600
  395. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_8000000L.hex
  396. ifndef PRODUCTION
  397. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_8000000L.lst
  398. endif
  399. attiny441at8_int:
  400. $(MAKE) attiny441 AVR_FREQ=8000000L LOWERCAL=7 BAUD_RATE=57600
  401. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_8000000L_int.hex
  402. ifndef PRODUCTION
  403. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_8000000L_int.lst
  404. endif
  405. attiny441at1:
  406. $(MAKE) attiny441 AVR_FREQ=1000000L BAUD_RATE=4800
  407. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_1000000L.hex
  408. ifndef PRODUCTION
  409. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_1000000L.lst
  410. endif
  411. attiny441at1_int:
  412. $(MAKE) attiny441 AVR_FREQ=1000000L BAUD_RATE=4800 LOWERCAL=4
  413. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_1000000L_int.hex
  414. ifndef PRODUCTION
  415. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_1000000L_int.lst
  416. endif
  417. #-----------------------
  418. # ATtiny 441, UART 1
  419. #-----------------------
  420. attiny441at184ser1:
  421. $(MAKE) attiny441 AVR_FREQ=18432000L UART=1
  422. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_18432000L_ser1.hex
  423. ifndef PRODUCTION
  424. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_18432000L_ser1.lst
  425. endif
  426. attiny441at147ser1:
  427. $(MAKE) attiny441 AVR_FREQ=14745600L UART=1
  428. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_14745600L_ser1.hex
  429. ifndef PRODUCTION
  430. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_14745600L_ser1.lst
  431. endif
  432. attiny441at110ser1:
  433. $(MAKE) attiny441 AVR_FREQ=11059200L UART=1
  434. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_11059200L_ser1.hex
  435. ifndef PRODUCTION
  436. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_11059200L_ser1.lst
  437. endif
  438. attiny441at921ser1:
  439. $(MAKE) attiny441 AVR_FREQ=9216000L BAUD_RATE=57600 UART=1
  440. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_9216000L_ser1.hex
  441. ifndef PRODUCTION
  442. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_9216000L_ser1.lst
  443. endif
  444. attiny441at737ser1:
  445. $(MAKE) attiny441 AVR_FREQ=7372800L BAUD_RATE=57600 UART=1
  446. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_7372800L_ser1.hex
  447. ifndef PRODUCTION
  448. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_7372800L_ser1.lst
  449. endif
  450. attiny441at20ser1:
  451. $(MAKE) attiny441 AVR_FREQ=20000000L UART=1
  452. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_20000000L_ser1.hex
  453. ifndef PRODUCTION
  454. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_20000000L_ser1.lst
  455. endif
  456. attiny441at16ser1:
  457. $(MAKE) attiny441 AVR_FREQ=16000000L UART=1
  458. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_16000000L_ser1.hex
  459. ifndef PRODUCTION
  460. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_16000000L_ser1.lst
  461. endif
  462. attiny441at12ser1:
  463. $(MAKE) attiny441 AVR_FREQ=12000000L UART=1
  464. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_12000000L_ser1.hex
  465. ifndef PRODUCTION
  466. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_12000000L_ser1.lst
  467. endif
  468. attiny441at8ser1:
  469. $(MAKE) attiny441 AVR_FREQ=8000000L BAUD_RATE=57600 UART=1
  470. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_8000000L_ser1.hex
  471. ifndef PRODUCTION
  472. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_8000000L_ser1.lst
  473. endif
  474. attiny441at8_intser1:
  475. $(MAKE) attiny441 AVR_FREQ=8000000L LOWERCAL=7 BAUD_RATE=57600 UART=1
  476. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_8000000L_ser1_int.hex
  477. ifndef PRODUCTION
  478. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_8000000L_ser1_int.lst
  479. endif
  480. attiny441at1ser1:
  481. $(MAKE) attiny441 AVR_FREQ=1000000L BAUD_RATE=4800
  482. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_1000000L_ser1.hex
  483. ifndef PRODUCTION
  484. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_1000000L_ser1.lst
  485. endif
  486. attiny441at1_intser1:
  487. $(MAKE) attiny441 AVR_FREQ=1000000L BAUD_RATE=4800 LOWERCAL=4
  488. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_1000000L_ser1_int.hex
  489. ifndef PRODUCTION
  490. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_1000000L_ser1_int.lst
  491. endif
  492. #-----------------------
  493. # ATtiny 841, UART 0, no LED
  494. # There's no noLED definitions for 1634 because the larger page size
  495. # on the 1634 means that you don't gain any usable flash from it.
  496. #-----------------------
  497. attiny441at20noLED:
  498. $(MAKE) attiny441 AVR_FREQ=20000000L LED_START_FLASHES=0
  499. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_20000000L_noLED.hex
  500. ifndef PRODUCTION
  501. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_20000000L_noLED.lst
  502. endif
  503. attiny441at16noLED:
  504. $(MAKE) attiny441 AVR_FREQ=16000000L LED_START_FLASHES=0
  505. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_16000000L_noLED.hex
  506. ifndef PRODUCTION
  507. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_16000000L_noLED.lst
  508. endif
  509. attiny441at8noLED:
  510. $(MAKE) attiny441 AVR_FREQ=8000000L BAUD_RATE=57600 LED_START_FLASHES=0
  511. mv $(PROGRAM)_attiny441.hex $(PROGRAM)_attiny441_8000000L_noLED.hex
  512. ifndef PRODUCTION
  513. mv $(PROGRAM)_attiny441.lst $(PROGRAM)_attiny441_8000000L_noLED.lst
  514. endif
  515. #-------------------
  516. # ATtiny828 - only one speed since it doesn't support crystal.
  517. # If you want to use an external clock
  518. #--------------------
  519. HELPTEXT += "target attiny828 - atttiny828at<freq> attiny841at8_5v\n"
  520. attiny828: TARGET = attiny828
  521. attiny828: MCU_TARGET = attiny828
  522. attiny828: CFLAGS += $(COMMON_OPTIONS)
  523. attiny828: AVR_FREQ ?= 8000000L
  524. attiny828: $(PROGRAM)_attiny828.hex
  525. ifndef PRODUCTION
  526. attiny828: $(PROGRAM)_attiny828.lst
  527. endif
  528. attiny828at8:
  529. $(MAKE) attiny828 AVR_FREQ=8000000L BAUD_RATE=57600
  530. mv $(PROGRAM)_attiny828.hex $(PROGRAM)_attiny828_8000000L.hex
  531. ifndef PRODUCTION
  532. mv $(PROGRAM)_attiny828.lst $(PROGRAM)_attiny828_8000000L.lst
  533. endif
  534. attiny828at12:
  535. $(MAKE) attiny828 AVR_FREQ=12000000L
  536. mv $(PROGRAM)_attiny828.hex $(PROGRAM)_attiny828_12000000L.hex
  537. ifndef PRODUCTION
  538. mv $(PROGRAM)_attiny828.lst $(PROGRAM)_attiny828_12000000L.lst
  539. endif
  540. attiny828at16:
  541. $(MAKE) attiny828 AVR_FREQ=16000000L
  542. mv $(PROGRAM)_attiny828.hex $(PROGRAM)_attiny828_16000000L.hex
  543. ifndef PRODUCTION
  544. mv $(PROGRAM)_attiny828.lst $(PROGRAM)_attiny828_16000000L.lst
  545. endif
  546. attiny828at20:
  547. $(MAKE) attiny828 AVR_FREQ=20000000L
  548. mv $(PROGRAM)_attiny828.hex $(PROGRAM)_attiny828_20000000L.hex
  549. ifndef PRODUCTION
  550. mv $(PROGRAM)_attiny828.lst $(PROGRAM)_attiny828_20000000L.lst
  551. endif
  552. attiny828at8_int:
  553. $(MAKE) attiny828 AVR_FREQ=8000000L BAUD_RATE=57600 LOWERCAL=9
  554. mv $(PROGRAM)_attiny828.hex $(PROGRAM)_attiny828_8000000L_int.hex
  555. ifndef PRODUCTION
  556. mv $(PROGRAM)_attiny828.lst $(PROGRAM)_attiny828_8000000L_int.lst
  557. endif
  558. attiny828at1:
  559. $(MAKE) attiny828 AVR_FREQ=1000000L BAUD_RATE=4800
  560. mv $(PROGRAM)_attiny828.hex $(PROGRAM)_attiny828_1000000L.hex
  561. ifndef PRODUCTION
  562. mv $(PROGRAM)_attiny828.lst $(PROGRAM)_attiny828_1000000L.lst
  563. endif
  564. attiny828at1_int:
  565. $(MAKE) attiny828 AVR_FREQ=1000000L BAUD_RATE=4800 LOWERCAL=5
  566. mv $(PROGRAM)_attiny828.hex $(PROGRAM)_attiny828_1000000L_int.hex
  567. ifndef PRODUCTION
  568. mv $(PROGRAM)_attiny828.lst $(PROGRAM)_attiny828_1000000L_int.lst
  569. endif
  570. #-------------------
  571. # ATtiny88 - only one speed since it doesn't support crystal.
  572. # If you want to use an external clock
  573. #--------------------
  574. HELPTEXT += "target attiny88 - atttiny88at<freq> \n"
  575. attiny88: TARGET = attiny88
  576. attiny88: MCU_TARGET = attiny88
  577. attiny88: CFLAGS += $(COMMON_OPTIONS) '-DVIRTUAL_BOOT_PARTITION' '-DSOFT_UART'
  578. attiny88: AVR_FREQ ?= 8000000L
  579. attiny88: $(PROGRAM)_attiny88.hex
  580. ifndef PRODUCTION
  581. attiny88: $(PROGRAM)_attiny88.lst
  582. endif
  583. attiny88at20:
  584. $(MAKE) attiny88 AVR_FREQ=20000000L BAUD_RATE=19200
  585. mv $(PROGRAM)_attiny88.hex $(PROGRAM)_attiny88_20000000L.hex
  586. ifndef PRODUCTION
  587. mv $(PROGRAM)_attiny88.lst $(PROGRAM)_attiny88_20000000L.lst
  588. endif
  589. attiny88at16:
  590. $(MAKE) attiny88 AVR_FREQ=16000000L BAUD_RATE=19200
  591. mv $(PROGRAM)_attiny88.hex $(PROGRAM)_attiny88_16000000L.hex
  592. ifndef PRODUCTION
  593. mv $(PROGRAM)_attiny88.lst $(PROGRAM)_attiny88_16000000L.lst
  594. endif
  595. attiny88at12:
  596. $(MAKE) attiny88 AVR_FREQ=12000000L BAUD_RATE=19200
  597. mv $(PROGRAM)_attiny88.hex $(PROGRAM)_attiny88_12000000L.hex
  598. ifndef PRODUCTION
  599. mv $(PROGRAM)_attiny88.lst $(PROGRAM)_attiny88_12000000L.lst
  600. endif
  601. attiny88at8:
  602. $(MAKE) attiny88 AVR_FREQ=8000000L BAUD_RATE=19200
  603. mv $(PROGRAM)_attiny88.hex $(PROGRAM)_attiny88_8000000L.hex
  604. ifndef PRODUCTION
  605. mv $(PROGRAM)_attiny88.lst $(PROGRAM)_attiny88_8000000L.lst
  606. endif
  607. attiny88at4:
  608. $(MAKE) attiny88 AVR_FREQ=4000000L BAUD_RATE=9600
  609. mv $(PROGRAM)_attiny88.hex $(PROGRAM)_attiny88_4000000L.hex
  610. ifndef PRODUCTION
  611. mv $(PROGRAM)_attiny88.lst $(PROGRAM)_attiny88_4000000L.lst
  612. endif
  613. # adjusts prescaler - that's the value for CLKPR not division factor
  614. attiny88at4_int:
  615. $(MAKE) attiny88 AVR_FREQ=4000000L BAUD_RATE=9600 PRESCALE=1
  616. mv $(PROGRAM)_attiny88.hex $(PROGRAM)_attiny88_4000000L_int.hex
  617. ifndef PRODUCTION
  618. mv $(PROGRAM)_attiny88.lst $(PROGRAM)_attiny88_4000000L_int.lst
  619. endif
  620. attiny88at1:
  621. $(MAKE) attiny88 AVR_FREQ=1000000L BAUD_RATE=2400
  622. mv $(PROGRAM)_attiny88.hex $(PROGRAM)_attiny88_1000000L.hex
  623. ifndef PRODUCTION
  624. mv $(PROGRAM)_attiny88.lst $(PROGRAM)_attiny88_1000000L.lst
  625. endif
  626. #-------------------
  627. # ATtiny48 - only one speed since it doesn't support crystal.
  628. # If you want to use an external clock
  629. #--------------------
  630. HELPTEXT += "target attiny48 - atttiny48at<freq> \n"
  631. attiny48: TARGET = attiny48
  632. attiny48: MCU_TARGET = attiny48
  633. attiny48: CFLAGS += $(COMMON_OPTIONS) '-DVIRTUAL_BOOT_PARTITION' '-DSOFT_UART'
  634. attiny48: AVR_FREQ ?= 8000000L
  635. attiny48: $(PROGRAM)_attiny48.hex
  636. ifndef PRODUCTION
  637. attiny48: $(PROGRAM)_attiny48.lst
  638. endif
  639. attiny48at20:
  640. $(MAKE) attiny48 AVR_FREQ=20000000L BAUD_RATE=19200
  641. mv $(PROGRAM)_attiny48.hex $(PROGRAM)_attiny48_20000000L.hex
  642. ifndef PRODUCTION
  643. mv $(PROGRAM)_attiny48.lst $(PROGRAM)_attiny48_20000000L.lst
  644. endif
  645. attiny48at16:
  646. $(MAKE) attiny48 AVR_FREQ=16000000L BAUD_RATE=19200
  647. mv $(PROGRAM)_attiny48.hex $(PROGRAM)_attiny48_16000000L.hex
  648. ifndef PRODUCTION
  649. mv $(PROGRAM)_attiny48.lst $(PROGRAM)_attiny48_16000000L.lst
  650. endif
  651. attiny48at12:
  652. $(MAKE) attiny48 AVR_FREQ=12000000L BAUD_RATE=19200
  653. mv $(PROGRAM)_attiny48.hex $(PROGRAM)_attiny48_12000000L.hex
  654. ifndef PRODUCTION
  655. mv $(PROGRAM)_attiny48.lst $(PROGRAM)_attiny48_12000000L.lst
  656. endif
  657. attiny48at8:
  658. $(MAKE) attiny48 AVR_FREQ=8000000L BAUD_RATE=19200
  659. mv $(PROGRAM)_attiny48.hex $(PROGRAM)_attiny48_8000000L.hex
  660. ifndef PRODUCTION
  661. mv $(PROGRAM)_attiny48.lst $(PROGRAM)_attiny48_8000000L.lst
  662. endif
  663. attiny48at4:
  664. $(MAKE) attiny48 AVR_FREQ=4000000L BAUD_RATE=9600
  665. mv $(PROGRAM)_attiny48.hex $(PROGRAM)_attiny48_4000000L.hex
  666. ifndef PRODUCTION
  667. mv $(PROGRAM)_attiny48.lst $(PROGRAM)_attiny48_4000000L.lst
  668. endif
  669. # adjusts prescaler appropriately - that's the value for CLKPR, not prescale factor.
  670. attiny48at4_int:
  671. $(MAKE) attiny48 AVR_FREQ=4000000L BAUD_RATE=9600 PRESCALE=1
  672. mv $(PROGRAM)_attiny48.hex $(PROGRAM)_attiny48_4000000L_int.hex
  673. ifndef PRODUCTION
  674. mv $(PROGRAM)_attiny48.lst $(PROGRAM)_attiny48_4000000L_int.lst
  675. endif
  676. attiny48at1:
  677. $(MAKE) attiny48 AVR_FREQ=1000000L BAUD_RATE=2400
  678. mv $(PROGRAM)_attiny48.hex $(PROGRAM)_attiny48_1000000L.hex
  679. ifndef PRODUCTION
  680. mv $(PROGRAM)_attiny48.lst $(PROGRAM)_attiny48_1000000L.lst
  681. endif
  682. #-------------------
  683. # ATtiny85 - No LED (pins are scarce, and led blink routine would need to be adapted to x5 timer, and it saves us a page of flash)
  684. #--------------------
  685. HELPTEXT += "target attiny85 - attiny85at<freq> \n"
  686. attiny85: TARGET = attiny85
  687. attiny85: MCU_TARGET = attiny85
  688. attiny85: LED_START_FLASHES_CMD = '-DLED_START_FLASHES=0'
  689. attiny85: CFLAGS += $(COMMON_OPTIONS) '-DVIRTUAL_BOOT_PARTITION' '-DSOFT_UART'
  690. attiny85: AVR_FREQ ?= 8000000L
  691. attiny85: $(PROGRAM)_attiny85.hex
  692. ifndef PRODUCTION
  693. attiny85: $(PROGRAM)_attiny85.lst
  694. endif
  695. attiny85at8:
  696. $(MAKE) attiny85 AVR_FREQ=8000000L BAUD_RATE=19200
  697. mv $(PROGRAM)_attiny85.hex $(PROGRAM)_attiny85_8000000L.hex
  698. ifndef PRODUCTION
  699. mv $(PROGRAM)_attiny85.lst $(PROGRAM)_attiny85_8000000L.lst
  700. endif
  701. attiny85at1:
  702. $(MAKE) attiny85 AVR_FREQ=1000000L BAUD_RATE=2400
  703. mv $(PROGRAM)_attiny85.hex $(PROGRAM)_attiny85_1000000L.hex
  704. ifndef PRODUCTION
  705. mv $(PROGRAM)_attiny85.lst $(PROGRAM)_attiny85_1000000L.lst
  706. endif
  707. attiny85at12:
  708. $(MAKE) attiny85 AVR_FREQ=12000000L BAUD_RATE=19200
  709. mv $(PROGRAM)_attiny85.hex $(PROGRAM)_attiny85_12000000L.hex
  710. ifndef PRODUCTION
  711. mv $(PROGRAM)_attiny85.lst $(PROGRAM)_attiny85_12000000L.lst
  712. endif
  713. attiny85at16:
  714. $(MAKE) attiny85 AVR_FREQ=16000000L BAUD_RATE=19200
  715. mv $(PROGRAM)_attiny85.hex $(PROGRAM)_attiny85_16000000L.hex
  716. ifndef PRODUCTION
  717. mv $(PROGRAM)_attiny85.lst $(PROGRAM)_attiny85_16000000L.lst
  718. endif
  719. attiny85at20:
  720. $(MAKE) attiny85 AVR_FREQ=20000000L BAUD_RATE=19200
  721. mv $(PROGRAM)_attiny85.hex $(PROGRAM)_attiny85_20000000L.hex
  722. ifndef PRODUCTION
  723. mv $(PROGRAM)_attiny85.lst $(PROGRAM)_attiny85_20000000L.lst
  724. endif
  725. attiny85at737:
  726. $(MAKE) attiny85 AVR_FREQ=7372800L BAUD_RATE=19200
  727. mv $(PROGRAM)_attiny85.hex $(PROGRAM)_attiny85_7372800L.hex
  728. ifndef PRODUCTION
  729. mv $(PROGRAM)_attiny85.lst $(PROGRAM)_attiny85_7372800L.lst
  730. endif
  731. attiny85at921:
  732. $(MAKE) attiny85 AVR_FREQ=9216000L BAUD_RATE=19200
  733. mv $(PROGRAM)_attiny85.hex $(PROGRAM)_attiny85_9216000L.hex
  734. ifndef PRODUCTION
  735. mv $(PROGRAM)_attiny85.lst $(PROGRAM)_attiny85_9216000L.lst
  736. endif
  737. attiny85at110:
  738. $(MAKE) attiny85 AVR_FREQ=11059200L BAUD_RATE=19200
  739. mv $(PROGRAM)_attiny85.hex $(PROGRAM)_attiny85_11059200L.hex
  740. ifndef PRODUCTION
  741. mv $(PROGRAM)_attiny85.lst $(PROGRAM)_attiny85_11059200L.lst
  742. endif
  743. attiny85at147:
  744. $(MAKE) attiny85 AVR_FREQ=14745600L BAUD_RATE=19200
  745. mv $(PROGRAM)_attiny85.hex $(PROGRAM)_attiny85_14745600L.hex
  746. ifndef PRODUCTION
  747. mv $(PROGRAM)_attiny85.lst $(PROGRAM)_attiny85_14745600L.lst
  748. endif
  749. attiny85at184:
  750. $(MAKE) attiny85 AVR_FREQ=18432000L BAUD_RATE=19200
  751. mv $(PROGRAM)_attiny85.hex $(PROGRAM)_attiny85_18432000L.hex
  752. ifndef PRODUCTION
  753. mv $(PROGRAM)_attiny85.lst $(PROGRAM)_attiny85_18432000L.lst
  754. endif
  755. #-------------------
  756. # ATtiny45 - No LED (pins are scarce, and led blink routine would need to be adapted to x5 timer, and it saves us a page of flash)
  757. #--------------------
  758. HELPTEXT += "target attiny45 - attiny45at<freq> \n"
  759. attiny45: TARGET = attiny45
  760. attiny45: MCU_TARGET = attiny45
  761. attiny45: LED_START_FLASHES_CMD = '-DLED_START_FLASHES=0'
  762. attiny45: CFLAGS += $(COMMON_OPTIONS) '-DVIRTUAL_BOOT_PARTITION' '-DSOFT_UART'
  763. attiny45: AVR_FREQ ?= 8000000L
  764. attiny45: $(PROGRAM)_attiny45.hex
  765. ifndef PRODUCTION
  766. attiny45: $(PROGRAM)_attiny45.lst
  767. endif
  768. attiny45at8:
  769. $(MAKE) attiny45 AVR_FREQ=8000000L BAUD_RATE=19200
  770. mv $(PROGRAM)_attiny45.hex $(PROGRAM)_attiny45_8000000L.hex
  771. ifndef PRODUCTION
  772. mv $(PROGRAM)_attiny45.lst $(PROGRAM)_attiny45_8000000L.lst
  773. endif
  774. attiny45at1:
  775. $(MAKE) attiny45 AVR_FREQ=1000000L BAUD_RATE=2400
  776. mv $(PROGRAM)_attiny45.hex $(PROGRAM)_attiny45_1000000L.hex
  777. ifndef PRODUCTION
  778. mv $(PROGRAM)_attiny45.lst $(PROGRAM)_attiny45_1000000L.lst
  779. endif
  780. attiny45at12:
  781. $(MAKE) attiny45 AVR_FREQ=12000000L BAUD_RATE=19200
  782. mv $(PROGRAM)_attiny45.hex $(PROGRAM)_attiny45_12000000L.hex
  783. ifndef PRODUCTION
  784. mv $(PROGRAM)_attiny45.lst $(PROGRAM)_attiny45_12000000L.lst
  785. endif
  786. attiny45at16:
  787. $(MAKE) attiny45 AVR_FREQ=16000000L BAUD_RATE=19200
  788. mv $(PROGRAM)_attiny45.hex $(PROGRAM)_attiny45_16000000L.hex
  789. ifndef PRODUCTION
  790. mv $(PROGRAM)_attiny45.lst $(PROGRAM)_attiny45_16000000L.lst
  791. endif
  792. attiny45at20:
  793. $(MAKE) attiny45 AVR_FREQ=20000000L BAUD_RATE=19200
  794. mv $(PROGRAM)_attiny45.hex $(PROGRAM)_attiny45_20000000L.hex
  795. ifndef PRODUCTION
  796. mv $(PROGRAM)_attiny45.lst $(PROGRAM)_attiny45_20000000L.lst
  797. endif
  798. attiny45at737:
  799. $(MAKE) attiny45 AVR_FREQ=7372800L BAUD_RATE=19200
  800. mv $(PROGRAM)_attiny45.hex $(PROGRAM)_attiny45_7372800L.hex
  801. ifndef PRODUCTION
  802. mv $(PROGRAM)_attiny45.lst $(PROGRAM)_attiny45_7372800L.lst
  803. endif
  804. attiny45at921:
  805. $(MAKE) attiny45 AVR_FREQ=9216000L BAUD_RATE=19200
  806. mv $(PROGRAM)_attiny45.hex $(PROGRAM)_attiny45_9216000L.hex
  807. ifndef PRODUCTION
  808. mv $(PROGRAM)_attiny45.lst $(PROGRAM)_attiny45_9216000L.lst
  809. endif
  810. attiny45at110:
  811. $(MAKE) attiny45 AVR_FREQ=11059200L BAUD_RATE=19200
  812. mv $(PROGRAM)_attiny45.hex $(PROGRAM)_attiny45_11059200L.hex
  813. ifndef PRODUCTION
  814. mv $(PROGRAM)_attiny45.lst $(PROGRAM)_attiny45_11059200L.lst
  815. endif
  816. attiny45at147:
  817. $(MAKE) attiny45 AVR_FREQ=14745600L BAUD_RATE=19200
  818. mv $(PROGRAM)_attiny45.hex $(PROGRAM)_attiny45_14745600L.hex
  819. ifndef PRODUCTION
  820. mv $(PROGRAM)_attiny45.lst $(PROGRAM)_attiny45_14745600L.lst
  821. endif
  822. attiny45at184:
  823. $(MAKE) attiny45 AVR_FREQ=18432000L BAUD_RATE=19200
  824. mv $(PROGRAM)_attiny45.hex $(PROGRAM)_attiny45_18432000L.hex
  825. ifndef PRODUCTION
  826. mv $(PROGRAM)_attiny45.lst $(PROGRAM)_attiny45_18432000L.lst
  827. endif
  828. #-------------------
  829. # ATtiny84
  830. #--------------------
  831. HELPTEXT += "target attiny84 - attiny84at<freq> \n"
  832. attiny84: TARGET = attiny84
  833. attiny84: MCU_TARGET = attiny84
  834. attiny84: CFLAGS += $(COMMON_OPTIONS) '-DVIRTUAL_BOOT_PARTITION' '-DSOFT_UART'
  835. attiny84: AVR_FREQ ?= 8000000L
  836. attiny84: $(PROGRAM)_attiny84.hex
  837. ifndef PRODUCTION
  838. attiny84: $(PROGRAM)_attiny84.lst
  839. endif
  840. attiny84at8:
  841. $(MAKE) attiny84 AVR_FREQ=8000000L BAUD_RATE=19200
  842. mv $(PROGRAM)_attiny84.hex $(PROGRAM)_attiny84_8000000L.hex
  843. ifndef PRODUCTION
  844. mv $(PROGRAM)_attiny84.lst $(PROGRAM)_attiny84_8000000L.lst
  845. endif
  846. attiny84at1:
  847. $(MAKE) attiny84 AVR_FREQ=1000000L BAUD_RATE=2400
  848. mv $(PROGRAM)_attiny84.hex $(PROGRAM)_attiny84_1000000L.hex
  849. ifndef PRODUCTION
  850. mv $(PROGRAM)_attiny84.lst $(PROGRAM)_attiny84_1000000L.lst
  851. endif
  852. attiny84at12:
  853. $(MAKE) attiny84 AVR_FREQ=12000000L BAUD_RATE=19200
  854. mv $(PROGRAM)_attiny84.hex $(PROGRAM)_attiny84_12000000L.hex
  855. ifndef PRODUCTION
  856. mv $(PROGRAM)_attiny84.lst $(PROGRAM)_attiny84_12000000L.lst
  857. endif
  858. attiny84at16:
  859. $(MAKE) attiny84 AVR_FREQ=16000000L BAUD_RATE=19200
  860. mv $(PROGRAM)_attiny84.hex $(PROGRAM)_attiny84_16000000L.hex
  861. ifndef PRODUCTION
  862. mv $(PROGRAM)_attiny84.lst $(PROGRAM)_attiny84_16000000L.lst
  863. endif
  864. attiny84at20:
  865. $(MAKE) attiny84 AVR_FREQ=20000000L BAUD_RATE=19200
  866. mv $(PROGRAM)_attiny84.hex $(PROGRAM)_attiny84_20000000L.hex
  867. ifndef PRODUCTION
  868. mv $(PROGRAM)_attiny84.lst $(PROGRAM)_attiny84_20000000L.lst
  869. endif
  870. attiny84at737:
  871. $(MAKE) attiny84 AVR_FREQ=7372800L BAUD_RATE=19200
  872. mv $(PROGRAM)_attiny84.hex $(PROGRAM)_attiny84_7372800L.hex
  873. ifndef PRODUCTION
  874. mv $(PROGRAM)_attiny84.lst $(PROGRAM)_attiny84_7372800L.lst
  875. endif
  876. attiny84at921:
  877. $(MAKE) attiny84 AVR_FREQ=9216000L BAUD_RATE=19200
  878. mv $(PROGRAM)_attiny84.hex $(PROGRAM)_attiny84_9216000L.hex
  879. ifndef PRODUCTION
  880. mv $(PROGRAM)_attiny84.lst $(PROGRAM)_attiny84_9216000L.lst
  881. endif
  882. attiny84at110:
  883. $(MAKE) attiny84 AVR_FREQ=11059200L BAUD_RATE=19200
  884. mv $(PROGRAM)_attiny84.hex $(PROGRAM)_attiny84_11059200L.hex
  885. ifndef PRODUCTION
  886. mv $(PROGRAM)_attiny84.lst $(PROGRAM)_attiny84_11059200L.lst
  887. endif
  888. attiny84at147:
  889. $(MAKE) attiny84 AVR_FREQ=14745600L BAUD_RATE=19200
  890. mv $(PROGRAM)_attiny84.hex $(PROGRAM)_attiny84_14745600L.hex
  891. ifndef PRODUCTION
  892. mv $(PROGRAM)_attiny84.lst $(PROGRAM)_attiny84_14745600L.lst
  893. endif
  894. attiny84at184:
  895. $(MAKE) attiny84 AVR_FREQ=18432000L BAUD_RATE=19200
  896. mv $(PROGRAM)_attiny84.hex $(PROGRAM)_attiny84_18432000L.hex
  897. ifndef PRODUCTION
  898. mv $(PROGRAM)_attiny84.lst $(PROGRAM)_attiny84_18432000L.lst
  899. endif
  900. #-------------------
  901. # ATtiny44
  902. #--------------------
  903. HELPTEXT += "target attiny44 - attiny44at<freq> \n"
  904. attiny44: TARGET = attiny44
  905. attiny44: MCU_TARGET = attiny44
  906. attiny44: CFLAGS += $(COMMON_OPTIONS) '-DVIRTUAL_BOOT_PARTITION' '-DSOFT_UART'
  907. attiny44: AVR_FREQ ?= 8000000L
  908. attiny44: $(PROGRAM)_attiny44.hex
  909. ifndef PRODUCTION
  910. attiny44: $(PROGRAM)_attiny44.lst
  911. endif
  912. attiny44at8:
  913. $(MAKE) attiny44 AVR_FREQ=8000000L BAUD_RATE=19200
  914. mv $(PROGRAM)_attiny44.hex $(PROGRAM)_attiny44_8000000L.hex
  915. ifndef PRODUCTION
  916. mv $(PROGRAM)_attiny44.lst $(PROGRAM)_attiny44_8000000L.lst
  917. endif
  918. attiny44at1:
  919. $(MAKE) attiny44 AVR_FREQ=1000000L BAUD_RATE=2400
  920. mv $(PROGRAM)_attiny44.hex $(PROGRAM)_attiny44_1000000L.hex
  921. ifndef PRODUCTION
  922. mv $(PROGRAM)_attiny44.lst $(PROGRAM)_attiny44_1000000L.lst
  923. endif
  924. attiny44at12:
  925. $(MAKE) attiny44 AVR_FREQ=12000000L BAUD_RATE=19200
  926. mv $(PROGRAM)_attiny44.hex $(PROGRAM)_attiny44_12000000L.hex
  927. ifndef PRODUCTION
  928. mv $(PROGRAM)_attiny44.lst $(PROGRAM)_attiny44_12000000L.lst
  929. endif
  930. attiny44at16:
  931. $(MAKE) attiny44 AVR_FREQ=16000000L BAUD_RATE=19200
  932. mv $(PROGRAM)_attiny44.hex $(PROGRAM)_attiny44_16000000L.hex
  933. ifndef PRODUCTION
  934. mv $(PROGRAM)_attiny44.lst $(PROGRAM)_attiny44_16000000L.lst
  935. endif
  936. attiny44at20:
  937. $(MAKE) attiny44 AVR_FREQ=20000000L BAUD_RATE=19200
  938. mv $(PROGRAM)_attiny44.hex $(PROGRAM)_attiny44_20000000L.hex
  939. ifndef PRODUCTION
  940. mv $(PROGRAM)_attiny44.lst $(PROGRAM)_attiny44_20000000L.lst
  941. endif
  942. attiny44at737:
  943. $(MAKE) attiny44 AVR_FREQ=7372800L BAUD_RATE=19200
  944. mv $(PROGRAM)_attiny44.hex $(PROGRAM)_attiny44_7372800L.hex
  945. ifndef PRODUCTION
  946. mv $(PROGRAM)_attiny44.lst $(PROGRAM)_attiny44_7372800L.lst
  947. endif
  948. attiny44at921:
  949. $(MAKE) attiny44 AVR_FREQ=9216000L BAUD_RATE=19200
  950. mv $(PROGRAM)_attiny44.hex $(PROGRAM)_attiny44_9216000L.hex
  951. ifndef PRODUCTION
  952. mv $(PROGRAM)_attiny44.lst $(PROGRAM)_attiny44_9216000L.lst
  953. endif
  954. attiny44at110:
  955. $(MAKE) attiny44 AVR_FREQ=11059200L BAUD_RATE=19200
  956. mv $(PROGRAM)_attiny44.hex $(PROGRAM)_attiny44_11059200L.hex
  957. ifndef PRODUCTION
  958. mv $(PROGRAM)_attiny44.lst $(PROGRAM)_attiny44_11059200L.lst
  959. endif
  960. attiny44at147:
  961. $(MAKE) attiny44 AVR_FREQ=14745600L BAUD_RATE=19200
  962. mv $(PROGRAM)_attiny44.hex $(PROGRAM)_attiny44_14745600L.hex
  963. ifndef PRODUCTION
  964. mv $(PROGRAM)_attiny44.lst $(PROGRAM)_attiny44_14745600L.lst
  965. endif
  966. attiny44at184:
  967. $(MAKE) attiny44 AVR_FREQ=18432000L BAUD_RATE=19200
  968. mv $(PROGRAM)_attiny44.hex $(PROGRAM)_attiny44_18432000L.hex
  969. ifndef PRODUCTION
  970. mv $(PROGRAM)_attiny44.lst $(PROGRAM)_attiny44_18432000L.lst
  971. endif
  972. #-------------------
  973. # ATtiny861
  974. #--------------------
  975. HELPTEXT += "target attiny861 - attiny861at<freq> \n"
  976. attiny861: TARGET = attiny861
  977. attiny861: MCU_TARGET = attiny861
  978. attiny861: CFLAGS += $(COMMON_OPTIONS) '-DVIRTUAL_BOOT_PARTITION' '-DSOFT_UART'
  979. attiny861: AVR_FREQ ?= 8000000L
  980. attiny861: $(PROGRAM)_attiny861.hex
  981. ifndef PRODUCTION
  982. attiny861: $(PROGRAM)_attiny861.lst
  983. endif
  984. attiny861at8:
  985. $(MAKE) attiny861 AVR_FREQ=8000000L BAUD_RATE=19200
  986. mv $(PROGRAM)_attiny861.hex $(PROGRAM)_attiny861_8000000L.hex
  987. ifndef PRODUCTION
  988. mv $(PROGRAM)_attiny861.lst $(PROGRAM)_attiny861_8000000L.lst
  989. endif
  990. attiny861at1:
  991. $(MAKE) attiny861 AVR_FREQ=1000000L BAUD_RATE=2400
  992. mv $(PROGRAM)_attiny861.hex $(PROGRAM)_attiny861_1000000L.hex
  993. ifndef PRODUCTION
  994. mv $(PROGRAM)_attiny861.lst $(PROGRAM)_attiny861_1000000L.lst
  995. endif
  996. attiny861at12:
  997. $(MAKE) attiny861 AVR_FREQ=12000000L BAUD_RATE=19200
  998. mv $(PROGRAM)_attiny861.hex $(PROGRAM)_attiny861_12000000L.hex
  999. ifndef PRODUCTION
  1000. mv $(PROGRAM)_attiny861.lst $(PROGRAM)_attiny861_12000000L.lst
  1001. endif
  1002. attiny861at16:
  1003. $(MAKE) attiny861 AVR_FREQ=16000000L BAUD_RATE=19200
  1004. mv $(PROGRAM)_attiny861.hex $(PROGRAM)_attiny861_16000000L.hex
  1005. ifndef PRODUCTION
  1006. mv $(PROGRAM)_attiny861.lst $(PROGRAM)_attiny861_16000000L.lst
  1007. endif
  1008. attiny861at20:
  1009. $(MAKE) attiny861 AVR_FREQ=20000000L BAUD_RATE=19200
  1010. mv $(PROGRAM)_attiny861.hex $(PROGRAM)_attiny861_20000000L.hex
  1011. ifndef PRODUCTION
  1012. mv $(PROGRAM)_attiny861.lst $(PROGRAM)_attiny861_20000000L.lst
  1013. endif
  1014. attiny861at737:
  1015. $(MAKE) attiny861 AVR_FREQ=7372800L BAUD_RATE=19200
  1016. mv $(PROGRAM)_attiny861.hex $(PROGRAM)_attiny861_7372800L.hex
  1017. ifndef PRODUCTION
  1018. mv $(PROGRAM)_attiny861.lst $(PROGRAM)_attiny861_7372800L.lst
  1019. endif
  1020. attiny861at921:
  1021. $(MAKE) attiny861 AVR_FREQ=9216000L BAUD_RATE=19200
  1022. mv $(PROGRAM)_attiny861.hex $(PROGRAM)_attiny861_9216000L.hex
  1023. ifndef PRODUCTION
  1024. mv $(PROGRAM)_attiny861.lst $(PROGRAM)_attiny861_9216000L.lst
  1025. endif
  1026. attiny861at110:
  1027. $(MAKE) attiny861 AVR_FREQ=11059200L BAUD_RATE=19200
  1028. mv $(PROGRAM)_attiny861.hex $(PROGRAM)_attiny861_11059200L.hex
  1029. ifndef PRODUCTION
  1030. mv $(PROGRAM)_attiny861.lst $(PROGRAM)_attiny861_11059200L.lst
  1031. endif
  1032. attiny861at147:
  1033. $(MAKE) attiny861 AVR_FREQ=14745600L BAUD_RATE=19200
  1034. mv $(PROGRAM)_attiny861.hex $(PROGRAM)_attiny861_14745600L.hex
  1035. ifndef PRODUCTION
  1036. mv $(PROGRAM)_attiny861.lst $(PROGRAM)_attiny861_14745600L.lst
  1037. endif
  1038. attiny861at184:
  1039. $(MAKE) attiny861 AVR_FREQ=18432000L BAUD_RATE=19200
  1040. mv $(PROGRAM)_attiny861.hex $(PROGRAM)_attiny861_18432000L.hex
  1041. ifndef PRODUCTION
  1042. mv $(PROGRAM)_attiny861.lst $(PROGRAM)_attiny861_18432000L.lst
  1043. endif
  1044. #-------------------
  1045. # ATtiny461
  1046. #--------------------
  1047. HELPTEXT += "target attiny461 - attiny461at<freq> \n"
  1048. attiny461: TARGET = attiny461
  1049. attiny461: MCU_TARGET = attiny461
  1050. attiny461: CFLAGS += $(COMMON_OPTIONS) '-DVIRTUAL_BOOT_PARTITION' '-DSOFT_UART'
  1051. attiny461: AVR_FREQ ?= 8000000L
  1052. attiny461: $(PROGRAM)_attiny461.hex
  1053. ifndef PRODUCTION
  1054. attiny461: $(PROGRAM)_attiny461.lst
  1055. endif
  1056. attiny461at8:
  1057. $(MAKE) attiny461 AVR_FREQ=8000000L BAUD_RATE=19200
  1058. mv $(PROGRAM)_attiny461.hex $(PROGRAM)_attiny461_8000000L.hex
  1059. ifndef PRODUCTION
  1060. mv $(PROGRAM)_attiny461.lst $(PROGRAM)_attiny461_8000000L.lst
  1061. endif
  1062. attiny461at1:
  1063. $(MAKE) attiny461 AVR_FREQ=1000000L BAUD_RATE=2400
  1064. mv $(PROGRAM)_attiny461.hex $(PROGRAM)_attiny461_1000000L.hex
  1065. ifndef PRODUCTION
  1066. mv $(PROGRAM)_attiny461.lst $(PROGRAM)_attiny461_1000000L.lst
  1067. endif
  1068. attiny461at12:
  1069. $(MAKE) attiny461 AVR_FREQ=12000000L BAUD_RATE=19200
  1070. mv $(PROGRAM)_attiny461.hex $(PROGRAM)_attiny461_12000000L.hex
  1071. ifndef PRODUCTION
  1072. mv $(PROGRAM)_attiny461.lst $(PROGRAM)_attiny461_12000000L.lst
  1073. endif
  1074. attiny461at16:
  1075. $(MAKE) attiny461 AVR_FREQ=16000000L BAUD_RATE=19200
  1076. mv $(PROGRAM)_attiny461.hex $(PROGRAM)_attiny461_16000000L.hex
  1077. ifndef PRODUCTION
  1078. mv $(PROGRAM)_attiny461.lst $(PROGRAM)_attiny461_16000000L.lst
  1079. endif
  1080. attiny461at20:
  1081. $(MAKE) attiny461 AVR_FREQ=20000000L BAUD_RATE=19200
  1082. mv $(PROGRAM)_attiny461.hex $(PROGRAM)_attiny461_20000000L.hex
  1083. ifndef PRODUCTION
  1084. mv $(PROGRAM)_attiny461.lst $(PROGRAM)_attiny461_20000000L.lst
  1085. endif
  1086. attiny461at737:
  1087. $(MAKE) attiny461 AVR_FREQ=7372800L BAUD_RATE=19200
  1088. mv $(PROGRAM)_attiny461.hex $(PROGRAM)_attiny461_7372800L.hex
  1089. ifndef PRODUCTION
  1090. mv $(PROGRAM)_attiny461.lst $(PROGRAM)_attiny461_7372800L.lst
  1091. endif
  1092. attiny461at921:
  1093. $(MAKE) attiny461 AVR_FREQ=9216000L BAUD_RATE=19200
  1094. mv $(PROGRAM)_attiny461.hex $(PROGRAM)_attiny461_9216000L.hex
  1095. ifndef PRODUCTION
  1096. mv $(PROGRAM)_attiny461.lst $(PROGRAM)_attiny461_9216000L.lst
  1097. endif
  1098. attiny461at110:
  1099. $(MAKE) attiny461 AVR_FREQ=11059200L BAUD_RATE=19200
  1100. mv $(PROGRAM)_attiny461.hex $(PROGRAM)_attiny461_11059200L.hex
  1101. ifndef PRODUCTION
  1102. mv $(PROGRAM)_attiny461.lst $(PROGRAM)_attiny461_11059200L.lst
  1103. endif
  1104. attiny461at147:
  1105. $(MAKE) attiny461 AVR_FREQ=14745600L BAUD_RATE=19200
  1106. mv $(PROGRAM)_attiny461.hex $(PROGRAM)_attiny461_14745600L.hex
  1107. ifndef PRODUCTION
  1108. mv $(PROGRAM)_attiny461.lst $(PROGRAM)_attiny461_14745600L.lst
  1109. endif
  1110. attiny461at184:
  1111. $(MAKE) attiny461 AVR_FREQ=18432000L BAUD_RATE=19200
  1112. mv $(PROGRAM)_attiny461.hex $(PROGRAM)_attiny461_18432000L.hex
  1113. ifndef PRODUCTION
  1114. mv $(PROGRAM)_attiny461.lst $(PROGRAM)_attiny461_18432000L.lst
  1115. endif
  1116. #-------------------
  1117. # ATtiny167, ATtiny87 - has LIN UART
  1118. #--------------------
  1119. HELPTEXT += "target attiny167, attiny87\n"
  1120. attiny167: TARGET = attiny167
  1121. attiny167: MCU_TARGET = attiny167
  1122. attiny167: AVR_FREQ ?= 8000000L
  1123. attiny167: CFLAGS += $(COMMON_OPTIONS) '-DVIRTUAL_BOOT_PARTITION'
  1124. attiny167: $(PROGRAM)_attiny167.hex
  1125. ifndef PRODUCTION
  1126. attiny167: $(PROGRAM)_attiny167.lst
  1127. endif
  1128. attiny87: TARGET = attiny87
  1129. attiny87: MCU_TARGET = attiny87
  1130. attiny87: CFLAGS += $(COMMON_OPTIONS) '-DVIRTUAL_BOOT_PARTITION'
  1131. attiny87: AVR_FREQ ?= 8000000L
  1132. attiny87: $(PROGRAM)_attiny87.hex
  1133. ifndef PRODUCTION
  1134. attiny87: $(PROGRAM)_attiny87.lst
  1135. endif
  1136. attiny167at184:
  1137. $(MAKE) attiny167 AVR_FREQ=18432000L
  1138. mv $(PROGRAM)_attiny167.hex $(PROGRAM)_attiny167_18432000L.hex
  1139. ifndef PRODUCTION
  1140. mv $(PROGRAM)_attiny167.lst $(PROGRAM)_attiny167_18432000L.lst
  1141. endif
  1142. attiny167at147:
  1143. $(MAKE) attiny167 AVR_FREQ=14745600L
  1144. mv $(PROGRAM)_attiny167.hex $(PROGRAM)_attiny167_14745600L.hex
  1145. ifndef PRODUCTION
  1146. mv $(PROGRAM)_attiny167.lst $(PROGRAM)_attiny167_14745600L.lst
  1147. endif
  1148. attiny167at110:
  1149. $(MAKE) attiny167 AVR_FREQ=11059200L
  1150. mv $(PROGRAM)_attiny167.hex $(PROGRAM)_attiny167_11059200L.hex
  1151. ifndef PRODUCTION
  1152. mv $(PROGRAM)_attiny167.lst $(PROGRAM)_attiny167_11059200L.lst
  1153. endif
  1154. attiny167at921:
  1155. $(MAKE) attiny167 AVR_FREQ=9216000L BAUD_RATE=57600
  1156. mv $(PROGRAM)_attiny167.hex $(PROGRAM)_attiny167_9216000L.hex
  1157. ifndef PRODUCTION
  1158. mv $(PROGRAM)_attiny167.lst $(PROGRAM)_attiny167_9216000L.lst
  1159. endif
  1160. attiny167at737:
  1161. $(MAKE) attiny167 AVR_FREQ=7372800L BAUD_RATE=57600
  1162. mv $(PROGRAM)_attiny167.hex $(PROGRAM)_attiny167_7372800L.hex
  1163. ifndef PRODUCTION
  1164. mv $(PROGRAM)_attiny167.lst $(PROGRAM)_attiny167_7372800L.lst
  1165. endif
  1166. attiny167at20:
  1167. $(MAKE) attiny167 AVR_FREQ=20000000L
  1168. mv $(PROGRAM)_attiny167.hex $(PROGRAM)_attiny167_20000000L.hex
  1169. ifndef PRODUCTION
  1170. mv $(PROGRAM)_attiny167.lst $(PROGRAM)_attiny167_20000000L.lst
  1171. endif
  1172. attiny167at16:
  1173. $(MAKE) attiny167 AVR_FREQ=16000000L
  1174. mv $(PROGRAM)_attiny167.hex $(PROGRAM)_attiny167_16000000L.hex
  1175. ifndef PRODUCTION
  1176. mv $(PROGRAM)_attiny167.lst $(PROGRAM)_attiny167_16000000L.lst
  1177. endif
  1178. attiny167at12:
  1179. $(MAKE) attiny167 AVR_FREQ=12000000L
  1180. mv $(PROGRAM)_attiny167.hex $(PROGRAM)_attiny167_12000000L.hex
  1181. ifndef PRODUCTION
  1182. mv $(PROGRAM)_attiny167.lst $(PROGRAM)_attiny167_12000000L.lst
  1183. endif
  1184. attiny167at8:
  1185. $(MAKE) attiny167 AVR_FREQ=8000000L BAUD_RATE=57600
  1186. mv $(PROGRAM)_attiny167.hex $(PROGRAM)_attiny167_8000000L.hex
  1187. ifndef PRODUCTION
  1188. mv $(PROGRAM)_attiny167.lst $(PROGRAM)_attiny167_8000000L.lst
  1189. endif
  1190. attiny167at1:
  1191. $(MAKE) attiny167 AVR_FREQ=1000000L BAUD_RATE=4800
  1192. mv $(PROGRAM)_attiny167.hex $(PROGRAM)_attiny167_1000000L.hex
  1193. ifndef PRODUCTION
  1194. mv $(PROGRAM)_attiny167.lst $(PROGRAM)_attiny167_1000000L.lst
  1195. endif
  1196. attiny87at184:
  1197. $(MAKE) attiny87 AVR_FREQ=18432000L
  1198. mv $(PROGRAM)_attiny87.hex $(PROGRAM)_attiny87_18432000L.hex
  1199. ifndef PRODUCTION
  1200. mv $(PROGRAM)_attiny87.lst $(PROGRAM)_attiny87_18432000L.lst
  1201. endif
  1202. attiny87at147:
  1203. $(MAKE) attiny87 AVR_FREQ=14745600L
  1204. mv $(PROGRAM)_attiny87.hex $(PROGRAM)_attiny87_14745600L.hex
  1205. ifndef PRODUCTION
  1206. mv $(PROGRAM)_attiny87.lst $(PROGRAM)_attiny87_14745600L.lst
  1207. endif
  1208. attiny87at110:
  1209. $(MAKE) attiny87 AVR_FREQ=11059200L
  1210. mv $(PROGRAM)_attiny87.hex $(PROGRAM)_attiny87_11059200L.hex
  1211. ifndef PRODUCTION
  1212. mv $(PROGRAM)_attiny87.lst $(PROGRAM)_attiny87_11059200L.lst
  1213. endif
  1214. attiny87at921:
  1215. $(MAKE) attiny87 AVR_FREQ=9216000L BAUD_RATE=57600
  1216. mv $(PROGRAM)_attiny87.hex $(PROGRAM)_attiny87_9216000L.hex
  1217. ifndef PRODUCTION
  1218. mv $(PROGRAM)_attiny87.lst $(PROGRAM)_attiny87_9216000L.lst
  1219. endif
  1220. attiny87at737:
  1221. $(MAKE) attiny87 AVR_FREQ=7372800L BAUD_RATE=57600
  1222. mv $(PROGRAM)_attiny87.hex $(PROGRAM)_attiny87_7372800L.hex
  1223. ifndef PRODUCTION
  1224. mv $(PROGRAM)_attiny87.lst $(PROGRAM)_attiny87_7372800L.lst
  1225. endif
  1226. attiny87at20:
  1227. $(MAKE) attiny87 AVR_FREQ=20000000L
  1228. mv $(PROGRAM)_attiny87.hex $(PROGRAM)_attiny87_20000000L.hex
  1229. ifndef PRODUCTION
  1230. mv $(PROGRAM)_attiny87.lst $(PROGRAM)_attiny87_20000000L.lst
  1231. endif
  1232. attiny87at16:
  1233. $(MAKE) attiny87 AVR_FREQ=16000000L
  1234. mv $(PROGRAM)_attiny87.hex $(PROGRAM)_attiny87_16000000L.hex
  1235. ifndef PRODUCTION
  1236. mv $(PROGRAM)_attiny87.lst $(PROGRAM)_attiny87_16000000L.lst
  1237. endif
  1238. attiny87at12:
  1239. $(MAKE) attiny87 AVR_FREQ=12000000L
  1240. mv $(PROGRAM)_attiny87.hex $(PROGRAM)_attiny87_12000000L.hex
  1241. ifndef PRODUCTION
  1242. mv $(PROGRAM)_attiny87.lst $(PROGRAM)_attiny87_12000000L.lst
  1243. endif
  1244. attiny87at8:
  1245. $(MAKE) attiny87 AVR_FREQ=8000000L BAUD_RATE=57600
  1246. mv $(PROGRAM)_attiny87.hex $(PROGRAM)_attiny87_8000000L.hex
  1247. ifndef PRODUCTION
  1248. mv $(PROGRAM)_attiny87.lst $(PROGRAM)_attiny87_8000000L.lst
  1249. endif
  1250. attiny87at1:
  1251. $(MAKE) attiny87 AVR_FREQ=1000000L BAUD_RATE=4800
  1252. mv $(PROGRAM)_attiny87.hex $(PROGRAM)_attiny87_1000000L.hex
  1253. ifndef PRODUCTION
  1254. mv $(PROGRAM)_attiny87.lst $(PROGRAM)_attiny87_1000000L.lst
  1255. endif