; PlatformIO template configuration file for MightyCore ; https://github.com/MCUdude/MightyCore/ ; ; Build options: build flags, source filter ; Hardware options: oscillator type, BOD, UART number, EEPROM retain ; Upload options: custom upload port, speed, and extra flags ; Library options: dependencies, extra library storages ; Advanced options: extra scripting ; ; Please visit documentation for the other options ; https://github.com/MCUdude/MightyCore/blob/master/PlatformIO.md ; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/en/latest/platforms/atmelavr.html ; ENVIRONMENT SETTINGS [env:MightyCore] platform = atmelavr framework = arduino ; TARGET SETTINGS ; PlatformIO requires the board parameter. Must match your actual hardware board = ATmega1284P ; Clock frequency in [Hz] board_build.f_cpu = 12000000L ; HARDWARE SETTINGS ; Oscillator option board_hardware.oscillator = external ; Hardware UART for serial upload board_hardware.uart = uart0 ; Brown-out detection board_hardware.bod = disabled ; EEPROM retain board_hardware.eesave = yes ; UPLOAD SETTINGS board_upload.speed = 57600 ; Upload serial port is automatically detected by default. Override by uncommenting the line below ;upload_port = /dev/cu.usbserial* ; BUILD OPTIONS ; Current pinout board_build.variant = standard ; Comment out to enable LTO (this line unflags it) build_unflags = -flto ; Extra build flags build_flags = -Wswitch ; Upload using programmer ;upload_protocol = usbasp ; Aditional upload flags ;upload_flags = -Pusb ; SERIAL MONITOR OPTIONS ; Monitor and upload port is the same by default ;monitor_port = ; Serial monitor baud rate monitor_speed = 9600