summaryrefslogtreecommitdiff
path: root/software/avr.defines.mk
diff options
context:
space:
mode:
Diffstat (limited to 'software/avr.defines.mk')
-rw-r--r--software/avr.defines.mk23
1 files changed, 22 insertions, 1 deletions
diff --git a/software/avr.defines.mk b/software/avr.defines.mk
index 3924941..2524f0d 100644
--- a/software/avr.defines.mk
+++ b/software/avr.defines.mk
@@ -52,6 +52,26 @@ ifeq ($(BOARD_TYPE),teensy2pp)
PROG := teensy
LUFA_BOARD = TEENSY2
endif
+ifeq ($(BOARD_TYPE),minimus)
+ MCU := at90usb162
+ ARCH = AVR8
+ F_CPU := 16000000
+ F_USB = $(F_CPU)
+ PROG := DFU
+ LUFA_BOARD = MINIMUS
+ RESET_FUNC := ../tools/reset_minimus
+ RESET_PARAM = "03eb:2ffa"
+endif
+ifeq ($(BOARD_TYPE),minimus32)
+ MCU := atmega32u2
+ ARCH = AVR8
+ F_CPU := 16000000
+ F_USB = $(F_CPU)
+ PROG := DFU
+ LUFA_BOARD = MINIMUS
+ RESET_FUNC := ../tools/reset_minimus
+ RESET_PARAM = "03eb:2ff0"
+endif
ifeq ($(BOARD_TYPE),hhd70dongle)
MCU := atmega32u4
ARCH = AVR8
@@ -111,7 +131,7 @@ ifeq ($(BOARD_TYPE),arduinoNG)
UPLOAD_RATE := 19200
PROG_TYPE := stk500v1
AVRDUDE_PORT := /dev/ttyUSB0
- RESET_FUNC := ../tools/dummy_reset
+ RESET_FUNC := ../tools/reset_dummy
endif
ifeq ($(BOARD_TYPE),AvrNetIo)
MCU := atmega32
@@ -149,6 +169,7 @@ CFLAGS += -Wstrict-prototypes
CFLAGS += -I$(LIB_DIR)
CFLAGS += -DF_CPU=$(F_CPU)UL
CFLAGS += -D__BOARD_$(BOARD_TYPE)__
+CFLAGS += -DARCH=ARCH_$(ARCH)
CFLAGS += -std=c99