Makefile for atmega8u2, programmed by bus pirate
Conflicts: Makefile
This commit is contained in:
parent
bbb93a9392
commit
15806b6571
9
Makefile
9
Makefile
|
@ -1,4 +1,4 @@
|
|||
MCU = at90usb1287
|
||||
MCU = atmega8u2
|
||||
ARCH = AVR8
|
||||
BOARD = USER
|
||||
F_CPU = 8000000
|
||||
|
@ -28,6 +28,10 @@ term:
|
|||
python terminal.py $(DEVICE)
|
||||
.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_PATH)/Build/lufa_sources.mk
|
||||
include $(LUFA_PATH)/Build/lufa_build.mk
|
||||
|
@ -41,3 +45,6 @@ $(LUFA_PATH)/Build/lufa_core.mk:
|
|||
|
||||
# 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))
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user