avr.ini 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. #################################
  6. # #
  7. # AVR Architecture #
  8. # #
  9. #################################
  10. #
  11. # AVR (8-bit) Common Environment values
  12. #
  13. [common_avr8]
  14. platform = atmelavr@~4.0.1
  15. build_flags = ${common.build_flags} -std=gnu++1z -Wl,--relax
  16. build_unflags = -std=gnu++11
  17. board_build.f_cpu = 16000000L
  18. build_src_filter = ${common.default_src_filter} +<src/HAL/AVR>
  19. #
  20. # ATmega2560
  21. #
  22. [env:mega2560]
  23. extends = common_avr8
  24. board = megaatmega2560
  25. #
  26. # ATmega2560 with extended pins 70-85 defined
  27. # BOARD_BQ_ZUM_MEGA_3D
  28. # BOARD_ULTIMAIN_2
  29. # BOARD_MIGHTYBOARD_REVE
  30. # BOARD_EINSTART_S
  31. #
  32. [env:mega2560ext]
  33. extends = env:mega2560
  34. board_build.variant = MARLIN_MEGA_EXTENDED
  35. extra_scripts = ${common.extra_scripts}
  36. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  37. #
  38. # ATmega1280
  39. #
  40. [env:mega1280]
  41. extends = common_avr8
  42. board = megaatmega1280
  43. #
  44. # ATmega1281 pin mapping (Minitronics)
  45. #
  46. [env:mega1281]
  47. extends = env:mega1280
  48. board_build.mcu = atmega1281
  49. board_build.variant = MARLIN_MEGA1281
  50. extra_scripts = ${common.extra_scripts}
  51. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  52. #
  53. # MightyBoard AVR with extended pins
  54. #
  55. [mega_extended_optimized]
  56. extends = common_avr8
  57. board_build.variant = MARLIN_MEGA_EXTENDED
  58. extra_scripts = ${env:mega2560ext.extra_scripts}
  59. upload_speed = 57600
  60. build_flags = ${common_avr8.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -mcall-prologues
  61. #
  62. # MightyBoard ATmega1280
  63. #
  64. [env:MightyBoard1280]
  65. extends = mega_extended_optimized
  66. board = megaatmega1280
  67. #
  68. # MightyBoard ATmega2560
  69. #
  70. [env:MightyBoard2560]
  71. extends = mega_extended_optimized
  72. board = megaatmega2560
  73. #
  74. # RAMBo
  75. #
  76. [env:rambo]
  77. extends = common_avr8
  78. board = reprap_rambo
  79. #
  80. # FYSETC F6 V1.3 / V1.4
  81. #
  82. [env:FYSETC_F6]
  83. extends = common_avr8
  84. board = fysetc_f6_13
  85. #
  86. # Sanguinololu (ATmega644p)
  87. #
  88. [env:sanguino644p]
  89. extends = common_avr8
  90. board = sanguino_atmega644p
  91. #
  92. # Sanguinololu (ATmega1284p)
  93. #
  94. [env:sanguino1284p]
  95. extends = common_avr8
  96. board = sanguino_atmega1284p
  97. board_upload.maximum_size = 126976
  98. #
  99. # Sanguinololu (ATmega1284p stock bootloader with tuned flags)
  100. #
  101. [tuned_1284p]
  102. build_flags = ${common_avr8.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -mcall-prologues
  103. [env:sanguino1284p_optimized]
  104. extends = env:sanguino1284p
  105. build_flags = ${tuned_1284p.build_flags}
  106. #
  107. # Melzi and clones (ATmega1284p)
  108. #
  109. [env:melzi]
  110. extends = env:sanguino1284p
  111. upload_speed = 57600
  112. [env:melzi_optimized]
  113. extends = env:sanguino1284p_optimized
  114. upload_speed = 57600
  115. #
  116. # Melzi and clones (Optiboot bootloader)
  117. #
  118. [env:melzi_optiboot]
  119. extends = common_avr8
  120. board = sanguino_atmega1284p
  121. upload_speed = 115200
  122. board_upload.maximum_size = 130048
  123. #
  124. # Melzi and clones (Zonestar Melzi2 with tuned flags)
  125. #
  126. [env:melzi_optiboot_optimized]
  127. extends = env:melzi_optiboot
  128. build_flags = ${tuned_1284p.build_flags}