set PATH=C:\avr-gcc\utils\bin;%PATH%
void setup(){DDRD |= ( 1 << DDD2 );}void loop(){PIND |= ( 1 << PIND2 );}
# Arduino Make file. Refer to https://github.com/sudar/Arduino-Makefile# Suppress printing of Arduino-Makefile configuration.#ARDUINO_QUIET = 1# Directory where the Arduino IDE and/or core files are stored. Usually can be auto-detected as `AUTO_ARDUINO_DIR`.ARDUINO_DIR = ../../../Arduino# Directory where tools such as `avrdude`, `avr-g++`, `avr-gcc`, etc. are stored in the `bin/` subdirectory.AVR_TOOLS_DIR = ../../../Arduino/hardware/tools/avr# Directory where the `*.mk` files are stored.# Usually can be auto-detected as parent of `Arduino.mk`.ARDMK_DIR = ../../../Arduino-Makefile# Device type as listed in `boards.txt` or `make show_boards`.BOARD_TAG = mega# Microcontroller model.# Usually can be auto-detected as `build.mcu` from `boards.txt`MCU = atmega2560#CPU speed in Hz#Usually can be auto-detected as `build.f_cpu` from `boards.txt`, except in#some 1.5+ cores like attiny where there is a clock submenu.#F_CPU = 16000000L# What name you would like for generated target files.# Defaults to the name of your current working directory, but with underscores (_) instead of spaces.#TARGET = project# Baudrate of the serial monitor.# Defaults to `9600` if it can't find it in the sketch `Serial.begin()`MONITOR_BAUDRATE = 9600DEBUG = 1DEBUG_FLAGS = -O1 -gdwarf-2 -gstrict-dwarfinclude ../../Arduino.mk
#include "Arduino.h"void setup(){DDRD |= ( 1 << DDD2 );}void loop(){PIND |= ( 1 << PIND2 );}
-------------------------Arduino.mk Configuration:- [AUTODETECTED] CURRENT_OS = WINDOWS- [USER] ARDUINO_DIR = ../../../ArduinoUsage: egrep [OPTION]... PATTERN [FILE]...Try `egrep --help' for more information.- [USER] ARDMK_DIR = ../../../Arduino-Makefile- [AUTODETECTED] ARDUINO_VERSION = 167- [DEFAULT] ARCHITECTURE = avr- [DEFAULT] ARDMK_VENDOR = arduino- [DEFAULT] ARDUINO_SKETCHBOOK =- [USER] AVR_TOOLS_DIR = ../../../Arduino/hardware/tools/avr- [COMPUTED] ARDUINO_LIB_PATH = ../../../Arduino/libraries (from ARDUINO_DIR)- [COMPUTED] ARDUINO_PLATFORM_LIB_PATH = ../../../Arduino/hardware/arduino/avr/libraries (from ARDUINO_DIR)- [COMPUTED] ARDUINO_VAR_PATH = ../../../Arduino/hardware/arduino/avr/variants (from ARDUINO_DIR)- [COMPUTED] BOARDS_TXT = ../../../Arduino/hardware/arduino/avr/boards.txt (from ARDUINO_DIR)- [DEFAULT] USER_LIB_PATH = /libraries (in user sketchbook)- [DEFAULT] PRE_BUILD_HOOK = pre-build-hook.sh- [USER] BOARD_TAG = mega- [COMPUTED] CORE = arduino (from build.core)- [COMPUTED] VARIANT = mega (from build.variant)- [COMPUTED] OBJDIR = build-mega (from BOARD_TAG)- [COMPUTED] ARDUINO_CORE_PATH = ../../../Arduino/hardware/arduino/avr/cores/arduino (from ARDUINO_DIR, BOARD_TAG and boards.txt)- [USER] MONITOR_BAUDRATE = 9600- [DEFAULT] OPTIMIZATION_LEVEL = s- [DEFAULT] MCU_FLAG_NAME = mmcu- [DEFAULT] CFLAGS_STD =- [DEFAULT] CXXFLAGS_STD =- [AUTODETECTED] DEVICE_PATH =- [DEFAULT] FORCE_MONITOR_PORT =- [AUTODETECTED] Size utility: AVR-aware for enhanced output- [COMPUTED] BOOTLOADER_PARENT = ../../../Arduino/hardware/arduino/avr/bootloaders (from ARDUINO_DIR)- [COMPUTED] ARDMK_VERSION = 1.5- [COMPUTED] CC_VERSION = 4.8.1 (avr-gcc)-------------------------mkdir -p build-mega
avr_size = $(SIZE) $(SIZEFLAGS) --format=avr $(1)
Source: https://habr.com/ru/post/zh-CN390427/More articles:我想成为一名企业家:8个好的创业机会将LED矩阵连接到Raspberry Pi$ 8 DVB棒式收音机-使用GNURadio探索SDR亚马逊的僵尸启示录条款已添加到亚马逊的网络服务政策中机器人学会了如何烹饪拉面,改变其颜色和大小制作简单的RC航空船爱普生EH-TW5210,EH-TW5300和EH-TW5350家用投影机-更好,更快,更明亮数学家在“星球大战”的宇宙中建立了联系图带有声光报警信号的自制电子高度计范德华接触石墨烯和硒化铌之间的带间Andreev反射镜All Articles