-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 691 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This sample Makefile, explains how you can compile plain AVR C file.
#
# Arduino Make file. Refer to https://github.com/sudar/Arduino-Makefile
# ARCHITECTURE = avr
BOARD_TAG = mega2560
BOARD_SUB = atmega2560
MONITOR_PORT = /dev/ttyACM0
AVRDUDE_ARD_PROGRAMMER = wiring
AVRDUDE_ARD_BAUDRATE = 115200
ARDUINO_LIBS += SoftwareSerial
ARDUINO_LIBS += Wire
ARDUINO_DIR = /home/ludo/src/arduino-1.6.7
VARIANT = mega
MCU = atmega2560
F_CPU = 16000000L
# include /usr/share/arduino/Arduino.mk
include /home/ludo/src/Arduino-Makefile/Arduino.mk
dump.bin: dump.txt
cat dump.txt | xargs printf "%02x\n" | xxd -c 1 -p -r > dump.bin
dump_bin.h: dump.bin
xxd -i dump.bin > dump_bin.h