avr.ini 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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} -Wl,--relax
  16. build_src_flags = -std=gnu++1z
  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. # MightyBoard AVR with extended pins
  45. #
  46. [mega_extended_optimized]
  47. extends = common_avr8
  48. board_build.variant = MARLIN_MEGA_EXTENDED
  49. extra_scripts = ${env:mega2560ext.extra_scripts}
  50. upload_speed = 57600
  51. build_flags = ${common_avr8.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -mcall-prologues
  52. #
  53. # MightyBoard ATmega1280
  54. #
  55. [env:MightyBoard1280]
  56. extends = mega_extended_optimized
  57. board = megaatmega1280
  58. #
  59. # MightyBoard ATmega2560
  60. #
  61. [env:MightyBoard2560]
  62. extends = mega_extended_optimized
  63. board = megaatmega2560
  64. #
  65. # RAMBo
  66. #
  67. [env:rambo]
  68. extends = common_avr8
  69. board = reprap_rambo
  70. #
  71. # FYSETC F6 V1.3 / V1.4
  72. #
  73. [env:FYSETC_F6]
  74. extends = common_avr8
  75. board = fysetc_f6_13
  76. #
  77. # Sanguinololu (ATmega644p)
  78. #
  79. [env:sanguino644p]
  80. extends = common_avr8
  81. board = sanguino_atmega644p
  82. #
  83. # Sanguinololu (ATmega1284p)
  84. #
  85. [env:sanguino1284p]
  86. extends = common_avr8
  87. board = sanguino_atmega1284p
  88. board_upload.maximum_size = 126976
  89. #
  90. # Sanguinololu (ATmega1284p stock bootloader with tuned flags)
  91. #
  92. [tuned_1284p]
  93. build_flags = ${common_avr8.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -mcall-prologues
  94. [env:sanguino1284p_optimized]
  95. extends = env:sanguino1284p
  96. build_flags = ${tuned_1284p.build_flags}
  97. #
  98. # Melzi and clones (ATmega1284p)
  99. #
  100. [env:melzi]
  101. extends = env:sanguino1284p
  102. upload_speed = 57600
  103. [env:melzi_optimized]
  104. extends = env:sanguino1284p_optimized
  105. upload_speed = 57600
  106. #
  107. # Melzi and clones (Optiboot bootloader)
  108. #
  109. [env:melzi_optiboot]
  110. extends = common_avr8
  111. board = sanguino_atmega1284p
  112. upload_speed = 115200
  113. board_upload.maximum_size = 130048
  114. #
  115. # Melzi and clones (Zonestar Melzi2 with tuned flags)
  116. #
  117. [env:melzi_optiboot_optimized]
  118. extends = env:melzi_optiboot
  119. build_flags = ${tuned_1284p.build_flags}