diff options
author | Christian Pointner <equinox@spreadspace.org> | 2012-09-25 14:34:01 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2012-09-25 14:34:01 +0000 |
commit | d83de3eaa684885284dc8f03d808bf36ce84d0e2 (patch) | |
tree | 678c5c4f188d4aa9f5842b3c4786c86e8dda22e8 | |
parent | USB Manufacturer and Product are now configurable (diff) |
build added support for minimus
blink lib added support for minimus
git-svn-id: https://svn.spreadspace.org/avr/trunk@56 aa12f405-d877-488e-9caf-2d797e2a1cc7
-rw-r--r-- | blink/Makefile | 2 | ||||
-rw-r--r-- | defines.mk | 16 | ||||
-rw-r--r-- | lib/led.c | 8 |
3 files changed, 24 insertions, 2 deletions
diff --git a/blink/Makefile b/blink/Makefile index 7451346..c9e9fd8 100644 --- a/blink/Makefile +++ b/blink/Makefile @@ -23,6 +23,6 @@ NAME := blink
OBJ := $(NAME).o
LIBS := util led
-BOARD_TYPE := teensy2
+BOARD_TYPE := minimus
include ../include.mk
@@ -52,6 +52,22 @@ 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 +endif +ifeq ($(BOARD_TYPE),minimus32) + MCU := atmega32u2 + ARCH = AVR8 + F_CPU := 16000000 + F_USB = $(F_CPU) + PROG := DFU + LUFA_BOARD = MINIMUS +endif ifeq ($(BOARD_TYPE),hhd70dongle) MCU := atmega32u4 ARCH = AVR8 @@ -30,7 +30,7 @@ #define HAS_LED 1 #endif -#if defined(__BOARD_teensy1__) || defined(__BOARD_teensy1pp__) +#if defined(__BOARD_teensy1__) || defined(__BOARD_teensy1pp__) || defined(__BOARD_minimus__) || defined(__BOARD_minimus32__) #define LED_DIR 0 #else #define LED_DIR 1 @@ -42,6 +42,12 @@ #define LED_PINNUM 6 #endif +#if defined(__BOARD_minimus__) || defined(__BOARD_minimus32__) +#define LED_PORT PORTD +#define LED_DDR DDRD +#define LED_PINNUM 5 +#endif + #if defined(__BOARD_hhd70dongle__) #define LED_PORT PORTE #define LED_DDR DDRE |