4 Commits

Author SHA1 Message Date
13cd30069d Make more like atmega32u2 branch 2012-10-12 14:15:42 -04:00
1a780ac319 Fix makefile baudrate for 8u2 2012-10-12 14:13:47 -04:00
71d0b686d0 Fix makefile indentation 2012-10-12 14:11:36 -04:00
15806b6571 Makefile for atmega8u2, programmed by bus pirate
Conflicts:
	Makefile
2012-10-08 16:23:16 -04:00

View File

@@ -1,6 +1,6 @@
MCU = atmega32u2
MCU = atmega8u2
ARCH = AVR8
BOARD = MINIMUS
BOARD = USER
F_CPU = 16000000
F_USB = 16000000
OPTIMIZATION = s
@@ -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