mirror of
https://github.com/gillham/logic_analyzer.git
synced 2026-05-01 15:10:43 +03:00
Convert Makefile to use arduino-cli since that replaces arduino-core and arduino-builder.
This commit is contained in:
37
Makefile
37
Makefile
@@ -1,19 +1,24 @@
|
||||
#
|
||||
# Makefile for an Arduino based logic analyzer using the 'arduino-core'
|
||||
# package and makefiles.
|
||||
# Makefile for an Arduino based logic analyzer using the arduino-cli
|
||||
#
|
||||
# $Id: Makefile,v 1.3 2011-03-07 02:47:26 gillham Exp $
|
||||
|
||||
TARGET = logic_analyzer
|
||||
FQBN = arduino:avr:diecimila
|
||||
SERIAL = /dev/ttyUSB*
|
||||
|
||||
|
||||
all:
|
||||
@echo ""
|
||||
@echo "---> run 'make build' to compile for Arduino Duemilanove"
|
||||
@echo "---> run 'make upload' to upload to /dev/ttyUSB*"
|
||||
@echo ""
|
||||
|
||||
build:
|
||||
arduino-cli compile --fqbn $(FQBN) $(TARGET)
|
||||
|
||||
upload:
|
||||
arduino-cli upload --fqbn $(FQBN) --port $(SERIAL) $(TARGET)
|
||||
|
||||
#
|
||||
# end-of-file
|
||||
#
|
||||
ARDUINO_DIR = /usr/share/arduino
|
||||
|
||||
TARGET = logic_analyzer
|
||||
ARDUINO_LIBS =
|
||||
|
||||
MCU = atmega328p
|
||||
F_CPU = 16000000
|
||||
ARDUINO_PORT = /dev/ttyUSB*
|
||||
AVRDUDE_ARD_BAUDRATE = 57600
|
||||
AVRDUDE_ARD_PROGRAMMER = arduino
|
||||
|
||||
include /usr/share/arduino/Arduino.mk
|
||||
|
||||
|
||||
Reference in New Issue
Block a user