Compare commits
4 Commits
atmega32u2
...
atmega8u2
| Author | SHA1 | Date | |
|---|---|---|---|
| 13cd30069d | |||
| 1a780ac319 | |||
| 71d0b686d0 | |||
| 15806b6571 |
11
Makefile
11
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user