Compare commits
3 Commits
atmega8u2
...
atmega32u2
| Author | SHA1 | Date | |
|---|---|---|---|
| 0fca96f022 | |||
| 75ef884e4f | |||
| b9479b95f0 |
11
Makefile
11
Makefile
@@ -1,6 +1,6 @@
|
|||||||
MCU = atmega8u2
|
MCU = atmega32u2
|
||||||
ARCH = AVR8
|
ARCH = AVR8
|
||||||
BOARD = USER
|
BOARD = MINIMUS
|
||||||
F_CPU = 16000000
|
F_CPU = 16000000
|
||||||
F_USB = 16000000
|
F_USB = 16000000
|
||||||
OPTIMIZATION = s
|
OPTIMIZATION = s
|
||||||
@@ -28,10 +28,6 @@ term:
|
|||||||
python terminal.py $(DEVICE)
|
python terminal.py $(DEVICE)
|
||||||
.PHONY: term
|
.PHONY: term
|
||||||
|
|
||||||
AVRDUDE_PROGRAMMER := buspirate
|
|
||||||
AVRDUDE_PORT := /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AH00S82Y-if00-port0
|
|
||||||
AVRDUDE_FLAGS := -V
|
|
||||||
|
|
||||||
# Include LUFA build script makefiles
|
# Include LUFA build script makefiles
|
||||||
include $(LUFA_PATH)/Build/lufa_sources.mk
|
include $(LUFA_PATH)/Build/lufa_sources.mk
|
||||||
include $(LUFA_PATH)/Build/lufa_build.mk
|
include $(LUFA_PATH)/Build/lufa_build.mk
|
||||||
@@ -45,6 +41,3 @@ $(LUFA_PATH)/Build/lufa_core.mk:
|
|||||||
|
|
||||||
# Remove some stuff from BASE_CC_FLAGS that the LUFA core put in there.
|
# Remove some stuff from BASE_CC_FLAGS that the LUFA core put in there.
|
||||||
BASE_CC_FLAGS := $(filter-out -fno-inline-small-functions,$(BASE_CC_FLAGS))
|
BASE_CC_FLAGS := $(filter-out -fno-inline-small-functions,$(BASE_CC_FLAGS))
|
||||||
|
|
||||||
prog: main.hex
|
|
||||||
avrdude -p atmega8u2 -P /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AH00S82Y-if00-port0 -c buspirate -V -U flash:w:main.hex
|
|
||||||
|
|||||||
Reference in New Issue
Block a user