mcu_selection.mk 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. MCU_ORIG := $(MCU)
  2. ifneq ($(findstring MKL26Z64, $(MCU)),)
  3. # Cortex version
  4. MCU = cortex-m0plus
  5. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  6. ARMV = 6
  7. ## chip/board settings
  8. # - the next two should match the directories in
  9. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  10. MCU_FAMILY = KINETIS
  11. MCU_SERIES = KL2x
  12. # Linker script to use
  13. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  14. # or <keyboard_dir>/ld/
  15. MCU_LDSCRIPT ?= MKL26Z64
  16. # Startup code to use
  17. # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
  18. MCU_STARTUP ?= kl2x
  19. # Board: it should exist either in <chibios>/os/hal/boards/,
  20. # <keyboard_dir>/boards/, or drivers/boards/
  21. BOARD ?= PJRC_TEENSY_LC
  22. endif
  23. ifneq ($(findstring MK20DX128, $(MCU)),)
  24. # Cortex version
  25. MCU = cortex-m4
  26. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  27. ARMV = 7
  28. ## chip/board settings
  29. # - the next two should match the directories in
  30. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  31. MCU_FAMILY = KINETIS
  32. MCU_SERIES = K20x
  33. # Linker script to use
  34. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  35. # or <keyboard_dir>/ld/
  36. MCU_LDSCRIPT ?= MK20DX128
  37. # Startup code to use
  38. # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
  39. MCU_STARTUP ?= k20x5
  40. # Board: it should exist either in <chibios>/os/hal/boards/,
  41. # <keyboard_dir>/boards/, or drivers/boards/
  42. BOARD ?= PJRC_TEENSY_3
  43. endif
  44. ifneq ($(findstring MK20DX256, $(MCU)),)
  45. # Cortex version
  46. MCU = cortex-m4
  47. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  48. ARMV = 7
  49. ## chip/board settings
  50. # - the next two should match the directories in
  51. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  52. MCU_FAMILY = KINETIS
  53. MCU_SERIES = K20x
  54. # Linker script to use
  55. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  56. # or <keyboard_dir>/ld/
  57. MCU_LDSCRIPT ?= MK20DX256
  58. # Startup code to use
  59. # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
  60. MCU_STARTUP ?= k20x7
  61. # Board: it should exist either in <chibios>/os/hal/boards/,
  62. # <keyboard_dir>/boards/, or drivers/boards/
  63. BOARD ?= PJRC_TEENSY_3_1
  64. endif
  65. ifneq ($(findstring MK66F18, $(MCU)),)
  66. # Cortex version
  67. MCU = cortex-m4
  68. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  69. ARMV = 7
  70. ## chip/board settings
  71. # - the next two should match the directories in
  72. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  73. MCU_FAMILY = KINETIS
  74. MCU_SERIES = MK66F18
  75. # Linker script to use
  76. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  77. # or <keyboard_dir>/ld/
  78. MCU_LDSCRIPT ?= MK66FX1M0
  79. # Startup code to use
  80. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  81. MCU_STARTUP ?= MK66F18
  82. # Board: it should exist either in <chibios>/os/hal/boards/,
  83. # <keyboard_dir>/boards/, or drivers/boards/
  84. BOARD ?= PJRC_TEENSY_3_6
  85. endif
  86. ifneq ($(findstring STM32F042, $(MCU)),)
  87. # Cortex version
  88. MCU = cortex-m0
  89. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  90. ARMV = 6
  91. ## chip/board settings
  92. # - the next two should match the directories in
  93. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  94. MCU_FAMILY = STM32
  95. MCU_SERIES = STM32F0xx
  96. # Linker script to use
  97. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  98. # or <keyboard_dir>/ld/
  99. MCU_LDSCRIPT ?= STM32F042x6
  100. # Startup code to use
  101. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  102. MCU_STARTUP ?= stm32f0xx
  103. # Board: it should exist either in <chibios>/os/hal/boards/,
  104. # <keyboard_dir>/boards/, or drivers/boards/
  105. BOARD ?= GENERIC_STM32_F042X6
  106. USE_FPU ?= no
  107. # UF2 settings
  108. UF2_FAMILY ?= STM32F0
  109. endif
  110. ifneq ($(findstring STM32F072, $(MCU)),)
  111. # Cortex version
  112. MCU = cortex-m0
  113. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  114. ARMV = 6
  115. ## chip/board settings
  116. # - the next two should match the directories in
  117. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  118. MCU_FAMILY = STM32
  119. MCU_SERIES = STM32F0xx
  120. # Linker script to use
  121. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  122. # or <keyboard_dir>/ld/
  123. MCU_LDSCRIPT ?= STM32F072xB
  124. # Startup code to use
  125. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  126. MCU_STARTUP ?= stm32f0xx
  127. # Board: it should exist either in <chibios>/os/hal/boards/,
  128. # <keyboard_dir>/boards/, or drivers/boards/
  129. BOARD ?= GENERIC_STM32_F072XB
  130. USE_FPU ?= no
  131. # UF2 settings
  132. UF2_FAMILY ?= STM32F0
  133. endif
  134. ifneq ($(findstring STM32F103, $(MCU)),)
  135. # Cortex version
  136. MCU = cortex-m3
  137. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  138. ARMV = 7
  139. ## chip/board settings
  140. # - the next two should match the directories in
  141. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  142. MCU_FAMILY = STM32
  143. MCU_SERIES = STM32F1xx
  144. # Linker script to use
  145. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  146. # or <keyboard_dir>/ld/
  147. MCU_LDSCRIPT ?= STM32F103x8
  148. # Startup code to use
  149. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  150. MCU_STARTUP ?= stm32f1xx
  151. # Board: it should exist either in <chibios>/os/hal/boards/,
  152. # <keyboard_dir>/boards/, or drivers/boards/
  153. BOARD ?= GENERIC_STM32_F103
  154. USE_FPU ?= no
  155. # UF2 settings
  156. UF2_FAMILY ?= STM32F1
  157. endif
  158. ifneq ($(findstring STM32F303, $(MCU)),)
  159. # Cortex version
  160. MCU = cortex-m4
  161. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  162. ARMV = 7
  163. ## chip/board settings
  164. # - the next two should match the directories in
  165. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  166. MCU_FAMILY = STM32
  167. MCU_SERIES = STM32F3xx
  168. # Linker script to use
  169. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  170. # or <keyboard_dir>/ld/
  171. MCU_LDSCRIPT ?= STM32F303xC
  172. # Startup code to use
  173. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  174. MCU_STARTUP ?= stm32f3xx
  175. # Board: it should exist either in <chibios>/os/hal/boards/,
  176. # <keyboard_dir>/boards/, or drivers/boards/
  177. BOARD ?= GENERIC_STM32_F303XC
  178. USE_FPU ?= yes
  179. # UF2 settings
  180. UF2_FAMILY ?= STM32F3
  181. endif
  182. ifneq ($(findstring STM32F401, $(MCU)),)
  183. # Cortex version
  184. MCU = cortex-m4
  185. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  186. ARMV = 7
  187. ## chip/board settings
  188. # - the next two should match the directories in
  189. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  190. MCU_FAMILY = STM32
  191. MCU_SERIES = STM32F4xx
  192. # Linker script to use
  193. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  194. # or <keyboard_dir>/ld/
  195. MCU_LDSCRIPT ?= STM32F401xC
  196. # Startup code to use
  197. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  198. MCU_STARTUP ?= stm32f4xx
  199. # Board: it should exist either in <chibios>/os/hal/boards/,
  200. # <keyboard_dir>/boards/, or drivers/boards/
  201. BOARD ?= BLACKPILL_STM32_F401
  202. USE_FPU ?= yes
  203. # UF2 settings
  204. UF2_FAMILY ?= STM32F4
  205. endif
  206. ifneq ($(findstring STM32F407, $(MCU)),)
  207. # Cortex version
  208. MCU = cortex-m4
  209. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  210. ARMV = 7
  211. ## chip/board settings
  212. # - the next two should match the directories in
  213. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  214. MCU_FAMILY = STM32
  215. MCU_SERIES = STM32F4xx
  216. # Linker script to use
  217. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  218. # or <keyboard_dir>/ld/
  219. MCU_LDSCRIPT ?= STM32F407xE
  220. # Startup code to use
  221. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  222. MCU_STARTUP ?= stm32f4xx
  223. # Board: it should exist either in <chibios>/os/hal/boards/,
  224. # <keyboard_dir>/boards/, or drivers/boards/
  225. BOARD ?= GENERIC_STM32_F407XE
  226. USE_FPU ?= yes
  227. # UF2 settings
  228. UF2_FAMILY ?= STM32F4
  229. endif
  230. ifneq ($(findstring STM32F411, $(MCU)),)
  231. # Cortex version
  232. MCU = cortex-m4
  233. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  234. ARMV = 7
  235. ## chip/board settings
  236. # - the next two should match the directories in
  237. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  238. MCU_FAMILY = STM32
  239. MCU_SERIES = STM32F4xx
  240. # Linker script to use
  241. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  242. # or <keyboard_dir>/ld/
  243. ifeq ($(strip $(BOOTLOADER)), tinyuf2)
  244. MCU_LDSCRIPT ?= STM32F411xE_tinyuf2
  245. FIRMWARE_FORMAT ?= uf2
  246. else
  247. MCU_LDSCRIPT ?= STM32F411xE
  248. endif
  249. # Startup code to use
  250. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  251. MCU_STARTUP ?= stm32f4xx
  252. # Board: it should exist either in <chibios>/os/hal/boards/,
  253. # <keyboard_dir>/boards/, or drivers/boards/
  254. BOARD ?= BLACKPILL_STM32_F411
  255. USE_FPU ?= yes
  256. # UF2 settings
  257. UF2_FAMILY ?= STM32F4
  258. endif
  259. ifneq ($(findstring STM32F446, $(MCU)),)
  260. # Cortex version
  261. MCU = cortex-m4
  262. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  263. ARMV = 7
  264. ## chip/board settings
  265. # - the next two should match the directories in
  266. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  267. MCU_FAMILY = STM32
  268. MCU_SERIES = STM32F4xx
  269. # Linker script to use
  270. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  271. # or <chibios>/os/common/startup/ARMCMx/compilers/GCC/ld/
  272. # or <keyboard_dir>/ld/
  273. MCU_LDSCRIPT ?= STM32F446xE
  274. # Startup code to use
  275. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  276. MCU_STARTUP ?= stm32f4xx
  277. # Board: it should exist either in <chibios>/os/hal/boards/,
  278. # <keyboard_dir>/boards/, or drivers/boards/
  279. BOARD ?= GENERIC_STM32_F446XE
  280. USE_FPU ?= yes
  281. endif
  282. ifneq ($(findstring STM32G431, $(MCU)),)
  283. # Cortex version
  284. MCU = cortex-m4
  285. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  286. ARMV = 7
  287. ## chip/board settings
  288. # - the next two should match the directories in
  289. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  290. MCU_FAMILY = STM32
  291. MCU_SERIES = STM32G4xx
  292. # Linker script to use
  293. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  294. # or <keyboard_dir>/ld/
  295. MCU_LDSCRIPT ?= STM32G431xB
  296. # Startup code to use
  297. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  298. MCU_STARTUP ?= stm32g4xx
  299. # Board: it should exist either in <chibios>/os/hal/boards/,
  300. # <keyboard_dir>/boards/, or drivers/boards/
  301. BOARD ?= GENERIC_STM32_G431XB
  302. USE_FPU ?= yes
  303. # UF2 settings
  304. UF2_FAMILY ?= STM32G4
  305. endif
  306. ifneq ($(findstring STM32G474, $(MCU)),)
  307. # Cortex version
  308. MCU = cortex-m4
  309. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  310. ARMV = 7
  311. ## chip/board settings
  312. # - the next two should match the directories in
  313. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  314. MCU_FAMILY = STM32
  315. MCU_SERIES = STM32G4xx
  316. # Linker script to use
  317. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  318. # or <keyboard_dir>/ld/
  319. MCU_LDSCRIPT ?= STM32G474xE
  320. # Startup code to use
  321. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  322. MCU_STARTUP ?= stm32g4xx
  323. # Board: it should exist either in <chibios>/os/hal/boards/,
  324. # <keyboard_dir>/boards/, or drivers/boards/
  325. BOARD ?= GENERIC_STM32_G474XE
  326. USE_FPU ?= yes
  327. # UF2 settings
  328. UF2_FAMILY ?= STM32G4
  329. endif
  330. ifneq (,$(filter $(MCU),STM32L433 STM32L443))
  331. # Cortex version
  332. MCU = cortex-m4
  333. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  334. ARMV = 7
  335. ## chip/board settings
  336. # - the next two should match the directories in
  337. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  338. MCU_FAMILY = STM32
  339. MCU_SERIES = STM32L4xx
  340. # Linker script to use
  341. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  342. # or <keyboard_dir>/ld/
  343. MCU_LDSCRIPT ?= STM32L432xC
  344. # Startup code to use
  345. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  346. MCU_STARTUP ?= stm32l4xx
  347. # Board: it should exist either in <chibios>/os/hal/boards/,
  348. # <keyboard_dir>/boards/, or drivers/boards/
  349. BOARD ?= GENERIC_STM32_L433XC
  350. PLATFORM_NAME ?= platform_l432
  351. USE_FPU ?= yes
  352. # UF2 settings
  353. UF2_FAMILY ?= STM32L4
  354. endif
  355. ifneq (,$(filter $(MCU),STM32L412 STM32L422))
  356. # Cortex version
  357. MCU = cortex-m4
  358. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  359. ARMV = 7
  360. ## chip/board settings
  361. # - the next two should match the directories in
  362. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  363. MCU_FAMILY = STM32
  364. MCU_SERIES = STM32L4xx
  365. # Linker script to use
  366. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  367. # or <keyboard_dir>/ld/
  368. MCU_LDSCRIPT ?= STM32L412xB
  369. # Startup code to use
  370. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  371. MCU_STARTUP ?= stm32l4xx
  372. # Board: it should exist either in <chibios>/os/hal/boards/,
  373. # <keyboard_dir>/boards/, or drivers/boards/
  374. BOARD ?= GENERIC_STM32_L412XB
  375. PLATFORM_NAME ?= platform_l432
  376. USE_FPU ?= yes
  377. # UF2 settings
  378. UF2_FAMILY ?= STM32L4
  379. endif
  380. ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287))
  381. PROTOCOL = LUFA
  382. # Processor frequency.
  383. # This will define a symbol, F_CPU, in all source code files equal to the
  384. # processor frequency in Hz. You can then use this symbol in your source code to
  385. # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
  386. # automatically to create a 32-bit value in your source code.
  387. #
  388. # This will be an integer division of F_USB below, as it is sourced by
  389. # F_USB after it has run through any CPU prescalers. Note that this value
  390. # does not *change* the processor frequency - it should merely be updated to
  391. # reflect the processor speed set externally so that the code can use accurate
  392. # software delays.
  393. F_CPU ?= 16000000
  394. # LUFA specific
  395. #
  396. # Target architecture (see library "Board Types" documentation).
  397. ARCH = AVR8
  398. # Input clock frequency.
  399. # This will define a symbol, F_USB, in all source code files equal to the
  400. # input clock frequency (before any prescaling is performed) in Hz. This value may
  401. # differ from F_CPU if prescaling is used on the latter, and is required as the
  402. # raw input clock is fed directly to the PLL sections of the AVR for high speed
  403. # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
  404. # at the end, this will be done automatically to create a 32-bit value in your
  405. # source code.
  406. #
  407. # If no clock division is performed on the input clock inside the AVR (via the
  408. # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
  409. F_USB ?= $(F_CPU)
  410. # Interrupt driven control endpoint task
  411. ifeq (,$(filter $(NO_INTERRUPT_CONTROL_ENDPOINT),yes))
  412. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  413. endif
  414. ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2))
  415. NO_I2C = yes
  416. endif
  417. endif
  418. ifneq (,$(filter $(MCU),atmega32a))
  419. # MCU name for avrdude
  420. AVRDUDE_MCU = m32
  421. PROTOCOL = VUSB
  422. # Processor frequency.
  423. # This will define a symbol, F_CPU, in all source code files equal to the
  424. # processor frequency in Hz. You can then use this symbol in your source code to
  425. # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
  426. # automatically to create a 32-bit value in your source code.
  427. F_CPU ?= 12000000
  428. endif
  429. ifneq (,$(filter $(MCU),atmega328p))
  430. # MCU name for avrdude
  431. AVRDUDE_MCU = m328p
  432. PROTOCOL = VUSB
  433. # Processor frequency.
  434. # This will define a symbol, F_CPU, in all source code files equal to the
  435. # processor frequency in Hz. You can then use this symbol in your source code to
  436. # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
  437. # automatically to create a 32-bit value in your source code.
  438. F_CPU ?= 16000000
  439. endif
  440. ifneq (,$(filter $(MCU),atmega328))
  441. # MCU name for avrdude
  442. AVRDUDE_MCU = m328
  443. PROTOCOL = VUSB
  444. # Processor frequency.
  445. # This will define a symbol, F_CPU, in all source code files equal to the
  446. # processor frequency in Hz. You can then use this symbol in your source code to
  447. # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
  448. # automatically to create a 32-bit value in your source code.
  449. F_CPU ?= 16000000
  450. endif
  451. ifneq (,$(filter $(MCU),attiny85))
  452. PROTOCOL = VUSB
  453. # Processor frequency.
  454. # This will define a symbol, F_CPU, in all source code files equal to the
  455. # processor frequency in Hz. You can then use this symbol in your source code to
  456. # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
  457. # automatically to create a 32-bit value in your source code.
  458. F_CPU ?= 16500000
  459. endif