platformio.ini 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. # For detailed documentation with EXAMPLES:
  6. #
  7. # http://docs.platformio.org/en/latest/projectconf.html
  8. #
  9. # Automatic targets - enable auto-uploading
  10. # targets = upload
  11. #
  12. # By default platformio build will abort after 5 errors.
  13. # Remove '-fmax-errors=5' from build_flags below to see all.
  14. #
  15. [platformio]
  16. src_dir = Marlin
  17. default_envs = megaatmega2560
  18. [common]
  19. build_flags = -fmax-errors=5 -g -fmerge-all-constants
  20. lib_deps =
  21. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  22. LiquidCrystal_I2C@1.1.2
  23. TMC2130Stepper
  24. https://github.com/teemuatlut/TMC2208Stepper/archive/v0.1.1.zip
  25. Adafruit NeoPixel@1.1.3
  26. https://github.com/lincomatic/LiquidTWI2/archive/30aa480.zip
  27. https://github.com/ameyer/Arduino-L6470/archive/master.zip
  28. https://github.com/MarlinFirmware/TMC26XStepper/archive/0.1.1.zip
  29. #################################
  30. # #
  31. # Unique Core Architectures #
  32. # #
  33. # Add a new "env" below if no #
  34. # entry has values suitable to #
  35. # build for a given board. #
  36. # #
  37. #################################
  38. #
  39. # ATmega2560
  40. #
  41. [env:megaatmega2560]
  42. platform = atmelavr
  43. framework = arduino
  44. board = megaatmega2560
  45. build_flags = ${common.build_flags}
  46. board_build.f_cpu = 16000000L
  47. lib_deps = ${common.lib_deps}
  48. monitor_speed = 250000
  49. #
  50. # ATmega1280
  51. #
  52. [env:megaatmega1280]
  53. platform = atmelavr
  54. framework = arduino
  55. board = megaatmega1280
  56. build_flags = ${common.build_flags}
  57. board_build.f_cpu = 16000000L
  58. lib_deps = ${common.lib_deps}
  59. monitor_speed = 250000
  60. #
  61. # AT90USB1286 boards using CDC bootloader
  62. # - BRAINWAVE
  63. # - BRAINWAVE_PRO
  64. # - SAV_MKI
  65. # - TEENSYLU
  66. #
  67. [env:at90USB1286_CDC]
  68. platform = teensy
  69. framework = arduino
  70. board = at90USB1286
  71. build_flags = ${common.build_flags}
  72. lib_deps = ${common.lib_deps}
  73. lib_ldf_mode = deep+
  74. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
  75. #
  76. # AT90USB1286 boards using DFU bootloader
  77. # - PrintrBoard
  78. # - PrintrBoard Rev.F
  79. # - ? 5DPRINT ?
  80. #
  81. [env:at90USB1286_DFU]
  82. platform = teensy
  83. framework = arduino
  84. board = at90USB1286
  85. build_flags = ${common.build_flags}
  86. lib_deps = ${common.lib_deps}
  87. lib_ldf_mode = deep+
  88. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_DFU.py
  89. #
  90. # Melzi and clones (ATmega1284p)
  91. #
  92. [env:melzi]
  93. platform = atmelavr
  94. framework = arduino
  95. board = sanguino_atmega1284p
  96. build_flags = ${common.build_flags}
  97. upload_speed = 57600
  98. lib_deps = ${common.lib_deps}
  99. monitor_speed = 250000
  100. platform_packages = toolchain-atmelavr@1.50400.190710
  101. #
  102. # Melzi and clones (Optiboot bootloader)
  103. #
  104. [env:melzi_optiboot]
  105. platform = atmelavr
  106. framework = arduino
  107. board = sanguino_atmega1284p
  108. build_flags = ${common.build_flags}
  109. upload_speed = 115200
  110. lib_deps = ${common.lib_deps}
  111. monitor_speed = 250000
  112. platform_packages = toolchain-atmelavr@1.50400.190710
  113. #
  114. # RAMBo
  115. #
  116. [env:rambo]
  117. platform = atmelavr
  118. framework = arduino
  119. board = reprap_rambo
  120. build_flags = ${common.build_flags}
  121. board_build.f_cpu = 16000000L
  122. lib_deps = ${common.lib_deps}
  123. monitor_speed = 250000
  124. #
  125. # Sanguinololu (ATmega644p)
  126. #
  127. [env:sanguino_atmega644p]
  128. platform = atmelavr
  129. framework = arduino
  130. board = sanguino_atmega644p
  131. build_flags = ${common.build_flags}
  132. lib_deps = ${common.lib_deps}
  133. monitor_speed = 250000
  134. platform_packages = toolchain-atmelavr@1.50400.190710
  135. #
  136. # Sanguinololu (ATmega1284p)
  137. #
  138. [env:sanguino_atmega1284p]
  139. platform = atmelavr
  140. framework = arduino
  141. board = sanguino_atmega1284p
  142. build_flags = ${common.build_flags}
  143. lib_deps = ${common.lib_deps}
  144. monitor_speed = 250000
  145. platform_packages = toolchain-atmelavr@1.50400.190710
  146. #
  147. # Teensy++ 2.0
  148. #
  149. [env:teensy20]
  150. platform = teensy
  151. framework = arduino
  152. board = teensy20pp
  153. build_flags = ${common.build_flags}
  154. #board_build.f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  155. lib_deps = ${common.lib_deps}
  156. lib_ldf_mode = deep+
  157. monitor_speed = 250000